0s autopkgtest [09:57:40]: starting date and time: 2026-02-07 09:57:40+0000 0s autopkgtest [09:57:40]: git checkout: 508d4a25 a-v-ssh wait_for_ssh: demote "ssh connection failed" to a debug message 0s autopkgtest [09:57:40]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.2jlcne77/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:glibc --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=glibc/2.42-2ubuntu5 -- lxd -r lxd-armhf-10.145.243.188 lxd-armhf-10.145.243.188:autopkgtest/ubuntu/resolute/armhf 26s autopkgtest [09:58:06]: testbed dpkg architecture: armhf 28s autopkgtest [09:58:08]: testbed apt version: 3.1.15 32s autopkgtest [09:58:12]: @@@@@@@@@@@@@@@@@@@@ test bed setup 33s autopkgtest [09:58:13]: testbed release detected to be: None 41s autopkgtest [09:58:21]: updating testbed package index (apt update) 43s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 43s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 43s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 43s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 43s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 43s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 44s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 44s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 44s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [232 kB] 44s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1345 kB] 44s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9992 B] 44s Get:12 http://ftpmaster.internal/ubuntu resolute/main Sources [1409 kB] 44s Get:13 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [311 kB] 44s Get:14 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.4 MB] 44s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1374 kB] 44s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [15.0 MB] 45s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [177 kB] 48s Fetched 43.5 MB in 5s (8319 kB/s) 49s Reading package lists... 55s autopkgtest [09:58:35]: upgrading testbed (apt dist-upgrade and autopurge) 57s Reading package lists... 58s Building dependency tree... 58s Reading state information... 58s Calculating upgrade... 59s The following packages will be upgraded: 59s 3cpio distro-info libc-bin libc-gconv-modules-extra libc6 libpcap0.8t64 59s locales 60s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 60s Need to get 8280 kB of archives. 60s After this operation, 0 B of additional disk space will be used. 60s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-gconv-modules-extra armhf 2.42-2ubuntu5 [1417 kB] 60s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc6 armhf 2.42-2ubuntu5 [1632 kB] 60s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-bin armhf 2.42-2ubuntu5 [545 kB] 60s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf distro-info armhf 1.14build1 [19.3 kB] 60s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf locales all 2.42-2ubuntu5 [4255 kB] 60s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libpcap0.8t64 armhf 1.10.5-2ubuntu3 [140 kB] 60s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf 3cpio armhf 0.14.0-1ubuntu1 [271 kB] 61s Preconfiguring packages ... 61s Fetched 8280 kB in 1s (9472 kB/s) 61s (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.) 61s Preparing to unpack .../libc-gconv-modules-extra_2.42-2ubuntu5_armhf.deb ... 61s Unpacking libc-gconv-modules-extra:armhf (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 62s Setting up libc-gconv-modules-extra:armhf (2.42-2ubuntu5) ... 62s (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.) 62s Preparing to unpack .../libc6_2.42-2ubuntu5_armhf.deb ... 62s readlink: /usr/lib/libeatmydata: No such file or directory 62s Unpacking libc6:armhf (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 62s Setting up libc6:armhf (2.42-2ubuntu5) ... 62s (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.) 62s Preparing to unpack .../libc-bin_2.42-2ubuntu5_armhf.deb ... 62s Unpacking libc-bin (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 62s Setting up libc-bin (2.42-2ubuntu5) ... 63s (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.) 63s Preparing to unpack .../distro-info_1.14build1_armhf.deb ... 63s Unpacking distro-info (1.14build1) over (1.14) ... 63s Preparing to unpack .../locales_2.42-2ubuntu5_all.deb ... 63s Unpacking locales (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 63s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_armhf.deb ... 63s Unpacking libpcap0.8t64:armhf (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 63s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_armhf.deb ... 63s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 63s Setting up distro-info (1.14build1) ... 63s Setting up 3cpio (0.14.0-1ubuntu1) ... 63s Setting up locales (2.42-2ubuntu5) ... 64s Generating locales (this might take a while)... 67s en_US.UTF-8... done 67s Generation complete. 67s Setting up libpcap0.8t64:armhf (1.10.5-2ubuntu3) ... 67s Processing triggers for systemd (259-1ubuntu3) ... 68s Processing triggers for man-db (2.13.1-1) ... 70s Processing triggers for libc-bin (2.42-2ubuntu5) ... 72s Reading package lists... 72s Building dependency tree... 72s Reading state information... 72s Solving dependencies... 73s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 76s autopkgtest [09:58:56]: rebooting testbed after setup commands that affected boot 120s autopkgtest [09:59:40]: 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 149s autopkgtest [10:00:09]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 232s Get:1 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (dsc) [4685 B] 232s Get:2 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (tar) [661 kB] 232s Get:3 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (tar) [5675 kB] 232s Get:4 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (diff) [141 kB] 232s gpgv: Signature made Thu Jan 1 13:00:10 2026 UTC 232s gpgv: using RSA key 4D0BE12F0E4776D8AACE9696E66C775AEBFE6C7D 232s gpgv: Can't check signature: No public key 232s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.86.3-4.dsc: no acceptable signature found 233s autopkgtest [10:01:33]: testing package glib2.0 version 2.86.3-4 243s autopkgtest [10:01:43]: build not needed 252s autopkgtest [10:01:52]: test build: preparing testbed 254s Reading package lists... 255s Building dependency tree... 255s Reading state information... 255s Solving dependencies... 256s The following NEW packages will be installed: 256s build-essential cpp cpp-15 cpp-15-arm-linux-gnueabihf 256s cpp-arm-linux-gnueabihf g++ g++-15 g++-15-arm-linux-gnueabihf 256s g++-arm-linux-gnueabihf gcc gcc-15 gcc-15-arm-linux-gnueabihf 256s gcc-arm-linux-gnueabihf libasan8 libblkid-dev libc-dev-bin libc6-dev 256s libcc1-0 libcrypt-dev libffi-dev libgcc-15-dev libgio-2.0-dev libgomp1 256s libisl23 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 256s libpcre2-posix3 libpkgconf3 libselinux-dev libsepol-dev libstdc++-15-dev 256s libsysprof-capture-4-dev libubsan1 linux-libc-dev pkgconf pkgconf-bin 256s rpcsvc-proto uuid-dev zlib1g-dev 256s 0 upgraded, 42 newly installed, 0 to remove and 0 not upgraded. 256s Need to get 58.2 MB of archives. 256s After this operation, 169 MB of additional disk space will be used. 256s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-dev-bin armhf 2.42-2ubuntu5 [21.8 kB] 256s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf linux-libc-dev armhf 6.18.0-9.9 [1819 kB] 257s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf libcrypt-dev armhf 1:4.5.1-1 [128 kB] 257s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf rpcsvc-proto armhf 1.4.3-1build1 [62.6 kB] 257s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc6-dev armhf 2.42-2ubuntu5 [1416 kB] 257s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libisl23 armhf 0.27-1build1 [553 kB] 257s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf libmpc3 armhf 1.3.1-2 [47.0 kB] 257s Get:8 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-15-arm-linux-gnueabihf armhf 15.2.0-12ubuntu1 [10.1 MB] 257s Get:9 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-15 armhf 15.2.0-12ubuntu1 [1032 B] 257s Get:10 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [5756 B] 257s Get:11 http://ftpmaster.internal/ubuntu resolute/main armhf cpp armhf 4:15.2.0-4ubuntu1 [22.4 kB] 257s Get:12 http://ftpmaster.internal/ubuntu resolute/main armhf libcc1-0 armhf 15.2.0-12ubuntu1 [43.5 kB] 257s Get:13 http://ftpmaster.internal/ubuntu resolute/main armhf libgomp1 armhf 15.2.0-12ubuntu1 [129 kB] 257s Get:14 http://ftpmaster.internal/ubuntu resolute/main armhf libasan8 armhf 15.2.0-12ubuntu1 [2949 kB] 258s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf libubsan1 armhf 15.2.0-12ubuntu1 [1187 kB] 258s Get:16 http://ftpmaster.internal/ubuntu resolute/main armhf libgcc-15-dev armhf 15.2.0-12ubuntu1 [898 kB] 258s Get:17 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-15-arm-linux-gnueabihf armhf 15.2.0-12ubuntu1 [19.5 MB] 258s Get:18 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-15 armhf 15.2.0-12ubuntu1 [499 kB] 258s Get:19 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [1220 B] 258s Get:20 http://ftpmaster.internal/ubuntu resolute/main armhf gcc armhf 4:15.2.0-4ubuntu1 [5022 B] 258s Get:21 http://ftpmaster.internal/ubuntu resolute/main armhf libstdc++-15-dev armhf 15.2.0-12ubuntu1 [2638 kB] 258s Get:22 http://ftpmaster.internal/ubuntu resolute/main armhf g++-15-arm-linux-gnueabihf armhf 15.2.0-12ubuntu1 [11.4 MB] 259s Get:23 http://ftpmaster.internal/ubuntu resolute/main armhf g++-15 armhf 15.2.0-12ubuntu1 [25.3 kB] 259s Get:24 http://ftpmaster.internal/ubuntu resolute/main armhf g++-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [968 B] 259s Get:25 http://ftpmaster.internal/ubuntu resolute/main armhf g++ armhf 4:15.2.0-4ubuntu1 [1086 B] 259s Get:26 http://ftpmaster.internal/ubuntu resolute/main armhf build-essential armhf 12.12ubuntu2 [5256 B] 259s Get:27 http://ftpmaster.internal/ubuntu resolute/main armhf libffi-dev armhf 3.5.2-3 [60.5 kB] 259s Get:28 http://ftpmaster.internal/ubuntu resolute/main armhf uuid-dev armhf 2.41.2-4ubuntu2 [55.6 kB] 259s Get:29 http://ftpmaster.internal/ubuntu resolute/main armhf libblkid-dev armhf 2.41.2-4ubuntu2 [224 kB] 259s Get:30 http://ftpmaster.internal/ubuntu resolute/main armhf libsepol-dev armhf 3.9-2 [384 kB] 259s Get:31 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-16-0 armhf 10.46-1 [206 kB] 259s Get:32 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-32-0 armhf 10.46-1 [197 kB] 259s Get:33 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-posix3 armhf 10.46-1 [6286 B] 259s Get:34 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-dev armhf 10.46-1 [744 kB] 259s Get:35 http://ftpmaster.internal/ubuntu resolute/main armhf libselinux-dev armhf 3.9-4 [169 kB] 259s Get:36 http://ftpmaster.internal/ubuntu resolute/main armhf libmount-dev armhf 2.41.2-4ubuntu2 [37.6 kB] 259s Get:37 http://ftpmaster.internal/ubuntu resolute/main armhf libsysprof-capture-4-dev armhf 49.0-5 [49.3 kB] 259s Get:38 http://ftpmaster.internal/ubuntu resolute/main armhf libpkgconf3 armhf 1.8.1-4build1 [26.6 kB] 259s Get:39 http://ftpmaster.internal/ubuntu resolute/main armhf pkgconf-bin armhf 1.8.1-4build1 [21.4 kB] 259s Get:40 http://ftpmaster.internal/ubuntu resolute/main armhf pkgconf armhf 1.8.1-4build1 [16.8 kB] 259s Get:41 http://ftpmaster.internal/ubuntu resolute/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1ubuntu2 [881 kB] 259s Get:42 http://ftpmaster.internal/ubuntu resolute/main armhf libgio-2.0-dev armhf 2.86.3-4 [1731 kB] 260s Fetched 58.2 MB in 3s (21.9 MB/s) 260s Selecting previously unselected package libc-dev-bin. 260s (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.) 260s Preparing to unpack .../00-libc-dev-bin_2.42-2ubuntu5_armhf.deb ... 260s Unpacking libc-dev-bin (2.42-2ubuntu5) ... 260s Selecting previously unselected package linux-libc-dev:armhf. 260s Preparing to unpack .../01-linux-libc-dev_6.18.0-9.9_armhf.deb ... 260s Unpacking linux-libc-dev:armhf (6.18.0-9.9) ... 260s Selecting previously unselected package libcrypt-dev:armhf. 260s Preparing to unpack .../02-libcrypt-dev_1%3a4.5.1-1_armhf.deb ... 260s Unpacking libcrypt-dev:armhf (1:4.5.1-1) ... 260s Selecting previously unselected package rpcsvc-proto. 260s Preparing to unpack .../03-rpcsvc-proto_1.4.3-1build1_armhf.deb ... 260s Unpacking rpcsvc-proto (1.4.3-1build1) ... 260s Selecting previously unselected package libc6-dev:armhf. 260s Preparing to unpack .../04-libc6-dev_2.42-2ubuntu5_armhf.deb ... 260s Unpacking libc6-dev:armhf (2.42-2ubuntu5) ... 260s Selecting previously unselected package libisl23:armhf. 260s Preparing to unpack .../05-libisl23_0.27-1build1_armhf.deb ... 260s Unpacking libisl23:armhf (0.27-1build1) ... 260s Selecting previously unselected package libmpc3:armhf. 260s Preparing to unpack .../06-libmpc3_1.3.1-2_armhf.deb ... 260s Unpacking libmpc3:armhf (1.3.1-2) ... 260s Selecting previously unselected package cpp-15-arm-linux-gnueabihf. 260s Preparing to unpack .../07-cpp-15-arm-linux-gnueabihf_15.2.0-12ubuntu1_armhf.deb ... 260s Unpacking cpp-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 261s Selecting previously unselected package cpp-15. 261s Preparing to unpack .../08-cpp-15_15.2.0-12ubuntu1_armhf.deb ... 261s Unpacking cpp-15 (15.2.0-12ubuntu1) ... 261s Selecting previously unselected package cpp-arm-linux-gnueabihf. 261s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 261s Unpacking cpp-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 261s Selecting previously unselected package cpp. 261s Preparing to unpack .../10-cpp_4%3a15.2.0-4ubuntu1_armhf.deb ... 261s Unpacking cpp (4:15.2.0-4ubuntu1) ... 261s Selecting previously unselected package libcc1-0:armhf. 261s Preparing to unpack .../11-libcc1-0_15.2.0-12ubuntu1_armhf.deb ... 261s Unpacking libcc1-0:armhf (15.2.0-12ubuntu1) ... 261s Selecting previously unselected package libgomp1:armhf. 261s Preparing to unpack .../12-libgomp1_15.2.0-12ubuntu1_armhf.deb ... 261s Unpacking libgomp1:armhf (15.2.0-12ubuntu1) ... 261s Selecting previously unselected package libasan8:armhf. 261s Preparing to unpack .../13-libasan8_15.2.0-12ubuntu1_armhf.deb ... 261s Unpacking libasan8:armhf (15.2.0-12ubuntu1) ... 261s Selecting previously unselected package libubsan1:armhf. 261s Preparing to unpack .../14-libubsan1_15.2.0-12ubuntu1_armhf.deb ... 261s Unpacking libubsan1:armhf (15.2.0-12ubuntu1) ... 261s Selecting previously unselected package libgcc-15-dev:armhf. 261s Preparing to unpack .../15-libgcc-15-dev_15.2.0-12ubuntu1_armhf.deb ... 261s Unpacking libgcc-15-dev:armhf (15.2.0-12ubuntu1) ... 261s Selecting previously unselected package gcc-15-arm-linux-gnueabihf. 261s Preparing to unpack .../16-gcc-15-arm-linux-gnueabihf_15.2.0-12ubuntu1_armhf.deb ... 261s Unpacking gcc-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 262s Selecting previously unselected package gcc-15. 262s Preparing to unpack .../17-gcc-15_15.2.0-12ubuntu1_armhf.deb ... 262s Unpacking gcc-15 (15.2.0-12ubuntu1) ... 262s Selecting previously unselected package gcc-arm-linux-gnueabihf. 262s Preparing to unpack .../18-gcc-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 262s Unpacking gcc-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 262s Selecting previously unselected package gcc. 262s Preparing to unpack .../19-gcc_4%3a15.2.0-4ubuntu1_armhf.deb ... 262s Unpacking gcc (4:15.2.0-4ubuntu1) ... 262s Selecting previously unselected package libstdc++-15-dev:armhf. 262s Preparing to unpack .../20-libstdc++-15-dev_15.2.0-12ubuntu1_armhf.deb ... 262s Unpacking libstdc++-15-dev:armhf (15.2.0-12ubuntu1) ... 262s Selecting previously unselected package g++-15-arm-linux-gnueabihf. 262s Preparing to unpack .../21-g++-15-arm-linux-gnueabihf_15.2.0-12ubuntu1_armhf.deb ... 262s Unpacking g++-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 263s Selecting previously unselected package g++-15. 263s Preparing to unpack .../22-g++-15_15.2.0-12ubuntu1_armhf.deb ... 263s Unpacking g++-15 (15.2.0-12ubuntu1) ... 263s Selecting previously unselected package g++-arm-linux-gnueabihf. 263s Preparing to unpack .../23-g++-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 263s Unpacking g++-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 263s Selecting previously unselected package g++. 263s Preparing to unpack .../24-g++_4%3a15.2.0-4ubuntu1_armhf.deb ... 263s Unpacking g++ (4:15.2.0-4ubuntu1) ... 263s Selecting previously unselected package build-essential. 263s Preparing to unpack .../25-build-essential_12.12ubuntu2_armhf.deb ... 263s Unpacking build-essential (12.12ubuntu2) ... 263s Selecting previously unselected package libffi-dev:armhf. 263s Preparing to unpack .../26-libffi-dev_3.5.2-3_armhf.deb ... 263s Unpacking libffi-dev:armhf (3.5.2-3) ... 263s Selecting previously unselected package uuid-dev:armhf. 263s Preparing to unpack .../27-uuid-dev_2.41.2-4ubuntu2_armhf.deb ... 263s Unpacking uuid-dev:armhf (2.41.2-4ubuntu2) ... 263s Selecting previously unselected package libblkid-dev:armhf. 263s Preparing to unpack .../28-libblkid-dev_2.41.2-4ubuntu2_armhf.deb ... 263s Unpacking libblkid-dev:armhf (2.41.2-4ubuntu2) ... 263s Selecting previously unselected package libsepol-dev:armhf. 263s Preparing to unpack .../29-libsepol-dev_3.9-2_armhf.deb ... 263s Unpacking libsepol-dev:armhf (3.9-2) ... 263s Selecting previously unselected package libpcre2-16-0:armhf. 263s Preparing to unpack .../30-libpcre2-16-0_10.46-1_armhf.deb ... 263s Unpacking libpcre2-16-0:armhf (10.46-1) ... 263s Selecting previously unselected package libpcre2-32-0:armhf. 263s Preparing to unpack .../31-libpcre2-32-0_10.46-1_armhf.deb ... 263s Unpacking libpcre2-32-0:armhf (10.46-1) ... 263s Selecting previously unselected package libpcre2-posix3:armhf. 263s Preparing to unpack .../32-libpcre2-posix3_10.46-1_armhf.deb ... 263s Unpacking libpcre2-posix3:armhf (10.46-1) ... 263s Selecting previously unselected package libpcre2-dev:armhf. 263s Preparing to unpack .../33-libpcre2-dev_10.46-1_armhf.deb ... 263s Unpacking libpcre2-dev:armhf (10.46-1) ... 263s Selecting previously unselected package libselinux-dev:armhf. 263s Preparing to unpack .../34-libselinux-dev_3.9-4_armhf.deb ... 263s Unpacking libselinux-dev:armhf (3.9-4) ... 263s Selecting previously unselected package libmount-dev:armhf. 263s Preparing to unpack .../35-libmount-dev_2.41.2-4ubuntu2_armhf.deb ... 263s Unpacking libmount-dev:armhf (2.41.2-4ubuntu2) ... 264s Selecting previously unselected package libsysprof-capture-4-dev:armhf. 264s Preparing to unpack .../36-libsysprof-capture-4-dev_49.0-5_armhf.deb ... 264s Unpacking libsysprof-capture-4-dev:armhf (49.0-5) ... 264s Selecting previously unselected package libpkgconf3:armhf. 264s Preparing to unpack .../37-libpkgconf3_1.8.1-4build1_armhf.deb ... 264s Unpacking libpkgconf3:armhf (1.8.1-4build1) ... 264s Selecting previously unselected package pkgconf-bin. 264s Preparing to unpack .../38-pkgconf-bin_1.8.1-4build1_armhf.deb ... 264s Unpacking pkgconf-bin (1.8.1-4build1) ... 264s Selecting previously unselected package pkgconf:armhf. 264s Preparing to unpack .../39-pkgconf_1.8.1-4build1_armhf.deb ... 264s Unpacking pkgconf:armhf (1.8.1-4build1) ... 264s Selecting previously unselected package zlib1g-dev:armhf. 264s Preparing to unpack .../40-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_armhf.deb ... 264s Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 264s Selecting previously unselected package libgio-2.0-dev:armhf. 264s Preparing to unpack .../41-libgio-2.0-dev_2.86.3-4_armhf.deb ... 264s Unpacking libgio-2.0-dev:armhf (2.86.3-4) ... 264s Setting up linux-libc-dev:armhf (6.18.0-9.9) ... 264s Setting up libgomp1:armhf (15.2.0-12ubuntu1) ... 264s Setting up libffi-dev:armhf (3.5.2-3) ... 264s Setting up libpcre2-16-0:armhf (10.46-1) ... 264s Setting up libsysprof-capture-4-dev:armhf (49.0-5) ... 264s Setting up libpcre2-32-0:armhf (10.46-1) ... 264s Setting up libpkgconf3:armhf (1.8.1-4build1) ... 264s Setting up rpcsvc-proto (1.4.3-1build1) ... 264s Setting up libmpc3:armhf (1.3.1-2) ... 264s Setting up libsepol-dev:armhf (3.9-2) ... 264s Setting up pkgconf-bin (1.8.1-4build1) ... 264s Setting up libubsan1:armhf (15.2.0-12ubuntu1) ... 264s Setting up libpcre2-posix3:armhf (10.46-1) ... 264s Setting up libcrypt-dev:armhf (1:4.5.1-1) ... 264s Setting up libasan8:armhf (15.2.0-12ubuntu1) ... 264s Setting up libisl23:armhf (0.27-1build1) ... 264s Setting up libc-dev-bin (2.42-2ubuntu5) ... 264s Setting up cpp-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 264s Setting up libcc1-0:armhf (15.2.0-12ubuntu1) ... 264s Setting up cpp-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 264s Setting up libgcc-15-dev:armhf (15.2.0-12ubuntu1) ... 264s Setting up gcc-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 264s Setting up pkgconf:armhf (1.8.1-4build1) ... 264s Setting up cpp-15 (15.2.0-12ubuntu1) ... 264s Setting up cpp (4:15.2.0-4ubuntu1) ... 264s Setting up libc6-dev:armhf (2.42-2ubuntu5) ... 264s Setting up gcc-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 264s Setting up libpcre2-dev:armhf (10.46-1) ... 264s Setting up gcc-15 (15.2.0-12ubuntu1) ... 264s Setting up libstdc++-15-dev:armhf (15.2.0-12ubuntu1) ... 264s Setting up uuid-dev:armhf (2.41.2-4ubuntu2) ... 264s Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 264s Setting up libselinux-dev:armhf (3.9-4) ... 264s Setting up libblkid-dev:armhf (2.41.2-4ubuntu2) ... 264s Setting up g++-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 264s Setting up gcc (4:15.2.0-4ubuntu1) ... 264s Setting up g++-15 (15.2.0-12ubuntu1) ... 264s Setting up libmount-dev:armhf (2.41.2-4ubuntu2) ... 264s Setting up g++-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 264s Setting up libgio-2.0-dev:armhf (2.86.3-4) ... 264s Setting up g++ (4:15.2.0-4ubuntu1) ... 264s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 264s Setting up build-essential (12.12ubuntu2) ... 264s Processing triggers for libc-bin (2.42-2ubuntu5) ... 264s Processing triggers for man-db (2.13.1-1) ... 265s Processing triggers for libglib2.0-0t64:armhf (2.86.3-4) ... 265s No schema files found: doing nothing. 265s Processing triggers for install-info (7.2-5) ... 274s autopkgtest [10:02:14]: test build: [----------------------- 277s + mode=dynamic 277s + getopt -o --long static -n debian/tests/build -- 277s + getopt_temp= -- 277s + eval set -- -- 277s + set -- -- 277s + true 277s + shift 277s + break 277s + mktemp -d 277s + WORKDIR=/tmp/tmp.I6o5WROVF1 277s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 277s + cd /tmp/tmp.I6o5WROVF1 277s + [ -n ] 277s + CROSS_COMPILE= 277s + cat 277s + cat 277s + cat 277s + cat 277s + cat 277s + cat 277s + cflags= 277s + pcflags= 277s + packages=glib-2.0 277s + pkg-config --cflags --libs glib-2.0 277s + 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 277s + echo build (glib, dynamic): OK 277s + [ -x glib-dynamic ] 277s + foo=bar ./glib-dynamic 277s + echo run (glib, dynamic): OK 277s + cflags= 277s + pcflags= 277s + packages=gobject-2.0 277s + pkg-config --cflags --libs gobject-2.0 277s build (glib, dynamic): OK 277s + 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 277s run (glib, dynamic): OK 277s + echo build (gobject, dynamic): OK 277s build (gobject, dynamic): OK 277s + [ -x gobject-dynamic ] 277s + foo=bar ./gobject-dynamic 277s + echo run (gobject, dynamic): OK 277s + cflags= 277s + pcflags= 277s + packages=gio-2.0 277s + pkg-config --cflags --libs gio-2.0 277s run (gobject, dynamic): OK 277s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 277s build (gio, dynamic): OK 277s run (gio, dynamic): OK 277s + echo build (gio, dynamic): OK 277s + [ -x gio-dynamic ] 277s + foo=bar ./gio-dynamic 277s + echo run (gio, dynamic): OK 277s + cflags= 277s + pcflags= 277s + packages=gio-unix-2.0 277s + pkg-config --cflags --libs gio-unix-2.0 277s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 278s + echo build (gio-unix, dynamic): OK 278s + [ -x gio-unix-dynamic ] 278s + foo=bar ./gio-unix-dynamic 278s build (gio-unix, dynamic): OK 278s + echo run (gio-unix, dynamic): OK 278s + cflags= 278s + pcflags= 278s + packages=gmodule-2.0 278s + pkg-config --cflags --libs gmodule-2.0 278s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 278s run (gio-unix, dynamic): OK 278s build (gmodule, dynamic): OK 278s run (gmodule, dynamic): OK 278s + echo build (gmodule, dynamic): OK 278s + [ -x gmodule-dynamic ] 278s + foo=bar ./gmodule-dynamic 278s + echo run (gmodule, dynamic): OK 278s + cflags= 278s + pcflags= 278s + packages=gthread-2.0 278s + pkg-config --cflags --libs gthread-2.0 278s + 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 278s build (gthread, dynamic): OK 278s + echo build (gthread, dynamic): OK 278s + [ -x gthread-dynamic ] 278s + foo=bar ./gthread-dynamic 278s + echo run (gthread, dynamic): OK 278s + rm -rf /tmp/tmp.I6o5WROVF1 278s run (gthread, dynamic): OK 278s autopkgtest [10:02:18]: test build: -----------------------] 283s build PASS (superficial) 283s autopkgtest [10:02:23]: test build: - - - - - - - - - - results - - - - - - - - - - 287s autopkgtest [10:02:27]: test build-static: preparing testbed 288s Reading package lists... 289s Building dependency tree... 289s Reading state information... 289s Solving dependencies... 290s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 298s autopkgtest [10:02:38]: test build-static: [----------------------- 301s + mode=dynamic 301s + getopt -o --long static -n debian/tests/build -- --static 301s + getopt_temp= --static -- 301s + eval set -- --static -- 301s + set -- --static -- 301s + true 301s + mode=static 301s + shift 301s + continue 301s + true 301s + shift 301s + break 301s + mktemp -d 301s + WORKDIR=/tmp/tmp.7f0qb7UfcO 301s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 301s + cd /tmp/tmp.7f0qb7UfcO 301s + [ -n ] 301s + CROSS_COMPILE= 301s + cat 301s + cat 301s + cat 301s + cat 301s + cat 301s + cat 301s + cflags= 301s + pcflags= 301s + packages=glib-2.0 301s + cflags=-static 301s + pcflags=--static 301s + pkg-config --static --cflags --libs glib-2.0 301s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 301s /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': 301s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 301s /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 301s /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 301s build (glib, static): OK 301s run (glib, static): OK 301s + echo build (glib, static): OK 301s + [ -x glib-static ] 301s + foo=bar ./glib-static 301s + echo run (glib, static): OK 301s + cflags= 301s + pcflags= 301s + packages=gobject-2.0 301s + cflags=-static 301s + pcflags=--static 301s + pkg-config --static --cflags --libs gobject-2.0 301s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lffi 301s /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': 301s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 301s /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 301s /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 301s build (gobject, static): OK 301s run (gobject, static): OK 301s + echo build (gobject, static): OK 301s + [ -x gobject-static ] 301s + foo=bar ./gobject-static 301s + echo run (gobject, static): OK 301s + cflags= 301s + pcflags= 301s + packages=gio-2.0 301s + cflags=-static 301s + pcflags=--static 301s + continue 301s + cflags= 301s + pcflags= 301s + packages=gio-unix-2.0 301s + cflags=-static 301s + pcflags=--static 301s + continue 301s + cflags= 301s + pcflags= 301s + packages=gmodule-2.0 301s + cflags=-static 301s + pcflags=--static 301s + pkg-config --static --cflags --libs gmodule-2.0 301s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 301s /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': 301s (.text+0x424): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 301s /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': 301s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 301s /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 301s /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 301s build (gmodule, static): OK 301s run (gmodule, static): OK 302s + echo build (gmodule, static): OK 302s + [ -x gmodule-static ] 302s + foo=bar ./gmodule-static 302s + echo run (gmodule, static): OK 302s + cflags= 302s + pcflags= 302s + packages=gthread-2.0 302s + cflags=-static 302s + pcflags=--static 302s + pkg-config --static --cflags --libs gthread-2.0 302s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 302s /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': 302s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 302s /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 302s /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 302s build (gthread, static): OK 302s run (gthread, static): OK 302s + echo build (gthread, static): OK 302s + [ -x gthread-static ] 302s + foo=bar ./gthread-static 302s + echo run (gthread, static): OK 302s + rm -rf /tmp/tmp.7f0qb7UfcO 302s autopkgtest [10:02:42]: test build-static: -----------------------] 306s build-static PASS (superficial) 306s autopkgtest [10:02:46]: test build-static: - - - - - - - - - - results - - - - - - - - - - 310s autopkgtest [10:02:50]: test girepository-tools: preparing testbed 341s autopkgtest [10:03:21]: testbed dpkg architecture: armhf 343s autopkgtest [10:03:23]: testbed apt version: 3.1.15 348s autopkgtest [10:03:27]: @@@@@@@@@@@@@@@@@@@@ test bed setup 349s autopkgtest [10:03:29]: testbed release detected to be: resolute 357s autopkgtest [10:03:37]: updating testbed package index (apt update) 359s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 359s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 359s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 359s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 359s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 359s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 359s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 359s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 359s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [232 kB] 360s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1345 kB] 360s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9992 B] 360s Get:12 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [311 kB] 360s Get:13 http://ftpmaster.internal/ubuntu resolute/main Sources [1409 kB] 360s Get:14 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.4 MB] 360s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1374 kB] 360s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [15.0 MB] 361s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [177 kB] 364s Fetched 43.5 MB in 5s (8333 kB/s) 365s Reading package lists... 371s autopkgtest [10:03:51]: upgrading testbed (apt dist-upgrade and autopurge) 373s Reading package lists... 374s Building dependency tree... 374s Reading state information... 375s Calculating upgrade... 376s The following packages will be upgraded: 376s 3cpio distro-info libc-bin libc-gconv-modules-extra libc6 libpcap0.8t64 376s locales 376s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 376s Need to get 8280 kB of archives. 376s After this operation, 0 B of additional disk space will be used. 376s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-gconv-modules-extra armhf 2.42-2ubuntu5 [1417 kB] 376s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc6 armhf 2.42-2ubuntu5 [1632 kB] 376s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-bin armhf 2.42-2ubuntu5 [545 kB] 376s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf distro-info armhf 1.14build1 [19.3 kB] 376s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf locales all 2.42-2ubuntu5 [4255 kB] 376s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libpcap0.8t64 armhf 1.10.5-2ubuntu3 [140 kB] 376s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf 3cpio armhf 0.14.0-1ubuntu1 [271 kB] 377s Preconfiguring packages ... 377s Fetched 8280 kB in 1s (9477 kB/s) 378s (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.) 378s Preparing to unpack .../libc-gconv-modules-extra_2.42-2ubuntu5_armhf.deb ... 378s Unpacking libc-gconv-modules-extra:armhf (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 378s Setting up libc-gconv-modules-extra:armhf (2.42-2ubuntu5) ... 378s (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.) 378s Preparing to unpack .../libc6_2.42-2ubuntu5_armhf.deb ... 378s readlink: /usr/lib/libeatmydata: No such file or directory 378s Unpacking libc6:armhf (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 378s Setting up libc6:armhf (2.42-2ubuntu5) ... 378s (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.) 378s Preparing to unpack .../libc-bin_2.42-2ubuntu5_armhf.deb ... 378s Unpacking libc-bin (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 378s Setting up libc-bin (2.42-2ubuntu5) ... 379s (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.) 379s Preparing to unpack .../distro-info_1.14build1_armhf.deb ... 379s Unpacking distro-info (1.14build1) over (1.14) ... 379s Preparing to unpack .../locales_2.42-2ubuntu5_all.deb ... 379s Unpacking locales (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 379s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_armhf.deb ... 379s Unpacking libpcap0.8t64:armhf (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 379s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_armhf.deb ... 379s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 379s Setting up distro-info (1.14build1) ... 379s Setting up 3cpio (0.14.0-1ubuntu1) ... 379s Setting up locales (2.42-2ubuntu5) ... 380s Generating locales (this might take a while)... 384s en_US.UTF-8... done 384s Generation complete. 384s Setting up libpcap0.8t64:armhf (1.10.5-2ubuntu3) ... 384s Processing triggers for systemd (259-1ubuntu3) ... 385s Processing triggers for man-db (2.13.1-1) ... 387s Processing triggers for libc-bin (2.42-2ubuntu5) ... 389s Reading package lists... 389s Building dependency tree... 389s Reading state information... 390s Solving dependencies... 391s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 393s autopkgtest [10:04:13]: rebooting testbed after setup commands that affected boot 461s Reading package lists... 461s Building dependency tree... 461s Reading state information... 462s Solving dependencies... 463s The following NEW packages will be installed: 463s gir1.2-glib-2.0-dev girepository-tools native-architecture 463s 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. 463s Need to get 977 kB of archives. 463s After this operation, 12.3 MB of additional disk space will be used. 463s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf gir1.2-glib-2.0-dev armhf 2.86.3-4 [865 kB] 463s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf native-architecture all 0.2.6build1 [2256 B] 463s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf girepository-tools armhf 2.86.3-4 [109 kB] 464s Fetched 977 kB in 1s (1608 kB/s) 464s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 464s (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.) 464s Preparing to unpack .../gir1.2-glib-2.0-dev_2.86.3-4_armhf.deb ... 464s Unpacking gir1.2-glib-2.0-dev:armhf (2.86.3-4) ... 464s Selecting previously unselected package native-architecture. 464s Preparing to unpack .../native-architecture_0.2.6build1_all.deb ... 464s Unpacking native-architecture (0.2.6build1) ... 464s Selecting previously unselected package girepository-tools:armhf. 464s Preparing to unpack .../girepository-tools_2.86.3-4_armhf.deb ... 464s Unpacking girepository-tools:armhf (2.86.3-4) ... 464s Setting up native-architecture (0.2.6build1) ... 464s Setting up gir1.2-glib-2.0-dev:armhf (2.86.3-4) ... 464s Setting up girepository-tools:armhf (2.86.3-4) ... 464s Processing triggers for man-db (2.13.1-1) ... 482s autopkgtest [10:05:42]: test girepository-tools: [----------------------- 484s + cd /tmp/autopkgtest.ow0kS0/autopkgtest_tmp 484s + dpkg-architecture -qDEB_HOST_GNU_TYPE 484s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 484s + DEB_HOST_GNU_TYPE=arm-linux-gnueabihf 484s + dpkg-architecture -qDEB_HOST_MULTIARCH 484s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 484s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 484s + arm-linux-gnueabihf-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 484s typelib: GLib-2.0 484s + arm-linux-gnueabihf-gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 485s + arm-linux-gnueabihf-gi-decompile-typelib -o GLib.gir GLib.typelib 485s autopkgtest [10:05:45]: test girepository-tools: -----------------------] 489s girepository-tools PASS (superficial) 489s autopkgtest [10:05:49]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 493s autopkgtest [10:05:53]: test libgio-2.0-dev-bin: preparing testbed 523s autopkgtest [10:06:23]: testbed dpkg architecture: armhf 525s autopkgtest [10:06:25]: testbed apt version: 3.1.15 529s autopkgtest [10:06:29]: @@@@@@@@@@@@@@@@@@@@ test bed setup 532s autopkgtest [10:06:32]: testbed release detected to be: resolute 539s autopkgtest [10:06:39]: updating testbed package index (apt update) 541s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 542s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 542s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 542s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 542s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 542s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 542s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 542s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 542s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [232 kB] 542s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1345 kB] 542s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9992 B] 542s Get:12 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.4 MB] 544s Get:13 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [311 kB] 544s Get:14 http://ftpmaster.internal/ubuntu resolute/main Sources [1409 kB] 544s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1374 kB] 544s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [15.0 MB] 545s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [177 kB] 548s Fetched 43.5 MB in 7s (6340 kB/s) 549s Reading package lists... 556s autopkgtest [10:06:56]: upgrading testbed (apt dist-upgrade and autopurge) 558s Reading package lists... 559s Building dependency tree... 559s Reading state information... 559s Calculating upgrade... 561s The following packages will be upgraded: 561s 3cpio distro-info libc-bin libc-gconv-modules-extra libc6 libpcap0.8t64 561s locales 561s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 561s Need to get 8280 kB of archives. 561s After this operation, 0 B of additional disk space will be used. 561s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-gconv-modules-extra armhf 2.42-2ubuntu5 [1417 kB] 561s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc6 armhf 2.42-2ubuntu5 [1632 kB] 561s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-bin armhf 2.42-2ubuntu5 [545 kB] 561s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf distro-info armhf 1.14build1 [19.3 kB] 561s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf locales all 2.42-2ubuntu5 [4255 kB] 561s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libpcap0.8t64 armhf 1.10.5-2ubuntu3 [140 kB] 561s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf 3cpio armhf 0.14.0-1ubuntu1 [271 kB] 562s Preconfiguring packages ... 562s Fetched 8280 kB in 1s (9547 kB/s) 563s (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.) 563s Preparing to unpack .../libc-gconv-modules-extra_2.42-2ubuntu5_armhf.deb ... 563s Unpacking libc-gconv-modules-extra:armhf (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 563s Setting up libc-gconv-modules-extra:armhf (2.42-2ubuntu5) ... 563s (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.) 563s Preparing to unpack .../libc6_2.42-2ubuntu5_armhf.deb ... 563s readlink: /usr/lib/libeatmydata: No such file or directory 563s Unpacking libc6:armhf (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 563s Setting up libc6:armhf (2.42-2ubuntu5) ... 563s (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.) 563s Preparing to unpack .../libc-bin_2.42-2ubuntu5_armhf.deb ... 563s Unpacking libc-bin (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 563s Setting up libc-bin (2.42-2ubuntu5) ... 564s (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.) 564s Preparing to unpack .../distro-info_1.14build1_armhf.deb ... 564s Unpacking distro-info (1.14build1) over (1.14) ... 564s Preparing to unpack .../locales_2.42-2ubuntu5_all.deb ... 564s Unpacking locales (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 564s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_armhf.deb ... 564s Unpacking libpcap0.8t64:armhf (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 564s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_armhf.deb ... 564s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 564s Setting up distro-info (1.14build1) ... 564s Setting up 3cpio (0.14.0-1ubuntu1) ... 564s Setting up locales (2.42-2ubuntu5) ... 565s Generating locales (this might take a while)... 567s en_US.UTF-8... done 567s Generation complete. 567s Setting up libpcap0.8t64:armhf (1.10.5-2ubuntu3) ... 567s Processing triggers for systemd (259-1ubuntu3) ... 568s Processing triggers for man-db (2.13.1-1) ... 569s Processing triggers for libc-bin (2.42-2ubuntu5) ... 571s Reading package lists... 572s Building dependency tree... 572s Reading state information... 572s Solving dependencies... 573s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 575s autopkgtest [10:07:15]: rebooting testbed after setup commands that affected boot 641s Reading package lists... 641s Building dependency tree... 641s Reading state information... 641s Solving dependencies... 642s The following NEW packages will be installed: 642s libgio-2.0-dev-bin 642s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 642s Need to get 130 kB of archives. 642s After this operation, 819 kB of additional disk space will be used. 642s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libgio-2.0-dev-bin armhf 2.86.3-4 [130 kB] 643s Fetched 130 kB in 0s (287 kB/s) 643s Selecting previously unselected package libgio-2.0-dev-bin. 643s (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.) 643s Preparing to unpack .../libgio-2.0-dev-bin_2.86.3-4_armhf.deb ... 643s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 643s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 644s Processing triggers for man-db (2.13.1-1) ... 661s autopkgtest [10:08:41]: test libgio-2.0-dev-bin: [----------------------- 663s + gdbus-codegen --help 663s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 663s [--c-namespace NAMESPACE] [--c-generate-object-manager] 663s [--c-generate-autocleanup {none,objects,all}] 663s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 663s [--generate-rst OUTFILES] [--pragma-once] 663s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 663s [--glib-min-required VERSION] 663s [--glib-max-allowed VERSION] 663s [--symbol-decorator SYMBOL_DECORATOR] 663s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 663s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 663s [--generate-c-code OUTFILES | --header | --body | 663s --interface-info-header | --interface-info-body] 663s [--output FILE | --output-directory OUTDIR] 663s FILE [FILE ...] 663s 663s D-Bus code and documentation generator 663s 663s positional arguments: 663s FILE D-Bus introspection XML file 663s 663s options: 663s -h, --help show this help message and exit 663s --interface-prefix PREFIX 663s String to strip from D-Bus interface names for code 663s and docs 663s --c-namespace NAMESPACE 663s The namespace to use for generated C code 663s --c-generate-object-manager 663s Generate a GDBusObjectManagerClient subclass when 663s generating C code 663s --c-generate-autocleanup {none,objects,all} 663s Generate autocleanup support 663s --generate-docbook OUTFILES 663s Generate Docbook in OUTFILES-org.Project.IFace.xml 663s --generate-md OUTFILES 663s Generate Markdown in OUTFILES-org.Project.IFace.md 663s --generate-rst OUTFILES 663s Generate reStructuredText in OUTFILES- 663s org.Project.IFace.rst 663s --pragma-once Use "pragma once" as the inclusion guard 663s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 663s Add annotation (may be used several times) 663s --glib-min-required VERSION 663s Minimum version of GLib to be supported by the 663s outputted code (default: 2.30) 663s --glib-max-allowed VERSION 663s Maximum version of GLib to be used by the outputted 663s code (default: current GLib version) 663s --symbol-decorator SYMBOL_DECORATOR 663s Macro used to decorate a symbol in the outputted 663s header, possibly to export symbols 663s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 663s Additional header required for decorator specified by 663s --symbol-decorator 663s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 663s Additional define required for decorator specified by 663s --symbol-decorator 663s --generate-c-code OUTFILES 663s Generate C code in OUTFILES.[ch] 663s --header Generate C headers 663s --body Generate C code 663s --interface-info-header 663s Generate GDBusInterfaceInfo C header 663s --interface-info-body 663s Generate GDBusInterfaceInfo C code 663s --output FILE Write output into the specified file 663s --output-directory OUTDIR 663s Location to output generated files 663s + glib-compile-resources --version 663s 2.86.3 663s + glib-genmarshal --version 663s glib-genmarshal version 2.86.3 663s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 663s You may redistribute copies of glib-genmarshal under the terms of 663s the GNU General Public License which can be found in the 663s GLib source package. Sources, examples and contact 663s information are available at http://www.gtk.org 663s /usr/bin/glib-gettextize (GNU glib) 2.86.3 663s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 663s This is free software; see the source for copying conditions. There is NO 663s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 663s Written by Ulrich Drepper 663s + glib-gettextize --version 663s + glib-mkenums --version 663s glib-mkenums version 2.86.3 663s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 663s You may redistribute copies of glib-mkenums under the terms of 663s the GNU General Public License which can be found in the 663s GLib source package. Sources, examples and contact 663s information are available at http://www.gtk.org 663s + gobject-query tree 663s GObject 663s + gtester --version 663s gtester version 2.86.3 663s + gtester-report --version 663s gtester-report (GLib utils) version 2.86.3. 663s autopkgtest [10:08:43]: test libgio-2.0-dev-bin: -----------------------] 667s libgio-2.0-dev-bin PASS (superficial) 667s autopkgtest [10:08:47]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 671s autopkgtest [10:08:51]: test libglib2.0-dev: preparing testbed 700s autopkgtest [10:09:20]: testbed dpkg architecture: armhf 702s autopkgtest [10:09:22]: testbed apt version: 3.1.15 706s autopkgtest [10:09:26]: @@@@@@@@@@@@@@@@@@@@ test bed setup 708s autopkgtest [10:09:28]: testbed release detected to be: resolute 715s autopkgtest [10:09:35]: updating testbed package index (apt update) 717s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 717s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 717s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 717s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 717s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 718s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 718s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 718s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 718s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [232 kB] 718s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1345 kB] 719s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9992 B] 719s Get:12 http://ftpmaster.internal/ubuntu resolute/main Sources [1409 kB] 719s Get:13 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.4 MB] 725s Get:14 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [311 kB] 725s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1374 kB] 725s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [15.0 MB] 728s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [177 kB] 730s Fetched 43.5 MB in 13s (3307 kB/s) 731s Reading package lists... 737s autopkgtest [10:09:57]: upgrading testbed (apt dist-upgrade and autopurge) 739s Reading package lists... 739s Building dependency tree... 739s Reading state information... 740s Calculating upgrade... 741s The following packages will be upgraded: 741s 3cpio distro-info libc-bin libc-gconv-modules-extra libc6 libpcap0.8t64 741s locales 741s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 741s Need to get 8280 kB of archives. 741s After this operation, 0 B of additional disk space will be used. 741s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-gconv-modules-extra armhf 2.42-2ubuntu5 [1417 kB] 742s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc6 armhf 2.42-2ubuntu5 [1632 kB] 742s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-bin armhf 2.42-2ubuntu5 [545 kB] 742s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf distro-info armhf 1.14build1 [19.3 kB] 742s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf locales all 2.42-2ubuntu5 [4255 kB] 742s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libpcap0.8t64 armhf 1.10.5-2ubuntu3 [140 kB] 742s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf 3cpio armhf 0.14.0-1ubuntu1 [271 kB] 743s Preconfiguring packages ... 743s Fetched 8280 kB in 1s (9553 kB/s) 743s (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.) 743s Preparing to unpack .../libc-gconv-modules-extra_2.42-2ubuntu5_armhf.deb ... 743s Unpacking libc-gconv-modules-extra:armhf (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 743s Setting up libc-gconv-modules-extra:armhf (2.42-2ubuntu5) ... 743s (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.) 743s Preparing to unpack .../libc6_2.42-2ubuntu5_armhf.deb ... 744s readlink: /usr/lib/libeatmydata: No such file or directory 744s Unpacking libc6:armhf (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 744s Setting up libc6:armhf (2.42-2ubuntu5) ... 744s (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.) 744s Preparing to unpack .../libc-bin_2.42-2ubuntu5_armhf.deb ... 744s Unpacking libc-bin (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 744s Setting up libc-bin (2.42-2ubuntu5) ... 744s (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.) 744s Preparing to unpack .../distro-info_1.14build1_armhf.deb ... 744s Unpacking distro-info (1.14build1) over (1.14) ... 744s Preparing to unpack .../locales_2.42-2ubuntu5_all.deb ... 744s Unpacking locales (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 745s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_armhf.deb ... 745s Unpacking libpcap0.8t64:armhf (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 745s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_armhf.deb ... 745s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 745s Setting up distro-info (1.14build1) ... 745s Setting up 3cpio (0.14.0-1ubuntu1) ... 745s Setting up locales (2.42-2ubuntu5) ... 746s Generating locales (this might take a while)... 749s en_US.UTF-8... done 749s Generation complete. 749s Setting up libpcap0.8t64:armhf (1.10.5-2ubuntu3) ... 749s Processing triggers for systemd (259-1ubuntu3) ... 750s Processing triggers for man-db (2.13.1-1) ... 751s Processing triggers for libc-bin (2.42-2ubuntu5) ... 753s Reading package lists... 753s Building dependency tree... 753s Reading state information... 754s Solving dependencies... 755s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 757s autopkgtest [10:10:17]: rebooting testbed after setup commands that affected boot 822s Reading package lists... 822s Building dependency tree... 822s Reading state information... 823s Solving dependencies... 823s The following NEW packages will be installed: 823s build-essential cpp cpp-15 cpp-15-arm-linux-gnueabihf 823s cpp-arm-linux-gnueabihf g++ g++-15 g++-15-arm-linux-gnueabihf 823s g++-arm-linux-gnueabihf gcc gcc-15 gcc-15-arm-linux-gnueabihf 823s gcc-arm-linux-gnueabihf gir1.2-glib-2.0-dev girepository-tools libasan8 823s libblkid-dev libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libffi-dev 823s libgcc-15-dev libgio-2.0-dev libgio-2.0-dev-bin libglib2.0-bin 823s libglib2.0-dev libglib2.0-dev-bin libgomp1 libisl23 libmount-dev libmpc3 823s libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 libpkgconf3 823s libselinux-dev libsepol-dev libstdc++-15-dev libsysprof-capture-4-dev 823s libubsan1 linux-libc-dev native-architecture pkgconf pkgconf-bin 823s rpcsvc-proto uuid-dev zlib1g-dev 824s 0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded. 824s Need to get 59.5 MB of archives. 824s After this operation, 183 MB of additional disk space will be used. 824s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-dev-bin armhf 2.42-2ubuntu5 [21.8 kB] 824s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf linux-libc-dev armhf 6.18.0-9.9 [1819 kB] 824s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf libcrypt-dev armhf 1:4.5.1-1 [128 kB] 824s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf rpcsvc-proto armhf 1.4.3-1build1 [62.6 kB] 824s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc6-dev armhf 2.42-2ubuntu5 [1416 kB] 824s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libisl23 armhf 0.27-1build1 [553 kB] 824s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf libmpc3 armhf 1.3.1-2 [47.0 kB] 824s Get:8 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-15-arm-linux-gnueabihf armhf 15.2.0-12ubuntu1 [10.1 MB] 825s Get:9 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-15 armhf 15.2.0-12ubuntu1 [1032 B] 825s Get:10 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [5756 B] 825s Get:11 http://ftpmaster.internal/ubuntu resolute/main armhf cpp armhf 4:15.2.0-4ubuntu1 [22.4 kB] 825s Get:12 http://ftpmaster.internal/ubuntu resolute/main armhf libcc1-0 armhf 15.2.0-12ubuntu1 [43.5 kB] 825s Get:13 http://ftpmaster.internal/ubuntu resolute/main armhf libgomp1 armhf 15.2.0-12ubuntu1 [129 kB] 825s Get:14 http://ftpmaster.internal/ubuntu resolute/main armhf libasan8 armhf 15.2.0-12ubuntu1 [2949 kB] 825s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf libubsan1 armhf 15.2.0-12ubuntu1 [1187 kB] 825s Get:16 http://ftpmaster.internal/ubuntu resolute/main armhf libgcc-15-dev armhf 15.2.0-12ubuntu1 [898 kB] 825s Get:17 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-15-arm-linux-gnueabihf armhf 15.2.0-12ubuntu1 [19.5 MB] 826s Get:18 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-15 armhf 15.2.0-12ubuntu1 [499 kB] 826s Get:19 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [1220 B] 826s Get:20 http://ftpmaster.internal/ubuntu resolute/main armhf gcc armhf 4:15.2.0-4ubuntu1 [5022 B] 826s Get:21 http://ftpmaster.internal/ubuntu resolute/main armhf libstdc++-15-dev armhf 15.2.0-12ubuntu1 [2638 kB] 826s Get:22 http://ftpmaster.internal/ubuntu resolute/main armhf g++-15-arm-linux-gnueabihf armhf 15.2.0-12ubuntu1 [11.4 MB] 826s Get:23 http://ftpmaster.internal/ubuntu resolute/main armhf g++-15 armhf 15.2.0-12ubuntu1 [25.3 kB] 826s Get:24 http://ftpmaster.internal/ubuntu resolute/main armhf g++-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [968 B] 826s Get:25 http://ftpmaster.internal/ubuntu resolute/main armhf g++ armhf 4:15.2.0-4ubuntu1 [1086 B] 826s Get:26 http://ftpmaster.internal/ubuntu resolute/main armhf build-essential armhf 12.12ubuntu2 [5256 B] 826s Get:27 http://ftpmaster.internal/ubuntu resolute/main armhf gir1.2-glib-2.0-dev armhf 2.86.3-4 [865 kB] 826s Get:28 http://ftpmaster.internal/ubuntu resolute/main armhf native-architecture all 0.2.6build1 [2256 B] 826s Get:29 http://ftpmaster.internal/ubuntu resolute/main armhf girepository-tools armhf 2.86.3-4 [109 kB] 826s Get:30 http://ftpmaster.internal/ubuntu resolute/main armhf libffi-dev armhf 3.5.2-3 [60.5 kB] 826s Get:31 http://ftpmaster.internal/ubuntu resolute/main armhf uuid-dev armhf 2.41.2-4ubuntu2 [55.6 kB] 826s Get:32 http://ftpmaster.internal/ubuntu resolute/main armhf libblkid-dev armhf 2.41.2-4ubuntu2 [224 kB] 826s Get:33 http://ftpmaster.internal/ubuntu resolute/main armhf libsepol-dev armhf 3.9-2 [384 kB] 826s Get:34 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-16-0 armhf 10.46-1 [206 kB] 826s Get:35 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-32-0 armhf 10.46-1 [197 kB] 826s Get:36 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-posix3 armhf 10.46-1 [6286 B] 826s Get:37 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-dev armhf 10.46-1 [744 kB] 826s Get:38 http://ftpmaster.internal/ubuntu resolute/main armhf libselinux-dev armhf 3.9-4 [169 kB] 826s Get:39 http://ftpmaster.internal/ubuntu resolute/main armhf libmount-dev armhf 2.41.2-4ubuntu2 [37.6 kB] 826s Get:40 http://ftpmaster.internal/ubuntu resolute/main armhf libsysprof-capture-4-dev armhf 49.0-5 [49.3 kB] 826s Get:41 http://ftpmaster.internal/ubuntu resolute/main armhf libpkgconf3 armhf 1.8.1-4build1 [26.6 kB] 826s Get:42 http://ftpmaster.internal/ubuntu resolute/main armhf pkgconf-bin armhf 1.8.1-4build1 [21.4 kB] 826s Get:43 http://ftpmaster.internal/ubuntu resolute/main armhf pkgconf armhf 1.8.1-4build1 [16.8 kB] 826s Get:44 http://ftpmaster.internal/ubuntu resolute/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1ubuntu2 [881 kB] 826s Get:45 http://ftpmaster.internal/ubuntu resolute/main armhf libgio-2.0-dev armhf 2.86.3-4 [1731 kB] 826s Get:46 http://ftpmaster.internal/ubuntu resolute/main armhf libgio-2.0-dev-bin armhf 2.86.3-4 [130 kB] 826s Get:47 http://ftpmaster.internal/ubuntu resolute/main armhf libglib2.0-bin armhf 2.86.3-4 [92.4 kB] 826s Get:48 http://ftpmaster.internal/ubuntu resolute/main armhf libglib2.0-dev-bin armhf 2.86.3-4 [18.2 kB] 826s Get:49 http://ftpmaster.internal/ubuntu resolute/main armhf libglib2.0-dev armhf 2.86.3-4 [18.9 kB] 827s Fetched 59.5 MB in 3s (20.2 MB/s) 827s Selecting previously unselected package libc-dev-bin. 827s (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.) 827s Preparing to unpack .../00-libc-dev-bin_2.42-2ubuntu5_armhf.deb ... 827s Unpacking libc-dev-bin (2.42-2ubuntu5) ... 827s Selecting previously unselected package linux-libc-dev:armhf. 827s Preparing to unpack .../01-linux-libc-dev_6.18.0-9.9_armhf.deb ... 827s Unpacking linux-libc-dev:armhf (6.18.0-9.9) ... 827s Selecting previously unselected package libcrypt-dev:armhf. 827s Preparing to unpack .../02-libcrypt-dev_1%3a4.5.1-1_armhf.deb ... 827s Unpacking libcrypt-dev:armhf (1:4.5.1-1) ... 827s Selecting previously unselected package rpcsvc-proto. 827s Preparing to unpack .../03-rpcsvc-proto_1.4.3-1build1_armhf.deb ... 827s Unpacking rpcsvc-proto (1.4.3-1build1) ... 827s Selecting previously unselected package libc6-dev:armhf. 827s Preparing to unpack .../04-libc6-dev_2.42-2ubuntu5_armhf.deb ... 827s Unpacking libc6-dev:armhf (2.42-2ubuntu5) ... 828s Selecting previously unselected package libisl23:armhf. 828s Preparing to unpack .../05-libisl23_0.27-1build1_armhf.deb ... 828s Unpacking libisl23:armhf (0.27-1build1) ... 828s Selecting previously unselected package libmpc3:armhf. 828s Preparing to unpack .../06-libmpc3_1.3.1-2_armhf.deb ... 828s Unpacking libmpc3:armhf (1.3.1-2) ... 828s Selecting previously unselected package cpp-15-arm-linux-gnueabihf. 828s Preparing to unpack .../07-cpp-15-arm-linux-gnueabihf_15.2.0-12ubuntu1_armhf.deb ... 828s Unpacking cpp-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 828s Selecting previously unselected package cpp-15. 828s Preparing to unpack .../08-cpp-15_15.2.0-12ubuntu1_armhf.deb ... 828s Unpacking cpp-15 (15.2.0-12ubuntu1) ... 828s Selecting previously unselected package cpp-arm-linux-gnueabihf. 828s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 828s Unpacking cpp-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 828s Selecting previously unselected package cpp. 828s Preparing to unpack .../10-cpp_4%3a15.2.0-4ubuntu1_armhf.deb ... 828s Unpacking cpp (4:15.2.0-4ubuntu1) ... 828s Selecting previously unselected package libcc1-0:armhf. 828s Preparing to unpack .../11-libcc1-0_15.2.0-12ubuntu1_armhf.deb ... 828s Unpacking libcc1-0:armhf (15.2.0-12ubuntu1) ... 828s Selecting previously unselected package libgomp1:armhf. 828s Preparing to unpack .../12-libgomp1_15.2.0-12ubuntu1_armhf.deb ... 828s Unpacking libgomp1:armhf (15.2.0-12ubuntu1) ... 828s Selecting previously unselected package libasan8:armhf. 828s Preparing to unpack .../13-libasan8_15.2.0-12ubuntu1_armhf.deb ... 828s Unpacking libasan8:armhf (15.2.0-12ubuntu1) ... 828s Selecting previously unselected package libubsan1:armhf. 828s Preparing to unpack .../14-libubsan1_15.2.0-12ubuntu1_armhf.deb ... 828s Unpacking libubsan1:armhf (15.2.0-12ubuntu1) ... 828s Selecting previously unselected package libgcc-15-dev:armhf. 828s Preparing to unpack .../15-libgcc-15-dev_15.2.0-12ubuntu1_armhf.deb ... 828s Unpacking libgcc-15-dev:armhf (15.2.0-12ubuntu1) ... 829s Selecting previously unselected package gcc-15-arm-linux-gnueabihf. 829s Preparing to unpack .../16-gcc-15-arm-linux-gnueabihf_15.2.0-12ubuntu1_armhf.deb ... 829s Unpacking gcc-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 829s Selecting previously unselected package gcc-15. 829s Preparing to unpack .../17-gcc-15_15.2.0-12ubuntu1_armhf.deb ... 829s Unpacking gcc-15 (15.2.0-12ubuntu1) ... 829s Selecting previously unselected package gcc-arm-linux-gnueabihf. 829s Preparing to unpack .../18-gcc-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 829s Unpacking gcc-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 829s Selecting previously unselected package gcc. 829s Preparing to unpack .../19-gcc_4%3a15.2.0-4ubuntu1_armhf.deb ... 829s Unpacking gcc (4:15.2.0-4ubuntu1) ... 829s Selecting previously unselected package libstdc++-15-dev:armhf. 829s Preparing to unpack .../20-libstdc++-15-dev_15.2.0-12ubuntu1_armhf.deb ... 829s Unpacking libstdc++-15-dev:armhf (15.2.0-12ubuntu1) ... 830s Selecting previously unselected package g++-15-arm-linux-gnueabihf. 830s Preparing to unpack .../21-g++-15-arm-linux-gnueabihf_15.2.0-12ubuntu1_armhf.deb ... 830s Unpacking g++-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 830s Selecting previously unselected package g++-15. 830s Preparing to unpack .../22-g++-15_15.2.0-12ubuntu1_armhf.deb ... 830s Unpacking g++-15 (15.2.0-12ubuntu1) ... 830s Selecting previously unselected package g++-arm-linux-gnueabihf. 830s Preparing to unpack .../23-g++-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 830s Unpacking g++-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 830s Selecting previously unselected package g++. 830s Preparing to unpack .../24-g++_4%3a15.2.0-4ubuntu1_armhf.deb ... 830s Unpacking g++ (4:15.2.0-4ubuntu1) ... 830s Selecting previously unselected package build-essential. 830s Preparing to unpack .../25-build-essential_12.12ubuntu2_armhf.deb ... 830s Unpacking build-essential (12.12ubuntu2) ... 830s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 830s Preparing to unpack .../26-gir1.2-glib-2.0-dev_2.86.3-4_armhf.deb ... 830s Unpacking gir1.2-glib-2.0-dev:armhf (2.86.3-4) ... 830s Selecting previously unselected package native-architecture. 830s Preparing to unpack .../27-native-architecture_0.2.6build1_all.deb ... 830s Unpacking native-architecture (0.2.6build1) ... 830s Selecting previously unselected package girepository-tools:armhf. 830s Preparing to unpack .../28-girepository-tools_2.86.3-4_armhf.deb ... 830s Unpacking girepository-tools:armhf (2.86.3-4) ... 830s Selecting previously unselected package libffi-dev:armhf. 830s Preparing to unpack .../29-libffi-dev_3.5.2-3_armhf.deb ... 830s Unpacking libffi-dev:armhf (3.5.2-3) ... 830s Selecting previously unselected package uuid-dev:armhf. 830s Preparing to unpack .../30-uuid-dev_2.41.2-4ubuntu2_armhf.deb ... 830s Unpacking uuid-dev:armhf (2.41.2-4ubuntu2) ... 831s Selecting previously unselected package libblkid-dev:armhf. 831s Preparing to unpack .../31-libblkid-dev_2.41.2-4ubuntu2_armhf.deb ... 831s Unpacking libblkid-dev:armhf (2.41.2-4ubuntu2) ... 831s Selecting previously unselected package libsepol-dev:armhf. 831s Preparing to unpack .../32-libsepol-dev_3.9-2_armhf.deb ... 831s Unpacking libsepol-dev:armhf (3.9-2) ... 831s Selecting previously unselected package libpcre2-16-0:armhf. 831s Preparing to unpack .../33-libpcre2-16-0_10.46-1_armhf.deb ... 831s Unpacking libpcre2-16-0:armhf (10.46-1) ... 831s Selecting previously unselected package libpcre2-32-0:armhf. 831s Preparing to unpack .../34-libpcre2-32-0_10.46-1_armhf.deb ... 831s Unpacking libpcre2-32-0:armhf (10.46-1) ... 831s Selecting previously unselected package libpcre2-posix3:armhf. 831s Preparing to unpack .../35-libpcre2-posix3_10.46-1_armhf.deb ... 831s Unpacking libpcre2-posix3:armhf (10.46-1) ... 831s Selecting previously unselected package libpcre2-dev:armhf. 831s Preparing to unpack .../36-libpcre2-dev_10.46-1_armhf.deb ... 831s Unpacking libpcre2-dev:armhf (10.46-1) ... 831s Selecting previously unselected package libselinux-dev:armhf. 831s Preparing to unpack .../37-libselinux-dev_3.9-4_armhf.deb ... 831s Unpacking libselinux-dev:armhf (3.9-4) ... 831s Selecting previously unselected package libmount-dev:armhf. 831s Preparing to unpack .../38-libmount-dev_2.41.2-4ubuntu2_armhf.deb ... 831s Unpacking libmount-dev:armhf (2.41.2-4ubuntu2) ... 831s Selecting previously unselected package libsysprof-capture-4-dev:armhf. 831s Preparing to unpack .../39-libsysprof-capture-4-dev_49.0-5_armhf.deb ... 831s Unpacking libsysprof-capture-4-dev:armhf (49.0-5) ... 831s Selecting previously unselected package libpkgconf3:armhf. 831s Preparing to unpack .../40-libpkgconf3_1.8.1-4build1_armhf.deb ... 831s Unpacking libpkgconf3:armhf (1.8.1-4build1) ... 831s Selecting previously unselected package pkgconf-bin. 831s Preparing to unpack .../41-pkgconf-bin_1.8.1-4build1_armhf.deb ... 831s Unpacking pkgconf-bin (1.8.1-4build1) ... 831s Selecting previously unselected package pkgconf:armhf. 831s Preparing to unpack .../42-pkgconf_1.8.1-4build1_armhf.deb ... 831s Unpacking pkgconf:armhf (1.8.1-4build1) ... 831s Selecting previously unselected package zlib1g-dev:armhf. 831s Preparing to unpack .../43-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_armhf.deb ... 831s Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 831s Selecting previously unselected package libgio-2.0-dev:armhf. 831s Preparing to unpack .../44-libgio-2.0-dev_2.86.3-4_armhf.deb ... 831s Unpacking libgio-2.0-dev:armhf (2.86.3-4) ... 831s Selecting previously unselected package libgio-2.0-dev-bin. 831s Preparing to unpack .../45-libgio-2.0-dev-bin_2.86.3-4_armhf.deb ... 831s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 831s Selecting previously unselected package libglib2.0-bin. 831s Preparing to unpack .../46-libglib2.0-bin_2.86.3-4_armhf.deb ... 831s Unpacking libglib2.0-bin (2.86.3-4) ... 832s Selecting previously unselected package libglib2.0-dev-bin. 832s Preparing to unpack .../47-libglib2.0-dev-bin_2.86.3-4_armhf.deb ... 832s Unpacking libglib2.0-dev-bin (2.86.3-4) ... 832s Selecting previously unselected package libglib2.0-dev:armhf. 832s Preparing to unpack .../48-libglib2.0-dev_2.86.3-4_armhf.deb ... 832s Unpacking libglib2.0-dev:armhf (2.86.3-4) ... 832s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 832s Setting up native-architecture (0.2.6build1) ... 832s Setting up linux-libc-dev:armhf (6.18.0-9.9) ... 832s Setting up libglib2.0-bin (2.86.3-4) ... 832s Setting up libgomp1:armhf (15.2.0-12ubuntu1) ... 832s Setting up libffi-dev:armhf (3.5.2-3) ... 832s Setting up libpcre2-16-0:armhf (10.46-1) ... 832s Setting up libsysprof-capture-4-dev:armhf (49.0-5) ... 832s Setting up libpcre2-32-0:armhf (10.46-1) ... 832s Setting up libpkgconf3:armhf (1.8.1-4build1) ... 832s Setting up rpcsvc-proto (1.4.3-1build1) ... 832s Setting up libmpc3:armhf (1.3.1-2) ... 832s Setting up libsepol-dev:armhf (3.9-2) ... 832s Setting up pkgconf-bin (1.8.1-4build1) ... 832s Setting up libubsan1:armhf (15.2.0-12ubuntu1) ... 832s Setting up libpcre2-posix3:armhf (10.46-1) ... 832s Setting up gir1.2-glib-2.0-dev:armhf (2.86.3-4) ... 832s Setting up libcrypt-dev:armhf (1:4.5.1-1) ... 832s Setting up libasan8:armhf (15.2.0-12ubuntu1) ... 832s Setting up libisl23:armhf (0.27-1build1) ... 832s Setting up libc-dev-bin (2.42-2ubuntu5) ... 832s Setting up cpp-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 832s Setting up libcc1-0:armhf (15.2.0-12ubuntu1) ... 832s Setting up cpp-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 832s Setting up girepository-tools:armhf (2.86.3-4) ... 832s Setting up libgcc-15-dev:armhf (15.2.0-12ubuntu1) ... 832s Setting up gcc-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 832s Setting up pkgconf:armhf (1.8.1-4build1) ... 832s Setting up cpp-15 (15.2.0-12ubuntu1) ... 832s Setting up cpp (4:15.2.0-4ubuntu1) ... 832s Setting up libc6-dev:armhf (2.42-2ubuntu5) ... 832s Setting up gcc-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 832s Setting up libglib2.0-dev-bin (2.86.3-4) ... 832s Setting up libpcre2-dev:armhf (10.46-1) ... 832s Setting up gcc-15 (15.2.0-12ubuntu1) ... 832s Setting up libstdc++-15-dev:armhf (15.2.0-12ubuntu1) ... 832s Setting up uuid-dev:armhf (2.41.2-4ubuntu2) ... 832s Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 832s Setting up libselinux-dev:armhf (3.9-4) ... 832s Setting up libblkid-dev:armhf (2.41.2-4ubuntu2) ... 832s Setting up g++-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 832s Setting up gcc (4:15.2.0-4ubuntu1) ... 832s Setting up g++-15 (15.2.0-12ubuntu1) ... 832s Setting up libmount-dev:armhf (2.41.2-4ubuntu2) ... 832s Setting up g++-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 832s Setting up libgio-2.0-dev:armhf (2.86.3-4) ... 832s Setting up g++ (4:15.2.0-4ubuntu1) ... 832s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 832s Setting up build-essential (12.12ubuntu2) ... 832s Processing triggers for install-info (7.2-5) ... 832s Processing triggers for libc-bin (2.42-2ubuntu5) ... 832s Processing triggers for man-db (2.13.1-1) ... 833s Processing triggers for libglib2.0-0t64:armhf (2.86.3-4) ... 833s No schema files found: doing nothing. 833s Setting up libglib2.0-dev:armhf (2.86.3-4) ... 850s autopkgtest [10:11:50]: test libglib2.0-dev: [----------------------- 852s + debian/tests/build 852s + mode=dynamic 852s + getopt -o --long static -n debian/tests/build -- 852s + getopt_temp= -- 852s + eval set -- -- 852s + set -- -- 852s + true 852s + shift 852s + break 852s + mktemp -d 852s + WORKDIR=/tmp/tmp.lMQaIbZHYZ 852s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 852s + cd /tmp/tmp.lMQaIbZHYZ 852s + [ -n ] 852s + CROSS_COMPILE= 852s + cat 852s + cat 852s + cat 852s + cat 852s + cat 852s + cat 852s + cflags= 852s + pcflags= 852s + packages=glib-2.0 852s + pkg-config --cflags --libs glib-2.0 852s + 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 852s + echo build (glib, dynamic): OK 852s + [ -x glib-dynamic ] 852s + foo=bar ./glib-dynamic 852s build (glib, dynamic): OK 852s + echo run (glib, dynamic): OK 852s + cflags= 852s + pcflags= 852s + packages=gobject-2.0 852s run (glib, dynamic): OK 852s + pkg-config --cflags --libs gobject-2.0 852s + 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 852s build (gobject, dynamic): OK 852s + echo build (gobject, dynamic): OK 852s + [ -x gobject-dynamic ] 852s + foo=bar ./gobject-dynamic 852s + echo run (gobject, dynamic): OK 852s + cflags= 852s + pcflags= 852s + packages=gio-2.0 852s run (gobject, dynamic): OK 852s + pkg-config --cflags --libs gio-2.0 852s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 852s + echo build (gio, dynamic): OK 852s + [ -x gio-dynamic ] 852s + foo=bar ./gio-dynamic 852s build (gio, dynamic): OK 852s + echo run (gio, dynamic): OK 852s + cflags= 852s + pcflags= 852s + packages=gio-unix-2.0 852s + pkg-config --cflags --libs gio-unix-2.0 852s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 852s run (gio, dynamic): OK 853s + echo build (gio-unix, dynamic): OK 853s + [ -x gio-unix-dynamic ] 853s + foo=bar ./gio-unix-dynamic 853s build (gio-unix, dynamic): OK 853s + echo run (gio-unix, dynamic): OK 853s + cflags= 853s + pcflags= 853s + packages=gmodule-2.0 853s + pkg-config --cflags --libs gmodule-2.0 853s run (gio-unix, dynamic): OK 853s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 853s + echo build (gmodule, dynamic): OK 853s + [ -x gmodule-dynamic ] 853s + foo=bar ./gmodule-dynamic 853s build (gmodule, dynamic): OK 853s run (gmodule, dynamic): OK 853s + echo run (gmodule, dynamic): OK 853s + cflags= 853s + pcflags= 853s + packages=gthread-2.0 853s + pkg-config --cflags --libs gthread-2.0 853s + 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 853s + echo build (gthread, dynamic): OK 853s + [ -x gthread-dynamic ] 853s + foo=bar ./gthread-dynamic 853s build (gthread, dynamic): OK 853s + echo run (gthread, dynamic): OK 853s + rm -rf /tmp/tmp.lMQaIbZHYZ 853s run (gthread, dynamic): OK 853s + debian/tests/build-static 853s + mode=dynamic 853s + getopt -o --long static -n debian/tests/build -- --static 853s + getopt_temp= --static -- 853s + eval set -- --static -- 853s + set -- --static -- 853s + true 853s + mode=static 853s + shift 853s + continue 853s + true 853s + shift 853s + break 853s + mktemp -d 853s + WORKDIR=/tmp/tmp.SeAPB21jz0 853s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 853s + cd /tmp/tmp.SeAPB21jz0 853s + [ -n ] 853s + CROSS_COMPILE= 853s + cat 853s + cat 853s + cat 853s + cat 853s + cat 853s + cat 853s + cflags= 853s + pcflags= 853s + packages=glib-2.0 853s + cflags=-static 853s + pcflags=--static 853s + pkg-config --static --cflags --libs glib-2.0 853s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 853s /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': 853s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 853s /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 853s /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 853s + echo build (glib, static): OK 853s + [ -x glib-static ] 853s + foo=bar ./glib-static 853s + echo run (glib, static): OK 853s + cflags= 853s + pcflags= 853s + packages=gobject-2.0 853s + cflags=-static 853s + pcflags=--static 853s + pkg-config --static --cflags --libs gobject-2.0 853s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lffi 853s build (glib, static): OK 853s run (glib, static): OK 853s /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': 853s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 853s /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 853s /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 854s build (gobject, static): OK 854s + echo build (gobject, static): OK 854s + [ -x gobject-static ] 854s + foo=bar ./gobject-static 854s + echo run (gobject, static): OK 854s + cflags= 854s + pcflags= 854s + packages=gio-2.0 854s + cflags=-static 854s + pcflags=--static 854s + continue 854s + cflags= 854s + pcflags= 854s + packages=gio-unix-2.0 854s + cflags=-static 854s + pcflags=--static 854s + continue 854s + cflags= 854s + pcflags= 854s + packages=gmodule-2.0 854s + cflags=-static 854s + pcflags=--static 854s run (gobject, static): OK 854s + pkg-config --static --cflags --libs gmodule-2.0 854s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 854s /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': 854s (.text+0x424): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 854s /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': 854s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 854s /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 854s /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 854s build (gmodule, static): OK 854s + echo build (gmodule, static): OK 854s + [ -x gmodule-static ] 854s + foo=bar ./gmodule-static 854s + echo run (gmodule, static): OK 854s + cflags= 854s + pcflags= 854s + packages=gthread-2.0 854s + cflags=-static 854s + pcflags=--static 854s + pkg-config --static --cflags --libs gthread-2.0 854s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 854s run (gmodule, static): OK 854s /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': 854s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 854s /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 854s /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 854s + echo build (gthread, static): OK 854s + [ -x gthread-static ] 854s + foo=bar ./gthread-static 854s build (gthread, static): OK 854s + echo run (gthread, static): OK 854s + rm -rf /tmp/tmp.SeAPB21jz0 854s run (gthread, static): OK 854s + debian/tests/girepository-tools 854s + cd /tmp/autopkgtest.ow0kS0/autopkgtest_tmp 854s + dpkg-architecture -qDEB_HOST_GNU_TYPE 854s + DEB_HOST_GNU_TYPE=arm-linux-gnueabihf 854s + dpkg-architecture -qDEB_HOST_MULTIARCH 854s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 854s + arm-linux-gnueabihf-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 854s typelib: GLib-2.0 854s + arm-linux-gnueabihf-gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 854s + arm-linux-gnueabihf-gi-decompile-typelib -o GLib.gir GLib.typelib 854s + debian/tests/libgio-2.0-dev-bin 854s + gdbus-codegen --help 854s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 854s [--c-namespace NAMESPACE] [--c-generate-object-manager] 854s [--c-generate-autocleanup {none,objects,all}] 854s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 854s [--generate-rst OUTFILES] [--pragma-once] 854s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 854s [--glib-min-required VERSION] 854s [--glib-max-allowed VERSION] 854s [--symbol-decorator SYMBOL_DECORATOR] 854s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 854s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 854s [--generate-c-code OUTFILES | --header | --body | 854s --interface-info-header | --interface-info-body] 854s [--output FILE | --output-directory OUTDIR] 854s FILE [FILE ...] 854s 854s D-Bus code and documentation generator 854s 854s positional arguments: 854s FILE D-Bus introspection XML file 854s 854s options: 854s -h, --help show this help message and exit 854s --interface-prefix PREFIX 854s String to strip from D-Bus interface names for code 854s and docs 854s --c-namespace NAMESPACE 854s The namespace to use for generated C code 854s --c-generate-object-manager 854s Generate a GDBusObjectManagerClient subclass when 854s generating C code 854s --c-generate-autocleanup {none,objects,all} 854s Generate autocleanup support 854s --generate-docbook OUTFILES 854s Generate Docbook in OUTFILES-org.Project.IFace.xml 854s --generate-md OUTFILES 854s Generate Markdown in OUTFILES-org.Project.IFace.md 854s --generate-rst OUTFILES 854s Generate reStructuredText in OUTFILES- 854s org.Project.IFace.rst 854s --pragma-once Use "pragma once" as the inclusion guard 854s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 854s Add annotation (may be used several times) 854s --glib-min-required VERSION 854s Minimum version of GLib to be supported by the 854s outputted code (default: 2.30) 854s --glib-max-allowed VERSION 854s Maximum version of GLib to be used by the outputted 854s code (default: current GLib version) 854s --symbol-decorator SYMBOL_DECORATOR 854s Macro used to decorate a symbol in the outputted 854s header, possibly to export symbols 854s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 854s Additional header required for decorator specified by 854s --symbol-decorator 854s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 854s Additional define required for decorator specified by 854s --symbol-decorator 854s --generate-c-code OUTFILES 854s Generate C code in OUTFILES.[ch] 854s --header Generate C headers 854s --body Generate C code 854s --interface-info-header 854s Generate GDBusInterfaceInfo C header 854s --interface-info-body 854s Generate GDBusInterfaceInfo C code 854s --output FILE Write output into the specified file 854s --output-directory OUTDIR 854s Location to output generated files 854s + glib-compile-resources --version 854s + glib-genmarshal --version 854s 2.86.3 854s glib-genmarshal version 2.86.3 854s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 854s You may redistribute copies of glib-genmarshal under the terms of 854s the GNU General Public License which can be found in the 854s GLib source package. Sources, examples and contact 854s information are available at http://www.gtk.org 854s + glib-gettextize --version 854s + glib-mkenums --version 854s /usr/bin/glib-gettextize (GNU glib) 2.86.3 854s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 854s This is free software; see the source for copying conditions. There is NO 854s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 854s Written by Ulrich Drepper 854s glib-mkenums version 2.86.3 854s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 854s You may redistribute copies of glib-mkenums under the terms of 854s the GNU General Public License which can be found in the 854s GLib source package. Sources, examples and contact 854s information are available at http://www.gtk.org 854s + gobject-query tree 854s GObject 854s + gtester --version 854s gtester version 2.86.3 854s + gtester-report --version 855s gtester-report (GLib utils) version 2.86.3. 855s + cd /tmp/autopkgtest.ow0kS0/autopkgtest_tmp 855s + dpkg-architecture -qDEB_HOST_MULTIARCH 855s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 855s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 855s typelib: GLib-2.0 855s + gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 855s + gi-decompile-typelib -o GLib.gir GLib.typelib 855s autopkgtest [10:11:55]: test libglib2.0-dev: -----------------------] 859s autopkgtest [10:11:59]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 859s libglib2.0-dev PASS (superficial) 863s autopkgtest [10:12:03]: test installed-tests: preparing testbed 893s autopkgtest [10:12:33]: testbed dpkg architecture: armhf 895s autopkgtest [10:12:35]: testbed apt version: 3.1.15 899s autopkgtest [10:12:39]: @@@@@@@@@@@@@@@@@@@@ test bed setup 901s autopkgtest [10:12:41]: testbed release detected to be: resolute 909s autopkgtest [10:12:49]: updating testbed package index (apt update) 911s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 911s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 911s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 912s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 912s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 912s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 912s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 912s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 912s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [232 kB] 912s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1345 kB] 912s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9992 B] 912s Get:12 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.4 MB] 913s Get:13 http://ftpmaster.internal/ubuntu resolute/main Sources [1409 kB] 913s Get:14 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [311 kB] 913s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1374 kB] 913s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [15.0 MB] 913s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [177 kB] 917s Fetched 43.5 MB in 6s (7750 kB/s) 918s Reading package lists... 924s autopkgtest [10:13:04]: upgrading testbed (apt dist-upgrade and autopurge) 926s Reading package lists... 926s Building dependency tree... 926s Reading state information... 927s Calculating upgrade... 928s The following packages will be upgraded: 928s 3cpio distro-info libc-bin libc-gconv-modules-extra libc6 libpcap0.8t64 928s locales 928s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 928s Need to get 8280 kB of archives. 928s After this operation, 0 B of additional disk space will be used. 928s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-gconv-modules-extra armhf 2.42-2ubuntu5 [1417 kB] 929s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc6 armhf 2.42-2ubuntu5 [1632 kB] 929s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-bin armhf 2.42-2ubuntu5 [545 kB] 929s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf distro-info armhf 1.14build1 [19.3 kB] 929s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf locales all 2.42-2ubuntu5 [4255 kB] 929s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libpcap0.8t64 armhf 1.10.5-2ubuntu3 [140 kB] 929s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf 3cpio armhf 0.14.0-1ubuntu1 [271 kB] 930s Preconfiguring packages ... 930s Fetched 8280 kB in 2s (5012 kB/s) 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 .../libc-gconv-modules-extra_2.42-2ubuntu5_armhf.deb ... 930s Unpacking libc-gconv-modules-extra:armhf (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 931s Setting up libc-gconv-modules-extra:armhf (2.42-2ubuntu5) ... 931s (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.) 931s Preparing to unpack .../libc6_2.42-2ubuntu5_armhf.deb ... 931s readlink: /usr/lib/libeatmydata: No such file or directory 931s Unpacking libc6:armhf (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 931s Setting up libc6:armhf (2.42-2ubuntu5) ... 931s (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.) 931s Preparing to unpack .../libc-bin_2.42-2ubuntu5_armhf.deb ... 931s Unpacking libc-bin (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 931s Setting up libc-bin (2.42-2ubuntu5) ... 932s (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.) 932s Preparing to unpack .../distro-info_1.14build1_armhf.deb ... 932s Unpacking distro-info (1.14build1) over (1.14) ... 932s Preparing to unpack .../locales_2.42-2ubuntu5_all.deb ... 932s Unpacking locales (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 932s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_armhf.deb ... 932s Unpacking libpcap0.8t64:armhf (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 932s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_armhf.deb ... 932s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 932s Setting up distro-info (1.14build1) ... 932s Setting up 3cpio (0.14.0-1ubuntu1) ... 932s Setting up locales (2.42-2ubuntu5) ... 933s Generating locales (this might take a while)... 936s en_US.UTF-8... done 936s Generation complete. 936s Setting up libpcap0.8t64:armhf (1.10.5-2ubuntu3) ... 936s Processing triggers for systemd (259-1ubuntu3) ... 937s Processing triggers for man-db (2.13.1-1) ... 938s Processing triggers for libc-bin (2.42-2ubuntu5) ... 940s Reading package lists... 941s Building dependency tree... 941s Reading state information... 941s Solving dependencies... 942s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 944s autopkgtest [10:13:24]: rebooting testbed after setup commands that affected boot 1014s Reading package lists... 1014s Building dependency tree... 1014s Reading state information... 1014s Solving dependencies... 1015s The following NEW packages will be installed: 1015s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 1015s gnome-desktop-testing libfontenc1 libfreetype6 libgbm1 libgio-2.0-dev-bin 1015s libgl1 libgl1-mesa-dri libglib2.0-bin libglib2.0-dev-bin libglib2.0-tests 1015s libglvnd0 libglx-mesa0 libglx0 libice6 libllvm21 libpixman-1-0 libsm6 1015s libvulkan1 libx11-xcb1 libxaw7 libxcb-dri3-0 libxcb-glx0 libxcb-present0 1015s libxcb-randr0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxfont2 libxkbfile1 1015s libxmu6 libxpm4 libxrandr2 libxrender1 libxshmfence1 libxt6t64 libxxf86vm1 1015s mesa-libgallium native-architecture python3-dbusmock tzdata-legacy 1015s x11-common x11-xkb-utils xserver-common xvfb 1016s 0 upgraded, 48 newly installed, 0 to remove and 0 not upgraded. 1016s Need to get 46.2 MB of archives. 1016s After this operation, 211 MB of additional disk space will be used. 1016s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf dbus-x11 armhf 1.16.2-2ubuntu2 [22.7 kB] 1016s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf desktop-file-utils armhf 0.28-1build1 [48.4 kB] 1016s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf gir1.2-glib-2.0-dev armhf 2.86.3-4 [865 kB] 1016s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf native-architecture all 0.2.6build1 [2256 B] 1016s Get:5 http://ftpmaster.internal/ubuntu resolute/main armhf girepository-tools armhf 2.86.3-4 [109 kB] 1016s Get:6 http://ftpmaster.internal/ubuntu resolute/universe armhf gnome-desktop-testing armhf 2021.1-5 [16.0 kB] 1016s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf libfontenc1 armhf 1:1.1.8-1build2 [11.7 kB] 1016s Get:8 http://ftpmaster.internal/ubuntu resolute/main armhf libfreetype6 armhf 2.14.1+dfsg-2 [345 kB] 1016s Get:9 http://ftpmaster.internal/ubuntu resolute/main armhf libllvm21 armhf 1:21.1.8-1ubuntu1 [30.3 MB] 1017s Get:10 http://ftpmaster.internal/ubuntu resolute/main armhf libx11-xcb1 armhf 2:1.8.12-1build1 [7920 B] 1017s Get:11 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-dri3-0 armhf 1.17.0-2ubuntu1 [7342 B] 1017s Get:12 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-present0 armhf 1.17.0-2ubuntu1 [6080 B] 1017s Get:13 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-randr0 armhf 1.17.0-2ubuntu1 [16.9 kB] 1017s Get:14 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-sync1 armhf 1.17.0-2ubuntu1 [8840 B] 1017s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-xfixes0 armhf 1.17.0-2ubuntu1 [10.2 kB] 1017s Get:16 http://ftpmaster.internal/ubuntu resolute/main armhf libxshmfence1 armhf 1.3.3-1build1 [5000 B] 1017s Get:17 http://ftpmaster.internal/ubuntu resolute/main armhf mesa-libgallium armhf 25.3.3-1ubuntu1 [8874 kB] 1017s Get:18 http://ftpmaster.internal/ubuntu resolute/main armhf libgbm1 armhf 25.3.3-1ubuntu1 [30.0 kB] 1017s Get:19 http://ftpmaster.internal/ubuntu resolute/main armhf libgio-2.0-dev-bin armhf 2.86.3-4 [130 kB] 1017s Get:20 http://ftpmaster.internal/ubuntu resolute/main armhf libvulkan1 armhf 1.4.335.0-1 [137 kB] 1017s Get:21 http://ftpmaster.internal/ubuntu resolute/main armhf libgl1-mesa-dri armhf 25.3.3-1ubuntu1 [32.7 kB] 1017s Get:22 http://ftpmaster.internal/ubuntu resolute/main armhf libglib2.0-bin armhf 2.86.3-4 [92.4 kB] 1017s Get:23 http://ftpmaster.internal/ubuntu resolute/main armhf libglib2.0-dev-bin armhf 2.86.3-4 [18.2 kB] 1017s Get:24 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-dbusmock all 0.38.1-1 [92.0 kB] 1017s Get:25 http://ftpmaster.internal/ubuntu resolute/main armhf tzdata-legacy all 2025c-3ubuntu3 [99.3 kB] 1017s Get:26 http://ftpmaster.internal/ubuntu resolute/universe armhf libglib2.0-tests armhf 2.86.3-4 [2848 kB] 1018s Get:27 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-glx0 armhf 1.17.0-2ubuntu1 [22.8 kB] 1018s Get:28 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-shm0 armhf 1.17.0-2ubuntu1 [5956 B] 1018s Get:29 http://ftpmaster.internal/ubuntu resolute/main armhf libxxf86vm1 armhf 1:1.1.4-2 [9110 B] 1018s Get:30 http://ftpmaster.internal/ubuntu resolute/main armhf libglx-mesa0 armhf 25.3.3-1ubuntu1 [87.3 kB] 1018s Get:31 http://ftpmaster.internal/ubuntu resolute/main armhf x11-common all 1:7.7+24ubuntu1 [22.4 kB] 1018s Get:32 http://ftpmaster.internal/ubuntu resolute/main armhf libice6 armhf 2:1.1.1-1build1 [37.5 kB] 1018s Get:33 http://ftpmaster.internal/ubuntu resolute/main armhf libpixman-1-0 armhf 0.46.4-1 [196 kB] 1018s Get:34 http://ftpmaster.internal/ubuntu resolute/main armhf libsm6 armhf 2:1.2.6-1build1 [15.3 kB] 1018s Get:35 http://ftpmaster.internal/ubuntu resolute/main armhf libxt6t64 armhf 1:1.2.1-1.3 [145 kB] 1018s Get:36 http://ftpmaster.internal/ubuntu resolute/main armhf libxmu6 armhf 2:1.1.3-4 [41.2 kB] 1018s Get:37 http://ftpmaster.internal/ubuntu resolute/main armhf libxpm4 armhf 1:3.5.17-1build3 [31.1 kB] 1018s Get:38 http://ftpmaster.internal/ubuntu resolute/main armhf libxaw7 armhf 2:1.0.16-1build1 [156 kB] 1018s Get:39 http://ftpmaster.internal/ubuntu resolute/main armhf libxfont2 armhf 1:2.0.6-2 [82.7 kB] 1018s Get:40 http://ftpmaster.internal/ubuntu resolute/main armhf libxkbfile1 armhf 1:1.1.0-1build5 [60.6 kB] 1018s Get:41 http://ftpmaster.internal/ubuntu resolute/main armhf libxrender1 armhf 1:0.9.12-1 [16.6 kB] 1018s Get:42 http://ftpmaster.internal/ubuntu resolute/main armhf libxrandr2 armhf 2:1.5.4-1build1 [15.6 kB] 1018s Get:43 http://ftpmaster.internal/ubuntu resolute/main armhf x11-xkb-utils armhf 7.7+9build1 [159 kB] 1018s Get:44 http://ftpmaster.internal/ubuntu resolute/main armhf xserver-common all 2:21.1.21-1ubuntu1 [34.8 kB] 1018s Get:45 http://ftpmaster.internal/ubuntu resolute/main armhf libglvnd0 armhf 1.7.0-3 [71.3 kB] 1018s Get:46 http://ftpmaster.internal/ubuntu resolute/main armhf libglx0 armhf 1.7.0-3 [37.9 kB] 1018s Get:47 http://ftpmaster.internal/ubuntu resolute/main armhf libgl1 armhf 1.7.0-3 [102 kB] 1018s Get:48 http://ftpmaster.internal/ubuntu resolute/universe armhf xvfb armhf 2:21.1.21-1ubuntu1 [744 kB] 1018s Fetched 46.2 MB in 3s (18.5 MB/s) 1019s Selecting previously unselected package dbus-x11. 1019s (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.) 1019s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu2_armhf.deb ... 1019s Unpacking dbus-x11 (1.16.2-2ubuntu2) ... 1019s Selecting previously unselected package desktop-file-utils. 1019s Preparing to unpack .../01-desktop-file-utils_0.28-1build1_armhf.deb ... 1019s Unpacking desktop-file-utils (0.28-1build1) ... 1019s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 1019s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.86.3-4_armhf.deb ... 1019s Unpacking gir1.2-glib-2.0-dev:armhf (2.86.3-4) ... 1019s Selecting previously unselected package native-architecture. 1019s Preparing to unpack .../03-native-architecture_0.2.6build1_all.deb ... 1019s Unpacking native-architecture (0.2.6build1) ... 1019s Selecting previously unselected package girepository-tools:armhf. 1019s Preparing to unpack .../04-girepository-tools_2.86.3-4_armhf.deb ... 1019s Unpacking girepository-tools:armhf (2.86.3-4) ... 1019s Selecting previously unselected package gnome-desktop-testing. 1019s Preparing to unpack .../05-gnome-desktop-testing_2021.1-5_armhf.deb ... 1019s Unpacking gnome-desktop-testing (2021.1-5) ... 1019s Selecting previously unselected package libfontenc1:armhf. 1019s Preparing to unpack .../06-libfontenc1_1%3a1.1.8-1build2_armhf.deb ... 1019s Unpacking libfontenc1:armhf (1:1.1.8-1build2) ... 1019s Selecting previously unselected package libfreetype6:armhf. 1019s Preparing to unpack .../07-libfreetype6_2.14.1+dfsg-2_armhf.deb ... 1019s Unpacking libfreetype6:armhf (2.14.1+dfsg-2) ... 1019s Selecting previously unselected package libllvm21:armhf. 1019s Preparing to unpack .../08-libllvm21_1%3a21.1.8-1ubuntu1_armhf.deb ... 1019s Unpacking libllvm21:armhf (1:21.1.8-1ubuntu1) ... 1020s Selecting previously unselected package libx11-xcb1:armhf. 1020s Preparing to unpack .../09-libx11-xcb1_2%3a1.8.12-1build1_armhf.deb ... 1020s Unpacking libx11-xcb1:armhf (2:1.8.12-1build1) ... 1020s Selecting previously unselected package libxcb-dri3-0:armhf. 1020s Preparing to unpack .../10-libxcb-dri3-0_1.17.0-2ubuntu1_armhf.deb ... 1020s Unpacking libxcb-dri3-0:armhf (1.17.0-2ubuntu1) ... 1020s Selecting previously unselected package libxcb-present0:armhf. 1020s Preparing to unpack .../11-libxcb-present0_1.17.0-2ubuntu1_armhf.deb ... 1020s Unpacking libxcb-present0:armhf (1.17.0-2ubuntu1) ... 1020s Selecting previously unselected package libxcb-randr0:armhf. 1020s Preparing to unpack .../12-libxcb-randr0_1.17.0-2ubuntu1_armhf.deb ... 1020s Unpacking libxcb-randr0:armhf (1.17.0-2ubuntu1) ... 1020s Selecting previously unselected package libxcb-sync1:armhf. 1020s Preparing to unpack .../13-libxcb-sync1_1.17.0-2ubuntu1_armhf.deb ... 1020s Unpacking libxcb-sync1:armhf (1.17.0-2ubuntu1) ... 1020s Selecting previously unselected package libxcb-xfixes0:armhf. 1020s Preparing to unpack .../14-libxcb-xfixes0_1.17.0-2ubuntu1_armhf.deb ... 1020s Unpacking libxcb-xfixes0:armhf (1.17.0-2ubuntu1) ... 1020s Selecting previously unselected package libxshmfence1:armhf. 1021s Preparing to unpack .../15-libxshmfence1_1.3.3-1build1_armhf.deb ... 1021s Unpacking libxshmfence1:armhf (1.3.3-1build1) ... 1021s Selecting previously unselected package mesa-libgallium:armhf. 1021s Preparing to unpack .../16-mesa-libgallium_25.3.3-1ubuntu1_armhf.deb ... 1021s Unpacking mesa-libgallium:armhf (25.3.3-1ubuntu1) ... 1021s Selecting previously unselected package libgbm1:armhf. 1021s Preparing to unpack .../17-libgbm1_25.3.3-1ubuntu1_armhf.deb ... 1021s Unpacking libgbm1:armhf (25.3.3-1ubuntu1) ... 1021s Selecting previously unselected package libgio-2.0-dev-bin. 1021s Preparing to unpack .../18-libgio-2.0-dev-bin_2.86.3-4_armhf.deb ... 1021s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 1021s Selecting previously unselected package libvulkan1:armhf. 1021s Preparing to unpack .../19-libvulkan1_1.4.335.0-1_armhf.deb ... 1021s Unpacking libvulkan1:armhf (1.4.335.0-1) ... 1021s Selecting previously unselected package libgl1-mesa-dri:armhf. 1021s Preparing to unpack .../20-libgl1-mesa-dri_25.3.3-1ubuntu1_armhf.deb ... 1021s Unpacking libgl1-mesa-dri:armhf (25.3.3-1ubuntu1) ... 1021s Selecting previously unselected package libglib2.0-bin. 1021s Preparing to unpack .../21-libglib2.0-bin_2.86.3-4_armhf.deb ... 1021s Unpacking libglib2.0-bin (2.86.3-4) ... 1021s Selecting previously unselected package libglib2.0-dev-bin. 1021s Preparing to unpack .../22-libglib2.0-dev-bin_2.86.3-4_armhf.deb ... 1021s Unpacking libglib2.0-dev-bin (2.86.3-4) ... 1021s Selecting previously unselected package python3-dbusmock. 1021s Preparing to unpack .../23-python3-dbusmock_0.38.1-1_all.deb ... 1021s Unpacking python3-dbusmock (0.38.1-1) ... 1021s Selecting previously unselected package tzdata-legacy. 1021s Preparing to unpack .../24-tzdata-legacy_2025c-3ubuntu3_all.deb ... 1021s Unpacking tzdata-legacy (2025c-3ubuntu3) ... 1021s Selecting previously unselected package libglib2.0-tests. 1021s Preparing to unpack .../25-libglib2.0-tests_2.86.3-4_armhf.deb ... 1021s Unpacking libglib2.0-tests (2.86.3-4) ... 1022s Selecting previously unselected package libxcb-glx0:armhf. 1022s Preparing to unpack .../26-libxcb-glx0_1.17.0-2ubuntu1_armhf.deb ... 1022s Unpacking libxcb-glx0:armhf (1.17.0-2ubuntu1) ... 1022s Selecting previously unselected package libxcb-shm0:armhf. 1022s Preparing to unpack .../27-libxcb-shm0_1.17.0-2ubuntu1_armhf.deb ... 1022s Unpacking libxcb-shm0:armhf (1.17.0-2ubuntu1) ... 1022s Selecting previously unselected package libxxf86vm1:armhf. 1022s Preparing to unpack .../28-libxxf86vm1_1%3a1.1.4-2_armhf.deb ... 1022s Unpacking libxxf86vm1:armhf (1:1.1.4-2) ... 1022s Selecting previously unselected package libglx-mesa0:armhf. 1022s Preparing to unpack .../29-libglx-mesa0_25.3.3-1ubuntu1_armhf.deb ... 1022s Unpacking libglx-mesa0:armhf (25.3.3-1ubuntu1) ... 1022s Selecting previously unselected package x11-common. 1023s Preparing to unpack .../30-x11-common_1%3a7.7+24ubuntu1_all.deb ... 1023s Unpacking x11-common (1:7.7+24ubuntu1) ... 1023s Selecting previously unselected package libice6:armhf. 1023s Preparing to unpack .../31-libice6_2%3a1.1.1-1build1_armhf.deb ... 1023s Unpacking libice6:armhf (2:1.1.1-1build1) ... 1023s Selecting previously unselected package libpixman-1-0:armhf. 1023s Preparing to unpack .../32-libpixman-1-0_0.46.4-1_armhf.deb ... 1023s Unpacking libpixman-1-0:armhf (0.46.4-1) ... 1023s Selecting previously unselected package libsm6:armhf. 1023s Preparing to unpack .../33-libsm6_2%3a1.2.6-1build1_armhf.deb ... 1023s Unpacking libsm6:armhf (2:1.2.6-1build1) ... 1023s Selecting previously unselected package libxt6t64:armhf. 1023s Preparing to unpack .../34-libxt6t64_1%3a1.2.1-1.3_armhf.deb ... 1023s Unpacking libxt6t64:armhf (1:1.2.1-1.3) ... 1023s Selecting previously unselected package libxmu6:armhf. 1023s Preparing to unpack .../35-libxmu6_2%3a1.1.3-4_armhf.deb ... 1023s Unpacking libxmu6:armhf (2:1.1.3-4) ... 1023s Selecting previously unselected package libxpm4:armhf. 1023s Preparing to unpack .../36-libxpm4_1%3a3.5.17-1build3_armhf.deb ... 1023s Unpacking libxpm4:armhf (1:3.5.17-1build3) ... 1023s Selecting previously unselected package libxaw7:armhf. 1023s Preparing to unpack .../37-libxaw7_2%3a1.0.16-1build1_armhf.deb ... 1023s Unpacking libxaw7:armhf (2:1.0.16-1build1) ... 1023s Selecting previously unselected package libxfont2:armhf. 1023s Preparing to unpack .../38-libxfont2_1%3a2.0.6-2_armhf.deb ... 1023s Unpacking libxfont2:armhf (1:2.0.6-2) ... 1023s Selecting previously unselected package libxkbfile1:armhf. 1023s Preparing to unpack .../39-libxkbfile1_1%3a1.1.0-1build5_armhf.deb ... 1023s Unpacking libxkbfile1:armhf (1:1.1.0-1build5) ... 1023s Selecting previously unselected package libxrender1:armhf. 1023s Preparing to unpack .../40-libxrender1_1%3a0.9.12-1_armhf.deb ... 1023s Unpacking libxrender1:armhf (1:0.9.12-1) ... 1023s Selecting previously unselected package libxrandr2:armhf. 1023s Preparing to unpack .../41-libxrandr2_2%3a1.5.4-1build1_armhf.deb ... 1023s Unpacking libxrandr2:armhf (2:1.5.4-1build1) ... 1023s Selecting previously unselected package x11-xkb-utils. 1023s Preparing to unpack .../42-x11-xkb-utils_7.7+9build1_armhf.deb ... 1023s Unpacking x11-xkb-utils (7.7+9build1) ... 1023s Selecting previously unselected package xserver-common. 1023s Preparing to unpack .../43-xserver-common_2%3a21.1.21-1ubuntu1_all.deb ... 1023s Unpacking xserver-common (2:21.1.21-1ubuntu1) ... 1023s Selecting previously unselected package libglvnd0:armhf. 1023s Preparing to unpack .../44-libglvnd0_1.7.0-3_armhf.deb ... 1023s Unpacking libglvnd0:armhf (1.7.0-3) ... 1023s Selecting previously unselected package libglx0:armhf. 1023s Preparing to unpack .../45-libglx0_1.7.0-3_armhf.deb ... 1023s Unpacking libglx0:armhf (1.7.0-3) ... 1023s Selecting previously unselected package libgl1:armhf. 1023s Preparing to unpack .../46-libgl1_1.7.0-3_armhf.deb ... 1023s Unpacking libgl1:armhf (1.7.0-3) ... 1023s Selecting previously unselected package xvfb. 1023s Preparing to unpack .../47-xvfb_2%3a21.1.21-1ubuntu1_armhf.deb ... 1023s Unpacking xvfb (2:21.1.21-1ubuntu1) ... 1023s Setting up gnome-desktop-testing (2021.1-5) ... 1023s Setting up libxcb-dri3-0:armhf (1.17.0-2ubuntu1) ... 1023s Setting up libpixman-1-0:armhf (0.46.4-1) ... 1023s Setting up libx11-xcb1:armhf (2:1.8.12-1build1) ... 1023s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 1023s Setting up native-architecture (0.2.6build1) ... 1023s Setting up libxcb-xfixes0:armhf (1.17.0-2ubuntu1) ... 1023s Setting up desktop-file-utils (0.28-1build1) ... 1023s Setting up libxpm4:armhf (1:3.5.17-1build3) ... 1023s Setting up libxrender1:armhf (1:0.9.12-1) ... 1023s Setting up libglvnd0:armhf (1.7.0-3) ... 1023s Setting up libxcb-glx0:armhf (1.17.0-2ubuntu1) ... 1023s Setting up x11-common (1:7.7+24ubuntu1) ... 1024s Setting up libglib2.0-bin (2.86.3-4) ... 1024s Setting up libxcb-shm0:armhf (1.17.0-2ubuntu1) ... 1024s Setting up python3-dbusmock (0.38.1-1) ... 1024s Setting up tzdata-legacy (2025c-3ubuntu3) ... 1024s Setting up libxxf86vm1:armhf (1:1.1.4-2) ... 1024s Setting up libxcb-present0:armhf (1.17.0-2ubuntu1) ... 1024s Setting up libfontenc1:armhf (1:1.1.8-1build2) ... 1024s Setting up libfreetype6:armhf (2.14.1+dfsg-2) ... 1024s Setting up libxcb-sync1:armhf (1.17.0-2ubuntu1) ... 1024s Setting up libllvm21:armhf (1:21.1.8-1ubuntu1) ... 1024s Setting up libxrandr2:armhf (2:1.5.4-1build1) ... 1024s Setting up libvulkan1:armhf (1.4.335.0-1) ... 1024s Setting up gir1.2-glib-2.0-dev:armhf (2.86.3-4) ... 1024s Setting up libxshmfence1:armhf (1.3.3-1build1) ... 1024s Setting up dbus-x11 (1.16.2-2ubuntu2) ... 1024s Setting up libxcb-randr0:armhf (1.17.0-2ubuntu1) ... 1024s Setting up libxkbfile1:armhf (1:1.1.0-1build5) ... 1024s Setting up libxfont2:armhf (1:2.0.6-2) ... 1024s Setting up libice6:armhf (2:1.1.1-1build1) ... 1024s Setting up mesa-libgallium:armhf (25.3.3-1ubuntu1) ... 1024s Setting up girepository-tools:armhf (2.86.3-4) ... 1024s Setting up libgbm1:armhf (25.3.3-1ubuntu1) ... 1024s Setting up libgl1-mesa-dri:armhf (25.3.3-1ubuntu1) ... 1024s Setting up libsm6:armhf (2:1.2.6-1build1) ... 1024s Setting up libglib2.0-dev-bin (2.86.3-4) ... 1024s Setting up libglx-mesa0:armhf (25.3.3-1ubuntu1) ... 1024s Setting up libglx0:armhf (1.7.0-3) ... 1024s Setting up libgl1:armhf (1.7.0-3) ... 1024s Setting up libxt6t64:armhf (1:1.2.1-1.3) ... 1024s Setting up libglib2.0-tests (2.86.3-4) ... 1024s Setting up libxmu6:armhf (2:1.1.3-4) ... 1024s Setting up libxaw7:armhf (2:1.0.16-1build1) ... 1024s Setting up x11-xkb-utils (7.7+9build1) ... 1024s Setting up xserver-common (2:21.1.21-1ubuntu1) ... 1024s Setting up xvfb (2:21.1.21-1ubuntu1) ... 1024s Processing triggers for man-db (2.13.1-1) ... 1024s Processing triggers for libc-bin (2.42-2ubuntu5) ... 1041s autopkgtest [10:15:01]: test installed-tests: [----------------------- 1044s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),103(lxd) 1044s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 1044s group entry: ubuntu:x:1000: 1044s Environment: 1044s ADTTMP=/tmp/autopkgtest.ow0kS0/autopkgtest_tmp 1044s ADT_ARTIFACTS=/tmp/autopkgtest.ow0kS0/installed-tests-artifacts 1044s ADT_TEST_TRIGGERS=glibc/2.42-2ubuntu5 1044s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.ow0kS0/installed-tests-artifacts 1044s AUTOPKGTEST_TESTBED_ARCH=armhf 1044s AUTOPKGTEST_TEST_ARCH=armhf 1044s AUTOPKGTEST_TMP=/tmp/autopkgtest.ow0kS0/autopkgtest_tmp 1044s DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus 1044s DEBIAN_FRONTEND=noninteractive 1044s DEB_BUILD_OPTIONS=parallel=8 1044s GIO_USE_VFS=local 1044s GIO_USE_VOLUME_MONITOR=unix 1044s HOME=/home/ubuntu 1044s LANG=C.UTF-8 1044s LOGNAME=ubuntu 1044s MAIL=/var/mail/ubuntu 1044s OLDPWD=/root 1044s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 1044s PWD=/tmp/autopkgtest.ow0kS0/build.ehs/src 1044s SHELL=/bin/bash 1044s SHLVL=1 1044s USER=ubuntu 1044s XDG_RUNTIME_DIR=/tmp/autopkgtest.ow0kS0/autopkgtest_tmp 1044s XDG_SESSION_CLASS=background 1044s XDG_SESSION_ID=c1 1044s XDG_SESSION_TYPE=unspecified 1044s http_proxy=http://squid.internal:3128 1044s https_proxy=http://squid.internal:3128 1044s 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 1044s run-with-locales: de_DE=ISO-8859-1... 1044s Character set: ISO-8859-1 1044s Source file: de_DE 1044s Output: /tmp/tmp.ouayOGQkHn/de_DE 1044s run-with-locales: de_DE.utf8... 1044s Character set: UTF-8 1044s Source file: de_DE 1044s Output: /tmp/tmp.ouayOGQkHn/de_DE.utf8 1047s run-with-locales: de_DE@euro.utf8... 1047s Character set: UTF-8 1047s Source file: de_DE@euro 1047s Output: /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8 1050s run-with-locales: el_GR.utf8... 1050s Character set: UTF-8 1050s Source file: el_GR 1050s Output: /tmp/tmp.ouayOGQkHn/el_GR.utf8 1053s run-with-locales: en_GB=ISO-8859-1... 1053s Character set: ISO-8859-1 1053s Source file: en_GB 1053s Output: /tmp/tmp.ouayOGQkHn/en_GB 1054s run-with-locales: en_GB.utf8... 1054s Character set: UTF-8 1054s Source file: en_GB 1054s Output: /tmp/tmp.ouayOGQkHn/en_GB.utf8 1056s run-with-locales: en_US=ISO-8859-1... 1056s Character set: ISO-8859-1 1056s Source file: en_US 1056s Output: /tmp/tmp.ouayOGQkHn/en_US 1057s run-with-locales: en_US.utf8... 1057s Character set: UTF-8 1057s Source file: en_US 1057s Output: /tmp/tmp.ouayOGQkHn/en_US.utf8 1060s run-with-locales: es_ES.utf8... 1060s Character set: UTF-8 1060s Source file: es_ES 1060s Output: /tmp/tmp.ouayOGQkHn/es_ES.utf8 1063s run-with-locales: fa_IR=UTF-8... 1063s Character set: UTF-8 1063s Source file: fa_IR 1063s Output: /tmp/tmp.ouayOGQkHn/fa_IR 1066s run-with-locales: fa_IR.utf8... 1066s Character set: UTF-8 1066s Source file: fa_IR 1066s Output: /tmp/tmp.ouayOGQkHn/fa_IR.utf8 1069s run-with-locales: fr_FR.utf8... 1069s Character set: UTF-8 1069s Source file: fr_FR 1069s Output: /tmp/tmp.ouayOGQkHn/fr_FR.utf8 1072s run-with-locales: hr_HR.utf8... 1072s Character set: UTF-8 1072s Source file: hr_HR 1072s Output: /tmp/tmp.ouayOGQkHn/hr_HR.utf8 1074s run-with-locales: ja_JP.utf8... 1074s Character set: UTF-8 1074s Source file: ja_JP 1074s Output: /tmp/tmp.ouayOGQkHn/ja_JP.utf8 1076s run-with-locales: ja_JP.EUC-JP... 1076s Character set: EUC-JP 1076s Source file: ja_JP 1076s Output: /tmp/tmp.ouayOGQkHn/ja_JP.eucjp 1076s run-with-locales: lt_LT.utf8... 1076s Character set: UTF-8 1076s Source file: lt_LT 1076s Output: /tmp/tmp.ouayOGQkHn/lt_LT.utf8 1079s run-with-locales: pl_PL=ISO-8859-2... 1079s Character set: ISO-8859-2 1079s Source file: pl_PL 1079s Output: /tmp/tmp.ouayOGQkHn/pl_PL 1080s run-with-locales: pl_PL.ISO-8859-2... 1080s Character set: ISO-8859-2 1080s Source file: pl_PL 1080s Output: /tmp/tmp.ouayOGQkHn/pl_PL.iso88592 1080s run-with-locales: pl_PL.utf8... 1080s Character set: UTF-8 1080s Source file: pl_PL 1080s Output: /tmp/tmp.ouayOGQkHn/pl_PL.utf8 1083s run-with-locales: ru_RU=ISO-8859-5... 1083s Character set: ISO-8859-5 1083s Source file: ru_RU 1083s Output: /tmp/tmp.ouayOGQkHn/ru_RU 1083s run-with-locales: ru_RU.utf8... 1083s Character set: UTF-8 1083s Source file: ru_RU 1083s Output: /tmp/tmp.ouayOGQkHn/ru_RU.utf8 1086s run-with-locales: sr_RS=UTF-8... 1086s Character set: UTF-8 1086s Source file: sr_RS 1086s Output: /tmp/tmp.ouayOGQkHn/sr_RS 1089s run-with-locales: sr_RS@latin=UTF-8... 1089s Character set: UTF-8 1089s Source file: sr_RS@latin 1089s Output: /tmp/tmp.ouayOGQkHn/sr_RS@latin 1091s run-with-locales: sv_SE=ISO-8859-1... 1091s Character set: ISO-8859-1 1091s Source file: sv_SE 1091s Output: /tmp/tmp.ouayOGQkHn/sv_SE 1092s run-with-locales: sv_SE.utf8... 1092s Character set: UTF-8 1092s Source file: sv_SE 1092s Output: /tmp/tmp.ouayOGQkHn/sv_SE.utf8 1095s run-with-locales: tr_TR=ISO-8859-9... 1095s Character set: ISO-8859-9 1095s Source file: tr_TR 1095s Output: /tmp/tmp.ouayOGQkHn/tr_TR 1095s run-with-locales: tr_TR.utf8... 1095s Character set: UTF-8 1095s Source file: tr_TR 1095s Output: /tmp/tmp.ouayOGQkHn/tr_TR.utf8 1098s run-with-locales: tt_RU=UTF-8... 1098s Character set: UTF-8 1098s Source file: tt_RU 1098s Output: /tmp/tmp.ouayOGQkHn/tt_RU 1101s run-with-locales: tt_RU.utf8... 1101s Character set: UTF-8 1101s Source file: tt_RU 1101s Output: /tmp/tmp.ouayOGQkHn/tt_RU.utf8 1104s run-with-locales: tt_RU@iqtelif=UTF-8... 1104s Character set: UTF-8 1104s Source file: tt_RU@iqtelif 1104s Output: /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif 1107s /tmp/tmp.ouayOGQkHn 1107s /tmp/tmp.ouayOGQkHn/de_DE 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/de_DE/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/de_DE.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/de_DE@euro.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/el_GR.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/en_GB 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/en_GB/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/en_GB.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/en_US 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/en_US/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/en_US.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/es_ES.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/fa_IR 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/fa_IR/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/fa_IR.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/fr_FR.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/hr_HR.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/ja_JP.utf8/LC_IDENTIFICAT1..332 1107s # Running test: glib/macros-c-17.test 1107s ok - glib/macros-c-17.test 1107s # Running test: glib/gdbus-address-get-session.test 1107s ok - glib/gdbus-address-get-session.test 1107s # Running test: glib/cxx-17.test 1107s ok - glib/cxx-17.test 1107s # Running test: glib/cache.test 1107s ok - glib/cache.test 1107s # Running test: glib/gdbus-exit-on-close.test 1107s ION 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/ja_JP.eucjp/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/lt_LT.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/pl_PL 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/pl_PL/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/pl_PL.iso88592/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/pl_PL.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/ru_RU 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/ru_RU/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/ru_RU.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/sr_RS 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/sr_RS/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/sr_RS@latin/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/sv_SE 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/sv_SE/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/sv_SE.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/tr_TR 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/tr_TR/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/tr_TR.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/tt_RU 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/tt_RU/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/tt_RU.utf8/LC_IDENTIFICATION 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_CTYPE 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_NUMERIC 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_TIME 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_COLLATE 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_MONETARY 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_PAPER 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_NAME 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_ADDRESS 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_TELEPHONE 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_MEASUREMENT 1107s /tmp/tmp.ouayOGQkHn/tt_RU@iqtelif/LC_IDENTIFICATION 1107s TAP version 14 1107s # random seed: R02Seab91ec0bbf5aa2553d9d2ab0fba8a4d 1107s 1..4 1107s # Start of C tests 1107s ok 1 /C/standard-17 1107s # End of C tests 1107s # Start of alignof tests 1107s ok 2 /alignof/fallback 1107s # End of alignof tests 1107s # Start of assert tests 1107s ok 3 /assert/static 1107s # End of assert tests 1107s # Start of struct tests 1107s ok 4 /struct/sizeof_member 1107s # End of struct tests 1107s TAP version 14 1107s # random seed: R02Sb09c99bc0282a69ea3d94b7f51ea15c1 1107s 1..2 1107s # Start of gdbus tests 1107s ok 1 /gdbus/x11-autolaunch 1107s ok 2 /gdbus/xdg-runtime 1107s # End of gdbus tests 1107s TAP version 14 1107s # random seed: R02S3732d5e7f15a4747916531407be3deda 1107s 1..2 1107s # Start of gtask tests 1107s # 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. 1107s ok 1 /gtask/name 1107s # Start of name tests 1107s # 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. 1107s ok 2 /gtask/name/macro-wrapper 1107s # End of name tests 1107s # End of gtask tests 1107s TAP version 14 1107s # random seed: R02Sb67dab0e30d7d82cbacbe0ca2ed4e905 1107s 1..1 1107s # Start of cache tests 1107s ok 1 /cache/basic 1107s # End of cache tests 1107s TAP version 14 1107s # random seed: R02Sedaf4c93db770a4fc3bbb23ca9829b10 1107s 1..4 1107s # Start of gdbus tests 1107s # Start of exit-on-close tests 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/default/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/default/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/default/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/default/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/default/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/default/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/default/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/default/.dirs/runtime 1107s ok 1 /gdbus/exit-on-close/default 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/true/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/true/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/true/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/true/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/true/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/true/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/true/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/true/.dirs/runtime 1107s ok 2 /gdbus/exit-on-close/true 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/false/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/false/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/false/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/false/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/false/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/false/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/false/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/false/.dirs/runtime 1107s ok 3 /gdbus/exit-on-close/false 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/we-close/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/we-close/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/we-close/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/we-close/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/we-close/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/we-close/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/we-close/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_UMK5J3/gdbus/exit-on-close/we-close/.dirs/runtime 1107s ok 4 /gdbus/exit-on-close/we-close 1107s # Start of default tests 1107s # End of default tests 1107s # Start of true tests 1107s # End of true tests 1107s # Start of false tests 1107s # End of false tests 1107s # Start of we-close tests 1107s # End of we-close tests 1107s # End of exit-on-close tests 1107s # End of gdbus tests 1107s ok - glib/gdbus-exit-on-close.test 1107s # Running test: glib/autoptr-girepository.test 1107s TAP version 14 1107s # random seed: R02Sd7eb81ecf8edeeec4d5c9011cc40d79c 1107s 1..24 1107s # Start of autoptr tests 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/repository/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/repository/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/repository/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/repository/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/repository/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/repository/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/repository/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/repository/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 1 /autoptr/repository 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/typelib/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/typelib/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/typelib/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/typelib/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/typelib/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/typelib/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/typelib/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/typelib/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 2 /autoptr/typelib 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/base-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/base-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/base-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/base-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/base-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/base-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/base-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/base-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 3 /autoptr/base-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/arg-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/arg-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/arg-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/arg-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/arg-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/arg-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/arg-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/arg-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 4 /autoptr/arg-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/callable-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/callable-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/callable-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/callable-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/callable-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/callable-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/callable-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/callable-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 5 /autoptr/callable-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/callback-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/callback-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/callback-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/callback-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/callback-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/callback-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/callback-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/callback-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 6 /autoptr/callback-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/constant-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/constant-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/constant-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/constant-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/constant-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/constant-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/constant-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/constant-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 7 /autoptr/constant-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/enum-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/enum-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/enum-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/enum-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/enum-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/enum-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/enum-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/enum-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok - glib/autoptr-girepository.test 1107s # Running test: glib/objects-refcount1.test 1107s ok 8 /autoptr/enum-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/field-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/field-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/field-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/field-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/field-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/field-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/field-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/field-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 9 /autoptr/field-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/flags-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/flags-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/flags-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/flags-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/flags-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/flags-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/flags-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/flags-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 10 /autoptr/flags-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/function-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/function-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/function-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/function-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/function-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/function-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/function-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/function-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 11 /autoptr/function-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/interface-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/interface-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/interface-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/interface-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/interface-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/interface-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/interface-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/interface-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 12 /autoptr/interface-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/object-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/object-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/object-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/object-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/object-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/object-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/object-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/object-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 13 /autoptr/object-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/property-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/property-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/property-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/property-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/property-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/property-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/property-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/property-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 14 /autoptr/property-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/registered-type-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/registered-type-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/registered-type-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/registered-type-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/registered-type-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/registered-type-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/registered-type-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/registered-type-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 15 /autoptr/registered-type-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/signal-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/signal-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/signal-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/signal-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/signal-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/signal-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/signal-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/signal-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 16 /autoptr/signal-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/struct-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/struct-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/struct-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/struct-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/struct-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/struct-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/struct-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/struct-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 17 /autoptr/struct-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/type-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/type-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/type-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/type-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/type-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/type-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/type-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/type-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 18 /autoptr/type-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/union-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/union-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/union-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/union-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/union-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/union-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/union-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/union-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 19 /autoptr/union-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/value-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/value-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/value-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/value-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/value-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/value-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/value-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/value-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 20 /autoptr/value-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/vfunc-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/vfunc-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/autoptr/vfunc-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/vfunc-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/autoptr/vfunc-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/vfunc-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/autoptr/vfunc-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/autoptr/vfunc-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 21 /autoptr/vfunc-info 1107s # End of autoptr tests 1107s # Start of auto tests 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/auto/arg-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/auto/arg-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/auto/arg-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/auto/arg-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/auto/arg-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/auto/arg-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/auto/arg-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/auto/arg-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 22 /auto/arg-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/auto/type-info/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/auto/type-info/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/auto/type-info/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/auto/type-info/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/auto/type-info/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/auto/type-info/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/auto/type-info/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/auto/type-info/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 23 /auto/type-info 1107s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_K53IK3/auto/function-invoker/.dirs/home 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_K53IK3/auto/function-invoker/.dirs/cache 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_K53IK3/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_K53IK3/auto/function-invoker/.dirs/system-config2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_K53IK3/auto/function-invoker/.dirs/config 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_K53IK3/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_K53IK3/auto/function-invoker/.dirs/system-data2 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_K53IK3/auto/function-invoker/.dirs/data 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_K53IK3/auto/function-invoker/.dirs/state 1107s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_K53IK3/auto/function-invoker/.dirs/runtime 1107s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1107s ok 24 /auto/function-invoker 1107s # End of auto tests 1107s TAP version 14 1107s # random seed: R02Scd270026141ea0515b7e7b6ab854d120 1107s 1..1 1107s # Start of gobject tests 1107s # Start of refcount tests 1107s # init 0xa6eaee8 1107s # 1107s # init 0xa6eafc8 1107s # 1112s # dispose 0xa6eaee8! 1112s # 1112s # dispose 0xa6eafc8! 1112s # 1112s ok 1 /gobject/refcount/object-basics 1112s # slow test /gobject/refcount/object-basics executed in 5.01 secs 1112s # End of refcount tests 1112s # End of gobject tests 1112s ok - glib/objects-refcount1.test 1112s # Running test: glib/power-profile-monitor-portal.test 1112s # Executing: glib/power-profile-monitor-portal.test 1113s TAP version 13 1113s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 1113s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 1113s 1..2 1113s ok - glib/power-profile-monitor-portal.test 1113s # Running test: glib/gdbus-proxy-threads.test 1113s TAP version 14 1113s # random seed: R02Sfe171dac653a80c2d9d39074de09d852 1113s 1..1 1113s # Start of gdbus tests 1113s # Start of proxy tests 1113s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_NDDPK3/gdbus/proxy/vs-threads/.dirs/home 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_NDDPK3/gdbus/proxy/vs-threads/.dirs/cache 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_NDDPK3/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_NDDPK3/gdbus/proxy/vs-threads/.dirs/system-config2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_NDDPK3/gdbus/proxy/vs-threads/.dirs/config 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_NDDPK3/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_NDDPK3/gdbus/proxy/vs-threads/.dirs/system-data2 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_NDDPK3/gdbus/proxy/vs-threads/.dirs/data 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_NDDPK3/gdbus/proxy/vs-threads/.dirs/state 1113s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_NDDPK3/gdbus/proxy/vs-threads/.dirs/runtime 1115s ok 1 /gdbus/proxy/vs-threads 1115s # slow test /gdbus/proxy/vs-threads executed in 1.76 secs 1115s # End of proxy tests 1115s # End of gdbus tests 1115s cleaning up pid 1548 1115s ok - glib/gdbus-proxy-threads.test 1115s # Running test: glib/convert.test 1115s TAP version 14 1115s # random seed: R02S0abb0041fa5e8c10876efbe401f08891 1115s 1..14 1115s # Start of conversion tests 1115s ok 1 /conversion/no-conv 1115s ok 2 /conversion/iconv-state 1115s ok 3 /conversion/illegal-sequence 1115s ok 4 /conversion/byte-order 1115s ok 5 /conversion/unicode 1115s ok 6 /conversion/filename-utf8 1115s ok 7 /conversion/filename-display 1115s ok 8 /conversion/convert-embedded-nul 1115s # Start of locale-to-utf8 tests 1115s ok 9 /conversion/locale-to-utf8/embedded-nul 1115s # Start of embedded-nul tests 1115s # Start of subprocess tests 1115s # End of subprocess tests 1115s # End of embedded-nul tests 1115s # End of locale-to-utf8 tests 1115s # Start of locale-from-utf8 tests 1115s ok 10 /conversion/locale-from-utf8/embedded-nul 1115s # Start of embedded-nul tests 1115s # Start of subprocess tests 1115s # End of subprocess tests 1115s # End of embedded-nul tests 1115s # End of locale-from-utf8 tests 1115s # Start of filename-to-utf8 tests 1115s ok - glib/convert.test 1115s # Running test: glib/srvtarget.test 1115s ok 11 /conversion/filename-to-utf8/embedded-nul 1115s # Start of embedded-nul tests 1115s # Start of subprocess tests 1115s # End of subprocess tests 1115s # End of embedded-nul tests 1115s # End of filename-to-utf8 tests 1115s # Start of filename-from-utf8 tests 1115s ok 12 /conversion/filename-from-utf8/embedded-nul 1115s # Start of embedded-nul tests 1115s # Start of subprocess tests 1115s # End of subprocess tests 1115s # End of embedded-nul tests 1115s # End of filename-from-utf8 tests 1115s # Start of filename-from-uri tests 1115s ok 13 /conversion/filename-from-uri/query-is-ignored 1115s ok 14 /conversion/filename-from-uri/fragment-is-ignored 1115s # End of filename-from-uri tests 1115s # End of conversion tests 1115s TAP version 14 1115s # random seed: R02S1af2402fd5fae60bed5f1ab763f8d8a2 1115s 1..1 1115s # Start of srvtarget tests 1115s ok - glib/srvtarget.test 1115s ok 1 /srvtarget/srv-target-ordering 1115s # slow test /srvtarget/srv-target-ordering executed in 0.57 secs 1115s # End of srvtarget tests 1115s # Running test: glib/rand.test 1115s TAP version 14 1115s # random seed: R02S6b7160493613c953802181553ead5133 1115s 1..2 1115s # Start of rand tests 1115s ok 1 /rand/test-rand 1115s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 1115s ok 2 /rand/double-range 1115s # End of rand tests 1115s ok - glib/rand.test 1115s # Running test: glib/autoptr.test 1115s TAP version 14 1115s # random seed: R02S58bea7d7463dc8af69368fd70ceda1a0 1115s 1..6 1115s # Start of autoptr tests 1115s ok 1 /autoptr/autoptr 1115s ok 2 /autoptr/autoptr_steal 1115s ok 3 /autoptr/autolist 1115s ok 4 /autoptr/autoslist 1115s ok 5 /autoptr/autoqueue 1115s ok 6 /autoptr/autoclass 1115s # End of autoptr tests 1115s ok - glib/autoptr.test 1115s # Running test: glib/gdbus-connection.test 1115s TAP version 14 1115s # random seed: R02Sa1d91bf7d553a7037e8d24483f4644d7 1115s 1..9 1115s # Start of gdbus tests 1115s # Start of connection tests 1115s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/bus-failure/.dirs/home 1115s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/bus-failure/.dirs/cache 1115s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/bus-failure/.dirs/system-config2 1115s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/bus-failure/.dirs/config 1115s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/bus-failure/.dirs/system-data2 1115s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/bus-failure/.dirs/data 1115s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/bus-failure/.dirs/state 1115s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/bus-failure/.dirs/runtime 1115s ok 1 /gdbus/connection/bus-failure 1115s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/basic/.dirs/home 1115s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/basic/.dirs/cache 1115s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/basic/.dirs/system-config2 1115s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/basic/.dirs/config 1115s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/basic/.dirs/system-data2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/basic/.dirs/data 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/basic/.dirs/state 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/basic/.dirs/runtime 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s ok 2 /gdbus/connection/basic 1116s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/life-cycle/.dirs/home 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/life-cycle/.dirs/cache 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/life-cycle/.dirs/system-config2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/life-cycle/.dirs/config 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/life-cycle/.dirs/system-data2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/life-cycle/.dirs/data 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/life-cycle/.dirs/state 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/life-cycle/.dirs/runtime 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s ok 3 /gdbus/connection/life-cycle 1116s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/send/.dirs/home 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/send/.dirs/cache 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/send/.dirs/system-config2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/send/.dirs/config 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/send/.dirs/system-data2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/send/.dirs/data 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/send/.dirs/state 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/send/.dirs/runtime 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s ok 4 /gdbus/connection/send 1116s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signals/.dirs/home 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signals/.dirs/cache 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signals/.dirs/system-config2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signals/.dirs/config 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signals/.dirs/system-data2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signals/.dirs/data 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signals/.dirs/state 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signals/.dirs/runtime 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s ok 5 /gdbus/connection/signals 1116s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signal-match-rules/.dirs/home 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signal-match-rules/.dirs/cache 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signal-match-rules/.dirs/system-config2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signal-match-rules/.dirs/config 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signal-match-rules/.dirs/system-data2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signal-match-rules/.dirs/data 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signal-match-rules/.dirs/state 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/signal-match-rules/.dirs/runtime 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s ok 6 /gdbus/connection/signal-match-rules 1116s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/filter/.dirs/home 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/filter/.dirs/cache 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/filter/.dirs/system-config2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/filter/.dirs/config 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/filter/.dirs/system-data2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/filter/.dirs/data 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/filter/.dirs/state 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/filter/.dirs/runtime 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s ok 7 /gdbus/connection/filter 1116s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/serials/.dirs/home 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/serials/.dirs/cache 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/serials/.dirs/system-config2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/serials/.dirs/config 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/serials/.dirs/system-data2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/serials/.dirs/data 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/serials/.dirs/state 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/serials/.dirs/runtime 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s ok 8 /gdbus/connection/serials 1116s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/cancel/.dirs/home 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/cancel/.dirs/cache 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/cancel/.dirs/system-config2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/cancel/.dirs/config 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_YWOEK3/gdbus/connection/cancel/.dirs/system-data2 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/cancel/.dirs/data 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/cancel/.dirs/state 1116s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_YWOEK3/gdbus/connection/cancel/.dirs/runtime 1116s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s ok - glib/gdbus-connection.test 1116s ok 9 /gdbus/connection/cancel 1116s # End of connection tests 1116s # End of gdbus tests 1116s # Running test: glib/debugcontroller.test 1116s TAP version 14 1116s # random seed: R02Sa2737e07132f0ef80084167ff757421a 1116s 1..3 1116s # Start of debug-controller tests 1116s # Start of dbus tests 1116s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1116s # GLib-GIO-DEBUG: Debug output enabled 1116s # GLib-GIO-DEBUG: Debug output disabled 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s ok 1 /debug-controller/dbus/basic 1116s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1116s ok - glib/debugcontroller.test 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1116s ok 2 /debug-controller/dbus/duplicate 1116s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1116s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 1116s # End of dbus tests 1116s # End of debug-controller tests 1116s # Running test: glib/sequence.test 1116s TAP version 14 1116s # random seed: R02Sd628f94f58551cfbc0e192a9451f5215 1116s 1..16 1116s # Start of sequence tests 1116s ok 1 /sequence/out-of-range-jump 1116s ok 2 /sequence/iter-move 1116s ok 3 /sequence/insert-sorted-non-pointer 1116s ok 4 /sequence/stable-sort 1116s ok 5 /sequence/is_empty 1116s # Start of random tests 1116s ok 6 /sequence/random/seed:825541564 1116s # slow test /sequence/random/seed:825541564 executed in 0.62 secs 1117s ok 7 /sequence/random/seed:801678400 1117s # slow test /sequence/random/seed:801678400 executed in 0.58 secs 1117s # Executing: glib/sequence.test 1118s ok 8 /sequence/random/seed:1477639090 1118s # slow test /sequence/random/seed:1477639090 executed in 0.62 secs 1118s ok 9 /sequence/random/seed:3369132895 1118s # slow test /sequence/random/seed:3369132895 executed in 0.56 secs 1119s ok 10 /sequence/random/seed:1192944867 1119s # slow test /sequence/random/seed:1192944867 executed in 0.60 secs 1119s ok 11 /sequence/random/seed:770458294 1119s # slow test /sequence/random/seed:770458294 executed in 0.61 secs 1120s ok 12 /sequence/random/seed:1099575817 1120s # slow test /sequence/random/seed:1099575817 executed in 0.60 secs 1121s ok 13 /sequence/random/seed:590523467 1121s # slow test /sequence/random/seed:590523467 executed in 0.61 secs 1121s ok 14 /sequence/random/seed:3583571454 1121s # slow test /sequence/random/seed:3583571454 executed in 0.62 secs 1122s ok 15 /sequence/random/seed:579241222 1122s # slow test /sequence/random/seed:579241222 executed in 0.61 secs 1122s # Executing: glib/sequence.test 1122s ok - glib/sequence.test 1122s ok 16 /sequence/random/seed:1530137714 1122s # slow test /sequence/random/seed:1530137714 executed in 0.60 secs 1122s # End of random tests 1122s # End of sequence tests 1122s # Running test: glib/rcbox.test 1122s TAP version 14 1122s # random seed: R02S5a7eaacea5c4c0207f930f351eebb4c9 1122s 1..8 1122s # Start of rcbox tests 1122s ok 1 /rcbox/new 1122s # global_point = 0x8b34fa8 1122s ok 2 /rcbox/release-full 1122s # global_point_a = 0x8b34fa8 1122s # global_point_b = 0x8b35050 1122s ok 3 /rcbox/dup 1122s ok 4 /rcbox/alignment 1122s # End of rcbox tests 1122s # Start of atomic-rcbox tests 1122s ok 5 /atomic-rcbox/new 1122s # global_point = 0x8b35050 1122s ok 6 /atomic-rcbox/release-full 1122s # global_point_a = 0x8b35050 1122s # global_point_b = 0x8b34fa8 1122s ok 7 /atomic-rcbox/dup 1122s ok 8 /atomic-rcbox/alignment 1122s # End of atomic-rcbox tests 1122s ok - glib/rcbox.test 1122s # Running test: glib/repository-search-paths.test 1122s TAP version 14 1122s # random seed: R02Sb8ec31f57bd8ac8d955a01046f2e1121 1122s 1..4 1122s # Start of repository tests 1122s # Start of search-paths tests 1122s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/default/.dirs/home 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/default/.dirs/cache 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_J5KIK3/repository/search-paths/default/.dirs/system-config2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/default/.dirs/config 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_J5KIK3/repository/search-paths/default/.dirs/system-data2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/default/.dirs/data 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/default/.dirs/state 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/default/.dirs/runtime 1122s ok 1 /repository/search-paths/default 1122s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/prepend/.dirs/home 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/prepend/.dirs/cache 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_J5KIK3/repository/search-paths/prepend/.dirs/system-config2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/prepend/.dirs/config 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_J5KIK3/repository/search-paths/prepend/.dirs/system-data2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/prepend/.dirs/data 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/prepend/.dirs/state 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_J5KIK3/repository/search-paths/prepend/.dirs/runtime 1122s ok 2 /repository/search-paths/prepend 1122s # End of search-paths tests 1122s # Start of library-paths tests 1122s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/default/.dirs/home 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/default/.dirs/cache 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_J5KIK3/repository/library-paths/default/.dirs/system-config2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/default/.dirs/config 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_J5KIK3/repository/library-paths/default/.dirs/system-data2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/default/.dirs/data 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/default/.dirs/state 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/default/.dirs/runtime 1122s ok 3 /repository/library-paths/default 1122s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/prepend/.dirs/home 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/prepend/.dirs/cache 1122s ok - glib/repository-search-paths.test 1122s # Running test: glib/network-address.test 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_J5KIK3/repository/library-paths/prepend/.dirs/system-config2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/prepend/.dirs/config 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_J5KIK3/repository/library-paths/prepend/.dirs/system-data2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/prepend/.dirs/data 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/prepend/.dirs/state 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_J5KIK3/repository/library-paths/prepend/.dirs/runtime 1122s ok 4 /repository/library-paths/prepend 1122s # End of library-paths tests 1122s # End of repository tests 1122s TAP version 14 1122s # random seed: R02Sfae0b3f6e309c6b2f0a321a4ceb47681 1122s 1..72 1122s # Start of network-address tests 1122s ok 1 /network-address/basic 1122s ok 2 /network-address/scope-id 1122s ok 3 /network-address/uri-scope-id 1122s ok 4 /network-address/to-string 1122s # Start of parse-host tests 1122s ok 5 /network-address/parse-host/0 1122s ok 6 /network-address/parse-host/1 1122s ok 7 /network-address/parse-host/2 1122s ok 8 /network-address/parse-host/3 1122s ok 9 /network-address/parse-host/4 1122s ok 10 /network-address/parse-host/5 1122s ok 11 /network-address/parse-host/6 1122s ok 12 /network-address/parse-host/7 1122s ok 13 /network-address/parse-host/8 1122s ok 14 /network-address/parse-host/9 1122s ok 15 /network-address/parse-host/10 1122s ok 16 /network-address/parse-host/11 1122s ok 17 /network-address/parse-host/12 1122s ok 18 /network-address/parse-host/13 1122s # End of parse-host tests 1122s # Start of parse-uri tests 1122s ok 19 /network-address/parse-uri/0 1122s ok 20 /network-address/parse-uri/1 1122s ok 21 /network-address/parse-uri/2 1122s ok 22 /network-address/parse-uri/3 1122s ok 23 /network-address/parse-uri/4 1122s ok 24 /network-address/parse-uri/5 1122s ok 25 /network-address/parse-uri/6 1122s ok 26 /network-address/parse-uri/7 1122s ok 27 /network-address/parse-uri/8 1122s ok 28 /network-address/parse-uri/9 1122s # End of parse-uri tests 1122s # Start of resolve-address tests 1122s # Input: 192.168.1.2 1122s ok 29 /network-address/resolve-address/0 1122s # Input: fe80::42 1122s ok 30 /network-address/resolve-address/1 1122s # Input: 192.168.1.2:80 1122s ok 31 /network-address/resolve-address/2 1122s # Input: [fe80::42] 1122s ok 32 /network-address/resolve-address/3 1122s # Input: [fe80::42]:80 1122s ok 33 /network-address/resolve-address/4 1122s # Input: 192.168.258 1122s ok 34 /network-address/resolve-address/5 1122s # Input: 192.11010306 1122s ok 35 /network-address/resolve-address/6 1122s # Input: 3232235778 1122s ok 36 /network-address/resolve-address/7 1122s # Input: 0300.0250.0001.0001 1122s ok 37 /network-address/resolve-address/8 1122s # Input: 0xC0.0xA8.0x01.0x02 1122s ok 38 /network-address/resolve-address/9 1122s # Input: 0xc0.0xa8.0x01.0x02 1122s ok 39 /network-address/resolve-address/10 1122s # Input: 0xc0a80102 1122s ok 40 /network-address/resolve-address/11 1122s # End of resolve-address tests 1122s # Start of loopback tests 1122s ok 41 /network-address/loopback/basic 1122s ok 42 /network-address/loopback/sync 1122s ok 43 /network-address/loopback/async 1122s # End of loopback tests 1122s # Start of localhost tests 1122s ok 44 /network-address/localhost/async 1122s ok 45 /network-address/localhost/sync 1122s # End of localhost tests 1122s # Start of happy-eyeballs tests 1123s ok 46 /network-address/happy-eyeballs/basic 1123s ok 47 /network-address/happy-eyeballs/parallel 1123s ok 48 /network-address/happy-eyeballs/slow-ipv4 1123s ok 49 /network-address/happy-eyeballs/slow-ipv6 1123s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 1124s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 1124s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.80 secs 1124s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1124s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 1124s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1124s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 1124s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 1124s # /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. 1124s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1124s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 1124s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1124s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 1124s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1124s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 1124s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1124s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1124s ok 57 /network-address/happy-eyeballs/both-error 1124s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1124s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1124s ok 58 /network-address/happy-eyeballs/both-error-delays-1 1124s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1124s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1124s ok 59 /network-address/happy-eyeballs/both-error-delays-2 1124s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1124s ok 60 /network-address/happy-eyeballs/both-error-delays-3 1124s # End of happy-eyeballs tests 1124s # End of network-address tests 1124s # Start of gresolver tests 1124s # Start of resolve-address tests 1124s # Input: 192.168.1.2 1124s ok 61 /gresolver/resolve-address/0 1124s # Input: fe80::42 1124s ok 62 /gresolver/resolve-address/1 1124s # Input: 192.168.1.2:80 1124s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 192.168.1.2:80 1124s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1124s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1124s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 1124s # Error: Error resolving “192.168.1.2:80”: Name or service not known 1124s ok 63 /gresolver/resolve-address/2 1124s # Input: [fe80::42] 1124s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42] 1124s # Error: Error resolving “[fe80::42]”: Name or service not known 1124s ok 64 /gresolver/resolve-address/3 1124s # Input: [fe80::42]:80 1124s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42]:80 1124s # Error: Error resolving “[fe80::42]:80”: Name or service not known 1124s ok 65 /gresolver/resolve-address/4 1124s # Input: 192.168.258 1124s # Error: Error resolving “192.168.258”: Name or service not known 1124s ok 66 /gresolver/resolve-address/5 1124s # Input: 192.11010306 1124s # Error: Error resolving “192.11010306”: Name or service not known 1124s ok 67 /gresolver/resolve-address/6 1124s # Input: 3232235778 1124s # Error: Error resolving “3232235778”: Name or service not known 1124s ok 68 /gresolver/resolve-address/7 1124s # Input: 0300.0250.0001.0001 1124s # Error: Error resolving “0300.0250.0001.0001”: Name or service not known 1124s ok 69 /gresolver/resolve-address/8 1124s ok - glib/network-address.test 1124s # Running test: glib/utils-isolated.test 1124s # Input: 0xC0.0xA8.0x01.0x02 1124s # Error: Error resolving “0xC0.0xA8.0x01.0x02”: Name or service not known 1124s ok 70 /gresolver/resolve-address/9 1124s # Input: 0xc0.0xa8.0x01.0x02 1124s # Error: Error resolving “0xc0.0xa8.0x01.0x02”: Name or service not known 1124s ok 71 /gresolver/resolve-address/10 1124s # Input: 0xc0a80102 1124s # Error: Error resolving “0xc0a80102”: Name or service not known 1124s ok 72 /gresolver/resolve-address/11 1124s # End of resolve-address tests 1124s # End of gresolver tests 1124s TAP version 14 1124s # random seed: R02Sf58d86aff95141deeb9bcfb144da902a 1124s 1..11 1124s # Start of utils-isolated tests 1124s ok - glib/utils-isolated.test 1124s # Running test: glib/reference.test 1124s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/tmp-dir/.dirs/home 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/tmp-dir/.dirs/cache 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_TP73J3/utils-isolated/tmp-dir/.dirs/system-config2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/tmp-dir/.dirs/config 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_TP73J3/utils-isolated/tmp-dir/.dirs/system-data2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/tmp-dir/.dirs/data 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/tmp-dir/.dirs/state 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_TP73J3/utils-isolated/tmp-dir/.dirs/runtime 1124s ok 1 /utils-isolated/tmp-dir 1124s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/home-dir/.dirs/home 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/home-dir/.dirs/cache 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_TP73J3/utils-isolated/home-dir/.dirs/system-config2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/home-dir/.dirs/config 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_TP73J3/utils-isolated/home-dir/.dirs/system-data2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/home-dir/.dirs/data 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/home-dir/.dirs/state 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_TP73J3/utils-isolated/home-dir/.dirs/runtime 1124s ok 2 /utils-isolated/home-dir 1124s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-cache-dir/.dirs/home 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-cache-dir/.dirs/cache 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_TP73J3/utils-isolated/user-cache-dir/.dirs/system-config2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-cache-dir/.dirs/config 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_TP73J3/utils-isolated/user-cache-dir/.dirs/system-data2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-cache-dir/.dirs/data 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-cache-dir/.dirs/state 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-cache-dir/.dirs/runtime 1124s ok 3 /utils-isolated/user-cache-dir 1124s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-config-dirs/.dirs/home 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-config-dirs/.dirs/cache 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_TP73J3/utils-isolated/system-config-dirs/.dirs/system-config2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-config-dirs/.dirs/config 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_TP73J3/utils-isolated/system-config-dirs/.dirs/system-data2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-config-dirs/.dirs/data 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-config-dirs/.dirs/state 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-config-dirs/.dirs/runtime 1124s ok 4 /utils-isolated/system-config-dirs 1124s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-config-dir/.dirs/home 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-config-dir/.dirs/cache 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_TP73J3/utils-isolated/user-config-dir/.dirs/system-config2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-config-dir/.dirs/config 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_TP73J3/utils-isolated/user-config-dir/.dirs/system-data2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-config-dir/.dirs/data 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-config-dir/.dirs/state 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-config-dir/.dirs/runtime 1124s ok 5 /utils-isolated/user-config-dir 1124s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-data-dirs/.dirs/home 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-data-dirs/.dirs/cache 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_TP73J3/utils-isolated/system-data-dirs/.dirs/system-config2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-data-dirs/.dirs/config 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_TP73J3/utils-isolated/system-data-dirs/.dirs/system-data2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-data-dirs/.dirs/data 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-data-dirs/.dirs/state 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_TP73J3/utils-isolated/system-data-dirs/.dirs/runtime 1124s ok 6 /utils-isolated/system-data-dirs 1124s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-data-dir/.dirs/home 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-data-dir/.dirs/cache 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_TP73J3/utils-isolated/user-data-dir/.dirs/system-config2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-data-dir/.dirs/config 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_TP73J3/utils-isolated/user-data-dir/.dirs/system-data2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-data-dir/.dirs/data 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-data-dir/.dirs/state 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-data-dir/.dirs/runtime 1124s ok 7 /utils-isolated/user-data-dir 1124s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-state-dir/.dirs/home 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-state-dir/.dirs/cache 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_TP73J3/utils-isolated/user-state-dir/.dirs/system-config2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-state-dir/.dirs/config 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_TP73J3/utils-isolated/user-state-dir/.dirs/system-data2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-state-dir/.dirs/data 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-state-dir/.dirs/state 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-state-dir/.dirs/runtime 1124s ok 8 /utils-isolated/user-state-dir 1124s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-runtime-dir/.dirs/home 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-runtime-dir/.dirs/cache 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_TP73J3/utils-isolated/user-runtime-dir/.dirs/system-config2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-runtime-dir/.dirs/config 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_TP73J3/utils-isolated/user-runtime-dir/.dirs/system-data2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-runtime-dir/.dirs/data 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-runtime-dir/.dirs/state 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_TP73J3/utils-isolated/user-runtime-dir/.dirs/runtime 1124s ok 9 /utils-isolated/user-runtime-dir 1124s # Start of cleanup tests 1124s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors/.dirs/home 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors/.dirs/cache 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors/.dirs/system-config2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors/.dirs/config 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors/.dirs/system-data2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors/.dirs/data 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors/.dirs/state 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors/.dirs/runtime 1124s Unable to clean up temporary directory /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 1124s Unable to clean up temporary directory /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 1124s Unable to clean up temporary directory /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/handles-errors: Directory not empty 1124s ok 10 /utils-isolated/cleanup/handles-errors 1124s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 1124s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 1124s Unable to clean up temporary directory /tmp/test_utils-isolated_TP73J3/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 1124s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 1124s # End of cleanup tests 1124s # End of utils-isolated tests 1124s TAP version 14 1124s # random seed: R02Sc91dc279c2614a9993c3f3cd795376f9 1124s 1..29 1124s # Start of type tests 1124s ok 1 /type/fundamentals 1124s ok 2 /type/qdata 1124s ok 3 /type/query 1124s ok 4 /type/class-private 1124s # End of type tests 1124s # Start of object tests 1124s ok 5 /object/clear 1124s ok 6 /object/clear-function 1124s ok 7 /object/set 1124s ok 8 /object/set-function 1124s ok 9 /object/value 1124s ok 10 /object/initially-unowned 1124s ok 11 /object/weak-pointer 1124s ok 12 /object/weak-ref 1124s ok 13 /object/toggle-ref 1124s ok 14 /object/qdata 1124s ok 15 /object/qdata2 1124s # Start of set tests 1124s # /object/set/derived-type summary: Check that g_set_object() doesn’t give strict aliasing warnings when used on types derived from GObject 1124s ok 16 /object/set/derived-type 1124s # End of set tests 1124s # Start of weak-pointer tests 1124s ok 17 /object/weak-pointer/clear 1124s ok 18 /object/weak-pointer/clear-function 1124s ok 19 /object/weak-pointer/set 1124s ok 20 /object/weak-pointer/set-function 1124s # End of weak-pointer tests 1124s # Start of weak-ref tests 1124s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1124s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 1124s ok 21 /object/weak-ref/on-dispose 1124s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 1124s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 1124s ok 22 /object/weak-ref/on-run-dispose 1124s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1124s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 1124s ok 23 /object/weak-ref/on-toggle-notify 1124s ok 24 /object/weak-ref/in-toggle-notify 1124s ok 25 /object/weak-ref/many 1124s # Start of concurrent tests 1124s ok 26 /object/weak-ref/concurrent/0 1124s ok - glib/reference.test 1124s ok 27 /object/weak-ref/concurrent/1 1124s # End of concurrent tests 1124s # End of weak-ref tests 1124s # Start of toggle-ref tests 1124s ok 28 /object/toggle-ref/ref-on-dispose 1124s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 1124s # End of toggle-ref tests 1124s # End of object tests 1124s # Running test: glib/onceinit.test 1124s TAP version 14 1124s # random seed: R02Se452ac428d3fe19c06664ec95b565b6c 1124s 1..1 1124s # Start of thread tests 1124s ok 1 /thread/onceinit 1124s # End of thread tests 1124s ok - glib/onceinit.test 1124s # Running test: glib/objects-refcount2.test 1124s TAP version 14 1124s # random seed: R02S0db31c3bda7ebfbaa4bf364c5f7f885d 1124s 1..1 1124s # Start of gobject tests 1124s # Start of refcount tests 1124s # init 0xdb78ee8 1124s # 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1124s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1125s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1126s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # Executing: glib/objects-refcount2.test 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1127s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1128s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1129s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1130s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1131s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # Executing: glib/objects-refcount2.test 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1132s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1133s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1134s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1135s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1136s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # . 1137s # dispose 0xdb78ee8! 1137s # 1137s ok 1 /gobject/refcount/object-advanced 1137s # slow test /gobject/refcount/object-advanced executed in 12.39 secs 1137s # End of refcount tests 1137s # End of gobject tests 1137s ok - glib/objects-refcount2.test 1137s # Running test: glib/enums.test 1137s TAP version 14 1137s # random seed: R02S56c87bf73f8aa2d75cdbed695efd7502 1137s 1..4 1137s # Start of enum tests 1137s ok 1 /enum/basic 1137s ok 2 /enum/define-type 1137s # End of enum tests 1137s # Start of flags tests 1137s ok 3 /flags/basic 1137s ok 4 /flags/define-type 1137s # End of flags tests 1137s ok - glib/enums.test 1137s # Running test: glib/resources.test 1137s TAP version 14 1137s # random seed: R02Sadd395cc4b7db3f4a95aa809ca50d426 1137s 1..19 1137s # Start of resource tests 1137s ok 1 /resource/file 1137s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1137s ok 2 /resource/file-path 1137s ok 3 /resource/data 1137s ok 4 /resource/data_unaligned 1137s ok 5 /resource/data-corrupt 1137s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 1137s ok 6 /resource/data-corrupt-compression 1137s ok 7 /resource/data-empty 1137s ok 8 /resource/registered 1137s ok 9 /resource/manual 1137s ok 10 /resource/manual2 1137s ok 11 /resource/automatic 1137s ok 12 /resource/module 1137s ok 13 /resource/binary-linked 1137s ok 14 /resource/64k 1137s GLib-GIO-Message: 10:16:37.081: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 1137s GLib-GIO-Message: 10:16:37.082: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1137s GLib-GIO-Message: 10:16:37.082: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1137s ok 15 /resource/overlay 1137s ok 16 /resource/digits 1137s ok 17 /resource/has-children 1137s # Start of uri tests 1137s ok 18 /resource/uri/query-info 1137s ok 19 /resource/uri/file 1137s # End of uri tests 1137s # End of resource tests 1137s ok - glib/resources.test 1137s # Running test: glib/unicode.test 1137s TAP version 14 1137s # random seed: R02S05f2c89d6db0b107c5a0d9aa3ee7df5d 1137s 1..39 1137s # Start of unicode tests 1137s ok 1 /unicode/alnum 1137s ok 2 /unicode/alpha 1137s ok 3 /unicode/break-type 1137s ok 4 /unicode/canonical-decomposition 1137s ok 5 /unicode/casefold 1137s # Cannot set locale to lt_LT, skipping 1137s # Cannot set locale to lt_LT, skipping 1137s # Cannot set locale to lt_LT, skipping 1137s # Cannot set locale to lt_LT, skipping 1137s # Cannot set locale to lt_LT, skipping 1137s # Cannot set locale to lt_LT, skipping 1137s # Cannot set locale to lt_LT, skipping 1137s # Cannot set locale to lt_LT, skipping 1137s # Cannot set locale to lt_LT, skipping 1137s # Cannot set locale to lt_LT, skipping 1137s # Cannot set locale to lt_LT, skipping 1137s ok 6 /unicode/casemap_and_casefold 1137s ok 7 /unicode/cases 1137s ok 8 /unicode/character-type 1137s ok 9 /unicode/cntrl 1137s ok 10 /unicode/combining-class 1137s # Composing U+000041 and U+000042; expecting U+000000 1137s # Composing U+000041 and U+000000; expecting U+000000 1137s # Composing U+000066 and U+000069; expecting U+000000 1137s # Composing U+000308 and U+000301; expecting U+000000 1137s # Composing U+000f71 and U+000f72; expecting U+000000 1137s # Composing U+00212b and U+000000; expecting U+000000 1137s # Composing U+0000c5 and U+000000; expecting U+000000 1137s # Composing U+002126 and U+000000; expecting U+000000 1137s # Composing U+0003a9 and U+000000; expecting U+000000 1137s # Composing U+000041 and U+00030a; expecting U+0000c5 1137s # Composing U+00006f and U+000302; expecting U+0000f4 1137s # Composing U+001e63 and U+000307; expecting U+001e69 1137s # Composing U+000073 and U+000323; expecting U+001e63 1137s # Composing U+000064 and U+000307; expecting U+001e0b 1137s # Composing U+000064 and U+000323; expecting U+001e0d 1137s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 1137s # Composing U+001111 and U+001171; expecting U+00d4cc 1137s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 1137s # Composing U+00110e and U+001173; expecting U+00ce20 1137s # Composing U+001100 and U+001160; expecting U+000000 1137s # Composing U+001100 and U+001177; expecting U+000000 1137s # Composing U+00abff and U+0011b6; expecting U+000000 1137s # Composing U+00d7a5 and U+0011b6; expecting U+000000 1137s # Composing U+00ac01 and U+0011b6; expecting U+000000 1137s # Composing U+00d4cc and U+0011a6; expecting U+000000 1137s # Composing U+00d4cc and U+0011c4; expecting U+000000 1137s # Composing U+01611e and U+01611e; expecting U+016121 1137s # Composing U+01611e and U+01611f; expecting U+016123 1137s # Composing U+0000f6 and U+000304; expecting U+00022b 1137s # Composing U+000b47 and U+000b57; expecting U+000b4c 1137s # Composing U+0000a0 and U+000b57; expecting U+000000 1137s # Composing U+016e00 and U+00030a; expecting U+000000 1137s # Composing U+00212b and U+016e00; expecting U+000000 1137s # Composing U+001e63 and U+000306; expecting U+000000 1137s # Composing U+001e63 and U+000304; expecting U+000000 1137s # Composing U+001e63 and U+000b57; expecting U+000000 1137s # Composing U+001e63 and U+000000; expecting U+000000 1137s # Composing U+001e63 and U+0113c2; expecting U+000000 1137s # Composing U+001f01 and U+0113c2; expecting U+000000 1137s # Composing U+00006e and U+000302; expecting U+000000 1137s # Composing U+001e63 and U+01611f; expecting U+000000 1137s # Composing U+01138e and U+0113b8; expecting U+000000 1137s # Composing U+01611e and U+000000; expecting U+000000 1137s # Composing U+000000 and U+01611f; expecting U+000000 1137s # Composing U+011390 and U+0113c2; expecting U+000000 1137s ok 11 /unicode/compose 1137s ok 12 /unicode/decompose 1137s ok 13 /unicode/decompose-tail 1137s ok 14 /unicode/defined 1137s ok 15 /unicode/digit 1137s ok 16 /unicode/digit-value 1137s # Fully decomposing U+000041; expecting 1 codepoints 1137s # Fully decomposing U+00fb01; expecting 1 codepoints 1137s # Fully decomposing U+00212b; expecting 2 codepoints 1137s # Fully decomposing U+002126; expecting 1 codepoints 1137s # Fully decomposing U+000344; expecting 2 codepoints 1137s # Fully decomposing U+000f73; expecting 2 codepoints 1137s # Fully decomposing U+0000c5; expecting 2 codepoints 1137s # Fully decomposing U+0000f4; expecting 2 codepoints 1137s # Fully decomposing U+001e69; expecting 3 codepoints 1137s # Fully decomposing U+001e63; expecting 2 codepoints 1137s # Fully decomposing U+001e0b; expecting 2 codepoints 1137s # Fully decomposing U+001e0d; expecting 2 codepoints 1137s # Fully decomposing U+00d4db; expecting 3 codepoints 1137s # Fully decomposing U+00d4cc; expecting 2 codepoints 1137s # Fully decomposing U+00ce31; expecting 3 codepoints 1137s # Fully decomposing U+00ce20; expecting 2 codepoints 1137s ok 17 /unicode/fully-decompose-canonical 1137s ok 18 /unicode/fully-decompose-len 1137s ok 19 /unicode/normalization 1137s ok 20 /unicode/graph 1137s # Testing script Zyyy (code 1517910393) 1137s # Testing script Zinh (code 1516858984) 1137s # Testing script Zmth (code 1517122664) 1137s # Testing script Arab (code 1098015074) 1137s # Testing script Armn (code 1098018158) 1137s # Testing script Beng (code 1113943655) 1137s # Testing script Bopo (code 1114599535) 1137s # Testing script Cher (code 1130915186) 1137s # Testing script Copt (code 1131376756) 1137s # Testing script Cyrl (code 1132032620) 1137s # Testing script Dsrt (code 1148416628) 1137s # Testing script Deva (code 1147500129) 1137s # Testing script Ethi (code 1165256809) 1137s # Testing script Geor (code 1197830002) 1137s # Testing script Goth (code 1198486632) 1137s # Testing script Grek (code 1198679403) 1137s # Testing script Gujr (code 1198877298) 1137s # Testing script Guru (code 1198879349) 1137s # Testing script Hani (code 1214344809) 1137s # Testing script Hang (code 1214344807) 1137s # Testing script Hebr (code 1214603890) 1137s # Testing script Hira (code 1214870113) 1137s # Testing script Knda (code 1265525857) 1137s # Testing script Kana (code 1264676449) 1137s # Testing script Khmr (code 1265134962) 1137s # Testing script Laoo (code 1281453935) 1137s # Testing script Latn (code 1281455214) 1137s # Testing script Mlym (code 1298954605) 1137s # Testing script Mong (code 1299148391) 1137s # Testing script Mymr (code 1299803506) 1137s # Testing script Ogam (code 1332175213) 1137s # Testing script Ital (code 1232363884) 1137s # Testing script Orya (code 1332902241) 1137s # Testing script Runr (code 1383427698) 1137s # Testing script Sinh (code 1399418472) 1137s # Testing script Syrc (code 1400468067) 1137s # Testing script Taml (code 1415671148) 1137s # Testing script Telu (code 1415933045) 1137s # Testing script Thaa (code 1416126817) 1137s # Testing script Thai (code 1416126825) 1137s # Testing script Tibt (code 1416192628) 1137s # Testing script Cans (code 1130458739) 1137s # Testing script Yiii (code 1500080489) 1137s # Testing script Tglg (code 1416064103) 1137s # Testing script Hano (code 1214344815) 1137s # Testing script Buhd (code 1114990692) 1137s # Testing script Tagb (code 1415669602) 1137s # Testing script Brai (code 1114792297) 1137s # Testing script Cprt (code 1131442804) 1137s # Testing script Limb (code 1281977698) 1137s # Testing script Osma (code 1332964705) 1137s # Testing script Shaw (code 1399349623) 1137s # Testing script Linb (code 1281977954) 1137s # Testing script Tale (code 1415670885) 1137s # Testing script Ugar (code 1432838514) 1137s # Testing script Talu (code 1415670901) 1137s # Testing script Bugi (code 1114990441) 1137s # Testing script Glag (code 1198285159) 1137s # Testing script Tfng (code 1415999079) 1137s # Testing script Sylo (code 1400466543) 1137s # Testing script Xpeo (code 1483761007) 1137s # Testing script Khar (code 1265131890) 1137s # Testing script Zzzz (code 1517976186) 1137s # Testing script Bali (code 1113681001) 1137s # Testing script Xsux (code 1483961720) 1137s # Testing script Phnx (code 1349021304) 1137s # Testing script Phag (code 1349017959) 1137s # Testing script Nkoo (code 1315663727) 1137s # Testing script Kali (code 1264675945) 1137s # Testing script Lepc (code 1281716323) 1137s # Testing script Rjng (code 1382706791) 1137s # Testing script Sund (code 1400204900) 1137s # Testing script Saur (code 1398895986) 1137s # Testing script Cham (code 1130914157) 1137s # Testing script Olck (code 1332503403) 1137s # Testing script Vaii (code 1449224553) 1137s # Testing script Cari (code 1130459753) 1137s # Testing script Lyci (code 1283023721) 1137s # Testing script Lydi (code 1283023977) 1137s # Testing script Avst (code 1098281844) 1137s # Testing script Bamu (code 1113681269) 1137s # Testing script Egyp (code 1164409200) 1137s # Testing script Armi (code 1098018153) 1137s # Testing script Phli (code 1349020777) 1137s # Testing script Prti (code 1349678185) 1137s # Testing script Java (code 1247901281) 1137s # Testing script Kthi (code 1265920105) 1137s # Testing script Lisu (code 1281979253) 1137s # Testing script Mtei (code 1299473769) 1137s # Testing script Sarb (code 1398895202) 1137s # Testing script Orkh (code 1332898664) 1137s # Testing script Samr (code 1398893938) 1137s # Testing script Lana (code 1281453665) 1137s # Testing script Tavt (code 1415673460) 1137s # Testing script Batk (code 1113683051) 1137s # Testing script Brah (code 1114792296) 1137s # Testing script Mand (code 1298230884) 1137s # Testing script Cakm (code 1130457965) 1137s # Testing script Merc (code 1298494051) 1137s ok - glib/unicode.test 1137s # Testing script Mero (code 1298494063) 1137s # Testing script Plrd (code 1349284452) 1137s # Testing script Shrd (code 1399353956) 1137s # Testing script Sora (code 1399812705) 1137s # Testing script Takr (code 1415670642) 1137s # Testing script Bass (code 1113682803) 1137s # Testing script Aghb (code 1097295970) 1137s # Testing script Dupl (code 1148547180) 1137s # Testing script Elba (code 1164730977) 1137s # Testing script Gran (code 1198678382) 1137s # Testing script Khoj (code 1265135466) 1137s # Testing script Sind (code 1399418468) 1137s # Testing script Lina (code 1281977953) 1137s # Testing script Mahj (code 1298229354) 1137s # Testing script Mani (code 1298230889) 1137s # Testing script Mend (code 1298493028) 1137s # Testing script Modi (code 1299145833) 1137s # Testing script Mroo (code 1299345263) 1137s # Testing script Nbat (code 1315070324) 1137s # Testing script Narb (code 1315009122) 1137s # Testing script Perm (code 1348825709) 1137s # Testing script Hmng (code 1215131239) 1137s # Testing script Palm (code 1348562029) 1137s # Testing script Pauc (code 1348564323) 1137s # Testing script Phlp (code 1349020784) 1137s # Testing script Sidd (code 1399415908) 1137s # Testing script Tirh (code 1416196712) 1137s # Testing script Wara (code 1466004065) 1137s # Testing script Ahom (code 1097363309) 1137s # Testing script Hluw (code 1215067511) 1137s # Testing script Hatr (code 1214346354) 1137s # Testing script Mult (code 1299541108) 1137s # Testing script Hung (code 1215655527) 1137s # Testing script Sgnw (code 1399287415) 1137s # Testing script Adlm (code 1097100397) 1137s # Testing script Bhks (code 1114139507) 1137s # Testing script Marc (code 1298231907) 1137s # Testing script Newa (code 1315272545) 1137s # Testing script Osge (code 1332963173) 1137s # Testing script Tang (code 1415671399) 1137s # Testing script Gonm (code 1198485101) 1137s # Testing script Nshu (code 1316186229) 1137s # Testing script Soyo (code 1399814511) 1137s # Testing script Zanb (code 1516334690) 1137s # Testing script Dogr (code 1148151666) 1137s # Testing script Gong (code 1198485095) 1137s # Testing script Rohg (code 1383032935) 1137s # Testing script Maka (code 1298230113) 1137s # Testing script Medf (code 1298490470) 1137s # Testing script Sogo (code 1399809903) 1137s # Testing script Sogd (code 1399809892) 1137s # Testing script Elym (code 1164736877) 1137s # Testing script Nand (code 1315008100) 1137s # Testing script Hmnp (code 1215131248) 1137s # Testing script Wcho (code 1466132591) 1137s # Testing script Chrs (code 1130918515) 1137s # Testing script Diak (code 1147756907) 1137s # Testing script Kits (code 1265202291) 1137s # Testing script Yezi (code 1499822697) 1137s # Testing script Cpmn (code 1131441518) 1137s # Testing script Ougr (code 1333094258) 1137s # Testing script Tnsa (code 1416524641) 1137s # Testing script Toto (code 1416590447) 1137s # Testing script Vith (code 1449751656) 1137s # Testing script Kawi (code 1264678761) 1137s # Testing script Nagm (code 1315006317) 1137s # Testing script Todr (code 1416586354) 1137s # Testing script Gara (code 1197568609) 1137s # Testing script Tutg (code 1416983655) 1137s # Testing script Sunu (code 1400204917) 1137s # Testing script Gukh (code 1198877544) 1137s # Testing script Krai (code 1265787241) 1137s # Testing script Onao (code 1332633967) 1137s ok 21 /unicode/iso15924 1137s ok 22 /unicode/lower 1137s ok 23 /unicode/mark 1137s ok 24 /unicode/mirror 1137s ok 25 /unicode/print 1137s ok 26 /unicode/punctuation 1137s ok 27 /unicode/script 1137s ok 28 /unicode/space 1137s ok 29 /unicode/strdown 1137s ok 30 /unicode/strup 1137s ok 31 /unicode/turkish-strupdown 1137s ok 32 /unicode/title 1137s ok 33 /unicode/upper 1137s ok 34 /unicode/validate 1137s ok 35 /unicode/wide 1137s ok 36 /unicode/xdigit 1137s ok 37 /unicode/xdigit-value 1137s ok 38 /unicode/zero-width 1137s ok 39 /unicode/normalize 1137s # End of unicode tests 1137s # Running test: glib/memchunk.test 1137s TAP version 14 1137s # random seed: R02Sf084de27a04739ca714785ebf5e32147 1137s 1..1 1137s # Start of memchunk tests 1137s ok 1 /memchunk/basic 1137s # End of memchunk tests 1137s ok - glib/memchunk.test 1137s # Running test: glib/gdbus-server-auth.test 1137s TAP version 14 1137s # random seed: R02S1c50da2da101cb17c6475ffc4cc0c68a 1137s 1..9 1137s # Start of gdbus tests 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/.dirs/runtime 1137s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_FXZAK3/gdbus-server-auth-PYTAK3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1137s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_FXZAK3/gdbus-server-auth-PYTAK3/dbus-ob7dU0kh 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 1721 1137s ok 1 /gdbus/server-auth 1137s # Start of server-auth tests 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/abstract/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/abstract/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/abstract/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/abstract/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/abstract/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/abstract/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/abstract/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/abstract/.dirs/runtime 1137s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_FXZAK3/gdbus-server-auth-OQFBK3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1137s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_FXZAK3/gdbus-server-auth-OQFBK3/dbus-V9PGTIYQ 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1137s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1137s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 1721 1137s ok 2 /gdbus/server-auth/abstract 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/tcp/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/tcp/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/tcp/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/tcp/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/tcp/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/tcp/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/tcp/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/tcp/.dirs/runtime 1137s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1137s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/.dirs/runtime 1137s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_FXZAK3/gdbus-server-auth-3578J3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1137s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_FXZAK3/gdbus-server-auth-3578J3/dbus-u3YhPXkP 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 1721 1137s ok 4 /gdbus/server-auth/anonymous 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/.dirs/runtime 1137s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_FXZAK3/gdbus-server-auth-NSW9J3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1137s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_FXZAK3/gdbus-server-auth-NSW9J3/dbus-FIJA8BSp 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 1721 1137s ok 5 /gdbus/server-auth/external 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/.dirs/runtime 1137s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_FXZAK3/gdbus-server-auth-E0S7J3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1137s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1137s # Start of anonymous tests 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/tcp/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/tcp/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/tcp/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/tcp/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/tcp/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1137s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1137s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1137s # End of anonymous tests 1137s # Start of external tests 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/require-same-user/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/require-same-user/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/require-same-user/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/require-same-user/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/require-same-user/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/external/require-same-user/.dirs/runtime 1137s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_FXZAK3/gdbus-server-auth-0RT7J3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1137s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_FXZAK3/gdbus-server-auth-0RT7J3/dbus-GLXwqCyG 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 1721 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1137s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1137s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=1721,uid=1000,gid=1000 1137s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 1721 1137s ok 8 /gdbus/server-auth/external/require-same-user 1137s # End of external tests 1137s # Start of sha1 tests 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/tcp/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/tcp/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/tcp/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/tcp/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/tcp/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_FXZAK3/gdbus/server-auth/sha1/tcp/.dirs/runtime 1137s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1137s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1137s # End of sha1 tests 1137s # End of server-auth tests 1137s # End of gdbus tests 1137s ok - glib/gdbus-server-auth.test 1137s # Running test: glib/spawn-path-search.test 1137s TAP version 14 1137s # random seed: R02Sa1561dbbce38796cf1006bba2b7efc74 1137s 1..7 1137s # Start of spawn tests 1137s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 1137s # 1137s # this is spawn-test-helper from glib/tests 1137s # 1137s ok 1 /spawn/do-not-search 1137s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 1137s # 1137s # this is spawn-test-helper from path-test-subdir 1137s # 1137s ok 2 /spawn/search-path 1137s # /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. 1137s # 1137s # this is spawn-test-helper from path-test-subdir 1137s # 1137s ok 3 /spawn/search-path-from-envp 1137s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 1137s # 1137s # this is spawn-test-helper from path-test-subdir 1137s # 1137s ok 4 /spawn/search-path-ambiguous 1137s # 1137s # this is spawn-test-helper from path-test-subdir 1137s # 1137s ok 5 /spawn/search-path-heap-allocation 1137s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 1137s # 1137s # this is spawn-test-helper from glib/tests 1137s # 1137s ok 6 /spawn/search-path-fallback-in-environ 1137s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 1137s # 1137s # this is spawn-test-helper from glib/tests 1137s # 1137s ok 7 /spawn/search-path-fallback-in-envp 1137s # End of spawn tests 1137s ok - glib/spawn-path-search.test 1137s # Running test: glib/gdbus-subscribe.test 1137s TAP version 14 1137s # random seed: R02Sb81c659599bcde8ace311bad9dd26585 1137s 1..24 1137s # Start of gdbus tests 1137s # Start of subscribe tests 1137s # Start of conn tests 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/simple/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/simple/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/simple/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/simple/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/simple/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/simple/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/simple/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/simple/.dirs/runtime 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 1137s # Step 0: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 1: adding subscription 1137s # Sender: (any) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Waiting for AddMatch to be processed 1137s # Step 2: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 2 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 1 /gdbus/subscribe/conn/simple 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1137s # Step 0: adding subscription 1137s # Sender: (any) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Waiting for AddMatch to be processed 1137s # Step 1: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 2: emitting signal 1137s # Sender: service 2 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 3: emitting signal 1137s # Sender: service 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 4: emitting signal 1137s # Sender: service 2 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 1 1137s # Signal received from service 2 :1.2 1137s # Signal received from service 2 :1.2 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 2 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 3 1137s # Signal received from service 2 :1.2 1137s # Signal received from service 2 :1.2 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1137s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1137s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1137s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/match_twice/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/match_twice/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/match_twice/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/match_twice/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/match_twice/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/match_twice/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/match_twice/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/match_twice/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 1137s # Step 0: adding subscription 1137s # Sender: service :1.1 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Waiting for AddMatch to be processed 1137s # Step 1: adding subscription 1137s # Sender: (any) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: (any) 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Waiting for AddMatch to be processed 1137s # Step 2: adding subscription 1137s # Sender: (any) 1137s # Path: (any) 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Waiting for AddMatch to be processed 1137s # Step 3: adding subscription 1137s # Sender: service :1.1 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Waiting for AddMatch to be processed 1137s # Step 4: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 3 /gdbus/subscribe/conn/match_twice 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1137s # Step 0: adding subscription 1137s # Sender: service :1.1 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Waiting for AddMatch to be processed 1137s # Step 1: emitting signal 1137s # Sender: attacker 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 2: emitting signal 1137s # Sender: attacker 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 3: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 3 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1137s # Step 0: adding subscription 1137s # Sender: :0.this.had.better.not.exist 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Waiting for AddMatch to be processed 1137s # Step 1: emitting signal 1137s # Sender: attacker 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 2: emitting signal 1137s # Sender: attacker 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /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 1137s # Step 0: claiming bus name 1137s # Name: org.gtk.Test.AlreadyOwned 1137s # Owner: service 1137s # Step 1: adding subscription 1137s # Sender: org.gtk.Test.AlreadyOwned 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Waiting for AddMatch to be processed 1137s # Step 2: adding subscription 1137s # Sender: org.gtk.Test.OwnedLater 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Waiting for AddMatch to be processed 1137s # Step 3: emitting signal 1137s # Sender: attacker 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 4: emitting signal 1137s # Sender: attacker 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 5: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 6: claiming bus name 1137s # Name: org.gtk.Test.OwnedLater 1137s # Owner: service 1137s # Step 7: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 5 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 7 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 7 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1137s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1137s # Step 0: adding subscription 1137s # Sender: org.freedesktop.DBus 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Waiting for AddMatch to be processed 1137s # Step 1: emitting signal 1137s # Sender: attacker 1137s # Destination: (broadcast) 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: NameOwnerChanged 1137s # String argument 0: would I lie to you? 1137s # Waiting for signal to reach message bus 1137s # Step 2: emitting signal 1137s # Sender: attacker 1137s # Destination: subscriber :1.0 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: NameOwnerChanged 1137s # Waiting for signal to reach message bus 1137s # Step 3: claiming bus name 1137s # Name: org.gtk.Test.OwnedLater 1137s # Owner: service 1137s # Signal received from message bus org.freedesktop.DBus 1137s # Signal received from (unused) org.freedesktop.DBus via connection 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: NameOwnerChanged 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1137s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1137s # Step 0: claiming bus name 1137s # Name: org.gtk.Test.AlreadyOwned 1137s # Owner: service 1137s # Step 1: adding subscription 1137s # Sender: org.gtk.Test.AlreadyOwned 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Immediately unsubscribing 1137s # Waiting for AddMatch to be processed 1137s # Step 2: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 1137s # End of conn tests 1137s # Start of proxy tests 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/simple/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/simple/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/simple/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/simple/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/simple/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/simple/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/simple/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/simple/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 1137s # Step 0: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 1: adding subscription 1137s # Sender: (any) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Cannot subscribe via proxy: no bus name 1137s # Waiting for AddMatch to be processed 1137s # Step 2: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 9 /gdbus/subscribe/proxy/simple 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1137s # Step 0: adding subscription 1137s # Sender: (any) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Cannot subscribe via proxy: no bus name 1137s # Waiting for AddMatch to be processed 1137s # Step 1: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 2: emitting signal 1137s # Sender: service 2 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 3: emitting signal 1137s # Sender: service 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 4: emitting signal 1137s # Sender: service 2 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/match_twice/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/match_twice/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/match_twice/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/match_twice/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/match_twice/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/match_twice/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 1137s # Step 0: adding subscription 1137s # Sender: service :1.1 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 1: adding subscription 1137s # Sender: (any) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: (any) 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Cannot subscribe via proxy: no bus name 1137s # Waiting for AddMatch to be processed 1137s # Step 2: adding subscription 1137s # Sender: (any) 1137s # Path: (any) 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Cannot subscribe via proxy: no bus name 1137s # Waiting for AddMatch to be processed 1137s # Step 3: adding subscription 1137s # Sender: service :1.1 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 4: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 11 /gdbus/subscribe/proxy/match_twice 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1137s # Step 0: adding subscription 1137s # Sender: service :1.1 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 1: emitting signal 1137s # Sender: attacker 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 2: emitting signal 1137s # Sender: attacker 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 3: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 3 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1137s # Step 0: adding subscription 1137s # Sender: :0.this.had.better.not.exist 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 1: emitting signal 1137s # Sender: attacker 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 2: emitting signal 1137s # Sender: attacker 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /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 1137s # Step 0: claiming bus name 1137s # Name: org.gtk.Test.AlreadyOwned 1137s # Owner: service 1137s # Step 1: adding subscription 1137s # Sender: org.gtk.Test.AlreadyOwned 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 2: adding subscription 1137s # Sender: org.gtk.Test.OwnedLater 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 3: emitting signal 1137s # Sender: attacker 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 4: emitting signal 1137s # Sender: attacker 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 5: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 6: claiming bus name 1137s # Name: org.gtk.Test.OwnedLater 1137s # Owner: service 1137s # Step 7: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 5 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 7 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 7 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1137s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1137s # Step 0: adding subscription 1137s # Sender: org.freedesktop.DBus 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 1: emitting signal 1137s # Sender: attacker 1137s # Destination: (broadcast) 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: NameOwnerChanged 1137s # String argument 0: would I lie to you? 1137s # Waiting for signal to reach message bus 1137s # Step 2: emitting signal 1137s # Sender: attacker 1137s # Destination: subscriber :1.0 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: NameOwnerChanged 1137s # Waiting for signal to reach message bus 1137s # Step 3: claiming bus name 1137s # Name: org.gtk.Test.OwnedLater 1137s # Owner: service 1137s # Signal received from message bus org.freedesktop.DBus 1137s # Signal received from (unused) org.freedesktop.DBus via proxy 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: NameOwnerChanged 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1137s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1137s # Step 0: claiming bus name 1137s # Name: org.gtk.Test.AlreadyOwned 1137s # Owner: service 1137s # Step 1: adding subscription 1137s # Sender: org.gtk.Test.AlreadyOwned 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 2: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 2 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 1137s # End of proxy tests 1137s # Start of parallel tests 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/simple/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/simple/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/simple/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/simple/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/simple/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/simple/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/simple/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/simple/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 1137s # Step 0: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 1: adding subscription 1137s # Sender: (any) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Cannot subscribe via proxy: no bus name 1137s # Waiting for AddMatch to be processed 1137s # Step 2: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 2 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1137s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 17 /gdbus/subscribe/parallel/simple 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1137s # Step 0: adding subscription 1137s # Sender: (any) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Cannot subscribe via proxy: no bus name 1137s # Waiting for AddMatch to be processed 1137s # Step 1: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 2: emitting signal 1137s # Sender: service 2 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 3: emitting signal 1137s # Sender: service 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 4: emitting signal 1137s # Sender: service 2 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 1 1137s # Signal received from service 2 :1.2 1137s # Signal received from service 2 :1.2 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 2 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 3 1137s # Signal received from service 2 :1.2 1137s # Signal received from service 2 :1.2 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1137s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1137s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1137s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1137s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/match_twice/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/match_twice/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/match_twice/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/match_twice/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/match_twice/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/match_twice/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 1137s # Step 0: adding subscription 1137s # Sender: service :1.1 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 1: adding subscription 1137s # Sender: (any) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: (any) 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Cannot subscribe via proxy: no bus name 1137s # Waiting for AddMatch to be processed 1137s # Step 2: adding subscription 1137s # Sender: (any) 1137s # Path: (any) 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Cannot subscribe via proxy: no bus name 1137s # Waiting for AddMatch to be processed 1137s # Step 3: adding subscription 1137s # Sender: service :1.1 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 4: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 4 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1137s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 19 /gdbus/subscribe/parallel/match_twice 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1137s # Step 0: adding subscription 1137s # Sender: service :1.1 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 1: emitting signal 1137s # Sender: attacker 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 2: emitting signal 1137s # Sender: attacker 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 3: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 3 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 3 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1137s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1137s # Step 0: adding subscription 1137s # Sender: :0.this.had.better.not.exist 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 1: emitting signal 1137s # Sender: attacker 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 2: emitting signal 1137s # Sender: attacker 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /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 1137s # Step 0: claiming bus name 1137s # Name: org.gtk.Test.AlreadyOwned 1137s # Owner: service 1137s # Step 1: adding subscription 1137s # Sender: org.gtk.Test.AlreadyOwned 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 2: adding subscription 1137s # Sender: org.gtk.Test.OwnedLater 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 3: emitting signal 1137s # Sender: attacker 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 4: emitting signal 1137s # Sender: attacker 1137s # Destination: subscriber :1.0 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 5: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Step 6: claiming bus name 1137s # Name: org.gtk.Test.OwnedLater 1137s # Owner: service 1137s # Step 7: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 5 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 5 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 7 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 7 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via connection 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 7 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 7 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1137s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1137s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1137s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1137s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1137s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1137s # Step 0: adding subscription 1137s # Sender: org.freedesktop.DBus 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 1: emitting signal 1137s # Sender: attacker 1137s # Destination: (broadcast) 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: NameOwnerChanged 1137s # String argument 0: would I lie to you? 1137s # Waiting for signal to reach message bus 1137s # Step 2: emitting signal 1137s # Sender: attacker 1137s # Destination: subscriber :1.0 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: NameOwnerChanged 1137s # Waiting for signal to reach message bus 1137s # Step 3: claiming bus name 1137s # Name: org.gtk.Test.OwnedLater 1137s # Owner: service 1137s # Signal received from message bus org.freedesktop.DBus 1137s # Signal received from (unused) org.freedesktop.DBus via connection 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: NameOwnerChanged 1137s # Signal received from message bus org.freedesktop.DBus 1137s # Signal received from (unused) org.freedesktop.DBus via proxy 1137s # Path: /org/freedesktop/DBus 1137s # Interface: org.freedesktop.DBus 1137s # Member: NameOwnerChanged 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1137s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1137s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_YYG6J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1137s # subscriber is :1.0 1137s # service is :1.1 1137s # service 2 is :1.2 1137s # attacker is :1.3 1137s # Waiting for AddMatch to be processed 1137s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1137s # Step 0: claiming bus name 1137s # Name: org.gtk.Test.AlreadyOwned 1137s # Owner: service 1137s # Step 1: adding subscription 1137s # Sender: org.gtk.Test.AlreadyOwned 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: (any) 1137s # String argument 0: (any) 1137s # Flags: 0 1137s # Subscribing via connection 1137s # Immediately unsubscribing 1137s # Subscribing via proxy 1137s # Waiting for AddMatch to be processed 1137s # Step 2: emitting signal 1137s # Sender: service 1137s # Destination: (broadcast) 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Waiting for signal to reach message bus 1137s # Signal received from service :1.1 1137s # Signal received from service :1.1 via proxy 1137s # Path: /org/gtk/GDBus/ExampleInterface 1137s # Interface: org.gtk.GDBus.ExampleInterface 1137s # Member: Foo 1137s # Argument 0: (not a string) 1137s # Sent in step: 2 1137s # Received Finished signal from subscriber :1.0 1137s # Received Finished signal from service :1.1 1137s # Received Finished signal from service 2 :1.2 1137s # Received Finished signal from attacker :1.3 1137s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1137s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1137s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1137s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 1137s # End of parallel tests 1137s # End of subscribe tests 1137s # End of gdbus tests 1137s ok - glib/gdbus-subscribe.test 1137s # Running test: glib/node.test 1137s TAP version 14 1137s # random seed: R02S2528f5b45273ac2f7d402fc185a066cf 1137s 1..6 1137s # Start of node tests 1137s ok 1 /node/allocation 1137s ok 2 /node/construction 1137s ok 3 /node/traversal 1137s ok 4 /node/misc 1137s ok 5 /node/unlink 1137s ok 6 /node/copy 1137s # End of node tests 1137s ok - glib/node.test 1137s # Running test: glib/types.test 1137s TAP version 14 1137s # random seed: R02S3e79a86de480d970d807c9d51fe47ae9 1137s 1..1 1137s # Start of types tests 1137s ok 1 /types/basic_types 1137s # End of types tests 1137s ok - glib/types.test 1137s # Running test: glib/scannerapi.test 1137s TAP version 14 1137s # random seed: R02S499bbe54ad63111604ff17170d931184 1137s 1..8 1137s # Start of scanner tests 1137s ok 1 /scanner/warn 1137s ok 2 /scanner/error 1137s ok 3 /scanner/symbols 1137s ok 4 /scanner/tokens 1137s ok 5 /scanner/multiline-comment 1137s ok 6 /scanner/int-to-float 1137s ok 7 /scanner/fd-input 1137s # Start of fd-input tests 1137s ok 8 /scanner/fd-input/rewind 1137s # End of fd-input tests 1137s # End of scanner tests 1137s ok - glib/scannerapi.test 1137s # Running test: glib/completion.test 1137s TAP version 14 1137s # random seed: R02S23dc433b504baf5a6900d79059809002 1137s 1..1 1137s # Start of completion tests 1137s ok 1 /completion/test-completion 1137s # End of completion tests 1137s ok - glib/completion.test 1137s # Running test: glib/spawn-singlethread.test 1137s TAP version 14 1137s # random seed: R02S3d392d1d0cc40765a34cf337f179047c 1137s 1..9 1137s # Start of gthread tests 1137s ok 1 /gthread/spawn-single-sync 1137s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 1137s ok 2 /gthread/spawn-stderr-socket 1137s ok 3 /gthread/spawn-single-async 1137s # thread 1 1137s # thread 1 1137s ok 4 /gthread/spawn-single-async-with-fds 1137s ok 5 /gthread/spawn-async-with-invalid-fds 1137s ok 6 /gthread/spawn-script 1137s ok 7 /gthread/spawn-posix-spawn 1137s # Start of spawn tests 1137s ok 8 /gthread/spawn/nonexistent 1137s # FD map: 1137s # • 5 → 15 1137s # • 6 → 16 1137s # • 7 → 17 1137s # • 8 → 18 1137s # • 9 → 19 1137s # • 10 → 20 1137s # • 11 → 21 1137s # • 12 → 22 1137s # • 13 → 23 1137s # • 3 → 13 1137s ok 9 /gthread/spawn/fd-assignment-clash 1137s # End of spawn tests 1137s # End of gthread tests 1137s ok - glib/spawn-singlethread.test 1137s # Running test: glib/mkenums.py.test 1137s # Executing: glib/mkenums.py.test 1137s TAP version 13 1137s ok 1 __main__.TestMkenums.test_available_in 1137s # glib-mkenums: /usr/bin/glib-mkenums 1137s # tmpdir: /tmp/tmpk3v4036j 1137s # rspfile: False 1137s # /tmp/tmpk3v4036j/tmpd7ae7wxj.h: 1137s # typedef enum { 1137s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1137s # } GDBusServerFlags; 1137s # 1137s # /tmp/tmpk3v4036j/tmpk685ghc0.template: 1137s # /*** BEGIN file-header ***/ 1137s # file-header 1137s # /*** END file-header ***/ 1137s # 1137s # /*** BEGIN file-production ***/ 1137s # file-production 1137s # filename: @filename@ 1137s # basename: @basename@ 1137s # /*** END file-production ***/ 1137s # 1137s # /*** BEGIN enumeration-production ***/ 1137s # enumeration-production 1137s # EnumName: @EnumName@ 1137s # enum_name: @enum_name@ 1137s # ENUMNAME: @ENUMNAME@ 1137s # ENUMSHORT: @ENUMSHORT@ 1137s # ENUMPREFIX: @ENUMPREFIX@ 1137s # enumsince: @enumsince@ 1137s # type: @type@ 1137s # Type: @Type@ 1137s # TYPE: @TYPE@ 1137s # /*** END enumeration-production ***/ 1137s # 1137s # /*** BEGIN value-header ***/ 1137s # value-header 1137s # EnumName: @EnumName@ 1137s # enum_name: @enum_name@ 1137s # ENUMNAME: @ENUMNAME@ 1137s # ENUMSHORT: @ENUMSHORT@ 1137s # ENUMPREFIX: @ENUMPREFIX@ 1137s # enumsince: @enumsince@ 1137s # type: @type@ 1137s # Type: @Type@ 1137s # TYPE: @TYPE@ 1137s # /*** END value-header ***/ 1137s # 1137s # /*** BEGIN value-production ***/ 1137s # value-production 1137s # VALUENAME: @VALUENAME@ 1137s # valuenick: @valuenick@ 1137s # valuenum: @valuenum@ 1137s # type: @type@ 1137s # Type: @Type@ 1137s # TYPE: @TYPE@ 1137s # /*** END value-production ***/ 1137s # 1137s # /*** BEGIN value-tail ***/ 1137s # value-tail 1137s # EnumName: @EnumName@ 1137s # enum_name: @enum_name@ 1137s # ENUMNAME: @ENUMNAME@ 1137s # ENUMSHORT: @ENUMSHORT@ 1137s # ENUMPREFIX: @ENUMPREFIX@ 1137s # enumsince: @enumsince@ 1137s # type: @type@ 1137s # Type: @Type@ 1137s # TYPE: @TYPE@ 1137s # /*** END value-tail ***/ 1137s # 1137s # /*** BEGIN comment ***/ 1137s # comment 1137s # comment: @comment@ 1137s # /*** END comment ***/ 1137s # 1137s # /*** BEGIN file-tail ***/ 1137s # file-tail 1137s # /*** END file-tail ***/ 1137s # 1137s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpk3v4036j/tmpk685ghc0.template', '/tmp/tmpk3v4036j/tmpd7ae7wxj.h'] 1137s # Return code: 0 1137s # Output: 1137s # comment 1137s # 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. 1137s # 1137s # 1137s # file-header 1137s # file-production 1137s # filename: /tmp/tmpk3v4036j/tmpd7ae7wxj.h 1137s # basename: tmpd7ae7wxj.h 1137s # enumeration-production 1137s # EnumName: GDBusServerFlags 1137s # enum_name: g_dbus_server_flags 1137s # ENUMNAME: G_DBUS_SERVER_FLAGS 1137s # ENUMSHORT: DBUS_SERVER_FLAGS 1137s # ENUMPREFIX: G 1137s # enumsince: 1137s # type: flags 1137s # Type: Flags 1137s # TYPE: FLAGS 1137s # value-header 1137s # EnumName: GDBusServerFlags 1137s # enum_name: g_dbus_server_flags 1137s # ENUMNAME: G_DBUS_SERVER_FLAGS 1137s # ENUMSHORT: DBUS_SERVER_FLAGS 1137s # ENUMPREFIX: G 1137s # enumsince: 1137s # type: flags 1137s # Type: Flags 1137s # TYPE: FLAGS 1137s # value-production 1137s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1137s # valuenick: user 1137s # valuenum: 4 1137s # type: flags 1137s # Type: Flags 1137s # TYPE: FLAGS 1137s # value-tail 1137s # EnumName: GDBusServerFlags 1137s # enum_name: g_dbus_server_flags 1137s # ENUMNAME: G_DBUS_SERVER_FLAGS 1137s # ENUMSHORT: DBUS_SERVER_FLAGS 1137s # ENUMPREFIX: G 1137s # enumsince: 1137s # type: flags 1137s # Type: Flags 1137s # TYPE: FLAGS 1137s # file-tail 1137s # 1137s # comment 1137s # comment: Generated data ends here 1137s # Error: 1137s ok 2 __main__.TestMkenums.test_comma_in_enum_value 1137s # glib-mkenums: /usr/bin/glib-mkenums 1137s # tmpdir: /tmp/tmpfhttbc_r 1137s # rspfile: False 1137s # /tmp/tmpfhttbc_r/tmpo3vzvvvd.h: 1137s # typedef enum { 1137s # ENUM_VALUE_WITH_COMMA = ',', 1137s # } TestCommaEnum; 1137s # 1137s # /tmp/tmpfhttbc_r/tmppvfmx800.template: 1137s # /*** BEGIN file-header ***/ 1137s # file-header 1137s # /*** END file-header ***/ 1137s # 1137s # /*** BEGIN file-production ***/ 1137s # file-production 1137s # filename: @filename@ 1137s # basename: @basename@ 1137s # /*** END file-production ***/ 1137s # 1137s # /*** BEGIN enumeration-production ***/ 1137s # enumeration-production 1137s # EnumName: @EnumName@ 1137s # enum_name: @enum_name@ 1137s # ENUMNAME: @ENUMNAME@ 1137s # ENUMSHORT: @ENUMSHORT@ 1137s # ENUMPREFIX: @ENUMPREFIX@ 1137s # enumsince: @enumsince@ 1137s # type: @type@ 1137s # Type: @Type@ 1137s # TYPE: @TYPE@ 1137s # /*** END enumeration-production ***/ 1137s # 1137s # /*** BEGIN value-header ***/ 1137s # value-header 1137s # EnumName: @EnumName@ 1137s # enum_name: @enum_name@ 1137s # ENUMNAME: @ENUMNAME@ 1137s # ENUMSHORT: @ENUMSHORT@ 1137s # ENUMPREFIX: @ENUMPREFIX@ 1137s # enumsince: @enumsince@ 1137s # type: @type@ 1137s # Type: @Type@ 1137s # TYPE: @TYPE@ 1137s # /*** END value-header ***/ 1137s # 1137s # /*** BEGIN value-production ***/ 1137s # value-production 1137s # VALUENAME: @VALUENAME@ 1137s # valuenick: @valuenick@ 1137s # valuenum: @valuenum@ 1137s # type: @type@ 1137s # Type: @Type@ 1137s # TYPE: @TYPE@ 1137s # /*** END value-production ***/ 1137s # 1137s # /*** BEGIN value-tail ***/ 1137s # value-tail 1137s # EnumName: @EnumName@ 1137s # enum_name: @enum_name@ 1137s # ENUMNAME: @ENUMNAME@ 1137s # ENUMSHORT: @ENUMSHORT@ 1137s # ENUMPREFIX: @ENUMPREFIX@ 1137s # enumsince: @enumsince@ 1137s # type: @type@ 1137s # Type: @Type@ 1137s # TYPE: @TYPE@ 1137s # /*** END value-tail ***/ 1137s # 1137s # /*** BEGIN comment ***/ 1137s # comment 1137s # comment: @comment@ 1137s # /*** END comment ***/ 1137s # 1137s # /*** BEGIN file-tail ***/ 1137s # file-tail 1137s # /*** END file-tail ***/ 1137s # 1137s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpfhttbc_r/tmppvfmx800.template', '/tmp/tmpfhttbc_r/tmpo3vzvvvd.h'] 1137s # Return code: 0 1137s # Output: 1137s # comment 1137s # 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. 1137s # 1137s # 1137s # file-header 1137s # file-production 1137s # filename: /tmp/tmpfhttbc_r/tmpo3vzvvvd.h 1137s # basename: tmpo3vzvvvd.h 1137s # enumeration-production 1137s # EnumName: TestCommaEnum 1137s # enum_name: test_comma_enum 1137s # ENUMNAME: TEST_COMMA_ENUM 1137s # ENUMSHORT: COMMA_ENUM 1137s # ENUMPREFIX: TEST 1137s # enumsince: 1137s # type: enum 1137s # Type: Enum 1137s # TYPE: ENUM 1137s # value-header 1137s # EnumName: TestCommaEnum 1137s # enum_name: test_comma_enum 1137s # ENUMNAME: TEST_COMMA_ENUM 1137s # ENUMSHORT: COMMA_ENUM 1137s # ENUMPREFIX: TEST 1137s # enumsince: 1137s # type: enum 1137s # Type: Enum 1137s # TYPE: ENUM 1137s # value-production 1137s # VALUENAME: ENUM_VALUE_WITH_COMMA 1137s # valuenick: comma 1137s # valuenum: 44 1137s # type: enum 1137s # Type: Enum 1137s # TYPE: ENUM 1137s # value-tail 1137s # EnumName: TestCommaEnum 1137s # enum_name: test_comma_enum 1137s # ENUMNAME: TEST_COMMA_ENUM 1137s # ENUMSHORT: COMMA_ENUM 1137s # ENUMPREFIX: TEST 1137s # enumsince: 1137s # type: enum 1137s # Type: Enum 1137s # TYPE: ENUM 1137s # file-tail 1137s # 1137s # comment 1137s # comment: Generated data ends here 1137s # Error: 1138s ok 3 __main__.TestMkenums.test_deprecated_in 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmpihc2k4og 1138s # rspfile: False 1138s # /tmp/tmpihc2k4og/tmpmqrta23o.h: 1138s # typedef enum { 1138s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1138s # } GDBusServerFlags; 1138s # 1138s # /tmp/tmpihc2k4og/tmp5kd_bov0.template: 1138s # /*** BEGIN file-header ***/ 1138s # file-header 1138s # /*** END file-header ***/ 1138s # 1138s # /*** BEGIN file-production ***/ 1138s # file-production 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # /*** END file-production ***/ 1138s # 1138s # /*** BEGIN enumeration-production ***/ 1138s # enumeration-production 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END enumeration-production ***/ 1138s # 1138s # /*** BEGIN value-header ***/ 1138s # value-header 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-header ***/ 1138s # 1138s # /*** BEGIN value-production ***/ 1138s # value-production 1138s # VALUENAME: @VALUENAME@ 1138s # valuenick: @valuenick@ 1138s # valuenum: @valuenum@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-production ***/ 1138s # 1138s # /*** BEGIN value-tail ***/ 1138s # value-tail 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-tail ***/ 1138s # 1138s # /*** BEGIN comment ***/ 1138s # comment 1138s # comment: @comment@ 1138s # /*** END comment ***/ 1138s # 1138s # /*** BEGIN file-tail ***/ 1138s # file-tail 1138s # /*** END file-tail ***/ 1138s # 1138s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpihc2k4og/tmp5kd_bov0.template', '/tmp/tmpihc2k4og/tmpmqrta23o.h'] 1138s # Return code: 0 1138s # Output: 1138s # comment 1138s # 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. 1138s # 1138s # 1138s # file-header 1138s # file-production 1138s # filename: /tmp/tmpihc2k4og/tmpmqrta23o.h 1138s # basename: tmpmqrta23o.h 1138s # enumeration-production 1138s # EnumName: GDBusServerFlags 1138s # enum_name: g_dbus_server_flags 1138s # ENUMNAME: G_DBUS_SERVER_FLAGS 1138s # ENUMSHORT: DBUS_SERVER_FLAGS 1138s # ENUMPREFIX: G 1138s # enumsince: 1138s # type: flags 1138s # Type: Flags 1138s # TYPE: FLAGS 1138s # value-header 1138s # EnumName: GDBusServerFlags 1138s # enum_name: g_dbus_server_flags 1138s # ENUMNAME: G_DBUS_SERVER_FLAGS 1138s # ENUMSHORT: DBUS_SERVER_FLAGS 1138s # ENUMPREFIX: G 1138s # enumsince: 1138s # type: flags 1138s # Type: Flags 1138s # TYPE: FLAGS 1138s # value-production 1138s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1138s # valuenick: user 1138s # valuenum: 4 1138s # type: flags 1138s # Type: Flags 1138s # TYPE: FLAGS 1138s # value-tail 1138s # EnumName: GDBusServerFlags 1138s # enum_name: g_dbus_server_flags 1138s # ENUMNAME: G_DBUS_SERVER_FLAGS 1138s # ENUMSHORT: DBUS_SERVER_FLAGS 1138s # ENUMPREFIX: G 1138s # enumsince: 1138s # type: flags 1138s # Type: Flags 1138s # TYPE: FLAGS 1138s # file-tail 1138s # 1138s # comment 1138s # comment: Generated data ends here 1138s # Error: 1138s ok 4 __main__.TestMkenums.test_deprecated_in_for 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmpjt876vc1 1138s # rspfile: False 1138s # /tmp/tmpjt876vc1/tmpkgn109yo.h: 1138s # typedef enum { 1138s # 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) 1138s # } GDBusServerFlags; 1138s # 1138s # /tmp/tmpjt876vc1/tmp_8wp2hde.template: 1138s # /*** BEGIN file-header ***/ 1138s # file-header 1138s # /*** END file-header ***/ 1138s # 1138s # /*** BEGIN file-production ***/ 1138s # file-production 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # /*** END file-production ***/ 1138s # 1138s # /*** BEGIN enumeration-production ***/ 1138s # enumeration-production 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END enumeration-production ***/ 1138s # 1138s # /*** BEGIN value-header ***/ 1138s # value-header 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-header ***/ 1138s # 1138s # /*** BEGIN value-production ***/ 1138s # value-production 1138s # VALUENAME: @VALUENAME@ 1138s # valuenick: @valuenick@ 1138s # valuenum: @valuenum@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-production ***/ 1138s # 1138s # /*** BEGIN value-tail ***/ 1138s # value-tail 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-tail ***/ 1138s # 1138s # /*** BEGIN comment ***/ 1138s # comment 1138s # comment: @comment@ 1138s # /*** END comment ***/ 1138s # 1138s # /*** BEGIN file-tail ***/ 1138s # file-tail 1138s # /*** END file-tail ***/ 1138s # 1138s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpjt876vc1/tmp_8wp2hde.template', '/tmp/tmpjt876vc1/tmpkgn109yo.h'] 1138s # Return code: 0 1138s # Output: 1138s # comment 1138s # 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. 1138s # 1138s # 1138s # file-header 1138s # file-production 1138s # filename: /tmp/tmpjt876vc1/tmpkgn109yo.h 1138s # basename: tmpkgn109yo.h 1138s # enumeration-production 1138s # EnumName: GDBusServerFlags 1138s # enum_name: g_dbus_server_flags 1138s # ENUMNAME: G_DBUS_SERVER_FLAGS 1138s # ENUMSHORT: DBUS_SERVER_FLAGS 1138s # ENUMPREFIX: G 1138s # enumsince: 1138s # type: flags 1138s # Type: Flags 1138s # TYPE: FLAGS 1138s # value-header 1138s # EnumName: GDBusServerFlags 1138s # enum_name: g_dbus_server_flags 1138s # ENUMNAME: G_DBUS_SERVER_FLAGS 1138s # ENUMSHORT: DBUS_SERVER_FLAGS 1138s # ENUMPREFIX: G 1138s # enumsince: 1138s # type: flags 1138s # Type: Flags 1138s # TYPE: FLAGS 1138s # value-production 1138s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1138s # valuenick: user 1138s # valuenum: 4 1138s # type: flags 1138s # Type: Flags 1138s # TYPE: FLAGS 1138s # value-tail 1138s # EnumName: GDBusServerFlags 1138s # enum_name: g_dbus_server_flags 1138s # ENUMNAME: G_DBUS_SERVER_FLAGS 1138s # ENUMSHORT: DBUS_SERVER_FLAGS 1138s # ENUMPREFIX: G 1138s # enumsince: 1138s # type: flags 1138s # Type: Flags 1138s # TYPE: FLAGS 1138s # file-tail 1138s # 1138s # comment 1138s # comment: Generated data ends here 1138s # Error: 1138s ok 5 __main__.TestMkenums.test_empty_header 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmpvxrwa8g0 1138s # rspfile: False 1138s # /tmp/tmpvxrwa8g0/tmpjsw895i9.h: 1138s # /tmp/tmpvxrwa8g0/tmpk6s7kg3a.template: 1138s # /*** BEGIN file-header ***/ 1138s # file-header 1138s # /*** END file-header ***/ 1138s # 1138s # /*** BEGIN file-production ***/ 1138s # file-production 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # /*** END file-production ***/ 1138s # 1138s # /*** BEGIN enumeration-production ***/ 1138s # enumeration-production 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END enumeration-production ***/ 1138s # 1138s # /*** BEGIN value-header ***/ 1138s # value-header 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-header ***/ 1138s # 1138s # /*** BEGIN value-production ***/ 1138s # value-production 1138s # VALUENAME: @VALUENAME@ 1138s # valuenick: @valuenick@ 1138s # valuenum: @valuenum@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-production ***/ 1138s # 1138s # /*** BEGIN value-tail ***/ 1138s # value-tail 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-tail ***/ 1138s # 1138s # /*** BEGIN comment ***/ 1138s # comment 1138s # comment: @comment@ 1138s # /*** END comment ***/ 1138s # 1138s # /*** BEGIN file-tail ***/ 1138s # file-tail 1138s # /*** END file-tail ***/ 1138s # 1138s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpvxrwa8g0/tmpk6s7kg3a.template', '/tmp/tmpvxrwa8g0/tmpjsw895i9.h'] 1138s # Return code: 0 1138s # Output: 1138s # comment 1138s # 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. 1138s # 1138s # 1138s # file-header 1138s # file-tail 1138s # 1138s # comment 1138s # comment: Generated data ends here 1138s # Error: 1138s ok 6 __main__.TestMkenums.test_empty_template 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmpvuxoybiw 1138s # rspfile: False 1138s # /tmp/tmpvuxoybiw/tmp4vm_1h0z.template: 1138s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpvuxoybiw/tmp4vm_1h0z.template'] 1138s # Return code: 0 1138s # Output: 1138s # /* 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. */ 1138s # 1138s # 1138s # /* Generated data ends here */ 1138s # Error: 1138s ok 7 __main__.TestMkenums.test_enum_name 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmpc_eir0rg 1138s # rspfile: False 1138s # /tmp/tmpc_eir0rg/tmpoxe9_yt1.h: 1138s # typedef enum _SomeEnumIdentifier { 1138s # ENUM_VALUE 1138s # } SomeEnumIdentifier; 1138s # 1138s # /tmp/tmpc_eir0rg/tmplw0mttuz.template: 1138s # /*** BEGIN file-header ***/ 1138s # file-header 1138s # /*** END file-header ***/ 1138s # 1138s # /*** BEGIN file-production ***/ 1138s # file-production 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # /*** END file-production ***/ 1138s # 1138s # /*** BEGIN enumeration-production ***/ 1138s # enumeration-production 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END enumeration-production ***/ 1138s # 1138s # /*** BEGIN value-header ***/ 1138s # value-header 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-header ***/ 1138s # 1138s # /*** BEGIN value-production ***/ 1138s # value-production 1138s # VALUENAME: @VALUENAME@ 1138s # valuenick: @valuenick@ 1138s # valuenum: @valuenum@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-production ***/ 1138s # 1138s # /*** BEGIN value-tail ***/ 1138s # value-tail 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-tail ***/ 1138s # 1138s # /*** BEGIN comment ***/ 1138s # comment 1138s # comment: @comment@ 1138s # /*** END comment ***/ 1138s # 1138s # /*** BEGIN file-tail ***/ 1138s # file-tail 1138s # /*** END file-tail ***/ 1138s # 1138s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpc_eir0rg/tmplw0mttuz.template', '/tmp/tmpc_eir0rg/tmpoxe9_yt1.h'] 1138s # Return code: 0 1138s # Output: 1138s # comment 1138s # 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. 1138s # 1138s # 1138s # file-header 1138s # file-production 1138s # filename: /tmp/tmpc_eir0rg/tmpoxe9_yt1.h 1138s # basename: tmpoxe9_yt1.h 1138s # enumeration-production 1138s # EnumName: SomeEnumIdentifier 1138s # enum_name: some_enum_identifier 1138s # ENUMNAME: SOME_ENUM_IDENTIFIER 1138s # ENUMSHORT: ENUM_IDENTIFIER 1138s # ENUMPREFIX: SOME 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-header 1138s # EnumName: SomeEnumIdentifier 1138s # enum_name: some_enum_identifier 1138s # ENUMNAME: SOME_ENUM_IDENTIFIER 1138s # ENUMSHORT: ENUM_IDENTIFIER 1138s # ENUMPREFIX: SOME 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-production 1138s # VALUENAME: ENUM_VALUE 1138s # valuenick: value 1138s # valuenum: 0 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-tail 1138s # EnumName: SomeEnumIdentifier 1138s # enum_name: some_enum_identifier 1138s # ENUMNAME: SOME_ENUM_IDENTIFIER 1138s # ENUMSHORT: ENUM_IDENTIFIER 1138s # ENUMPREFIX: SOME 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # file-tail 1138s # 1138s # comment 1138s # comment: Generated data ends here 1138s # Error: 1138s ok 8 __main__.TestMkenums.test_enum_private_public 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmpan2yp7v2 1138s # rspfile: False 1138s # /tmp/tmpan2yp7v2/tmp3bpf__o1.h: 1138s # typedef enum { 1138s # ENUM_VALUE_PUBLIC1, 1138s # /*< private >*/ 1138s # ENUM_VALUE_PRIVATE, 1138s # } SomeEnumA 1138s # 1138s # /tmp/tmpan2yp7v2/tmprazahbfy.template: 1138s # /*** BEGIN file-header ***/ 1138s # file-header 1138s # /*** END file-header ***/ 1138s # 1138s # /*** BEGIN file-production ***/ 1138s # file-production 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # /*** END file-production ***/ 1138s # 1138s # /*** BEGIN enumeration-production ***/ 1138s # enumeration-production 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END enumeration-production ***/ 1138s # 1138s # /*** BEGIN value-header ***/ 1138s # value-header 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-header ***/ 1138s # 1138s # /*** BEGIN value-production ***/ 1138s # value-production 1138s # VALUENAME: @VALUENAME@ 1138s # valuenick: @valuenick@ 1138s # valuenum: @valuenum@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-production ***/ 1138s # 1138s # /*** BEGIN value-tail ***/ 1138s # value-tail 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-tail ***/ 1138s # 1138s # /*** BEGIN comment ***/ 1138s # comment 1138s # comment: @comment@ 1138s # /*** END comment ***/ 1138s # 1138s # /*** BEGIN file-tail ***/ 1138s # file-tail 1138s # /*** END file-tail ***/ 1138s # 1138s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpan2yp7v2/tmprazahbfy.template', '/tmp/tmpan2yp7v2/tmp3bpf__o1.h'] 1138s # Return code: 0 1138s # Output: 1138s # comment 1138s # 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. 1138s # 1138s # 1138s # file-header 1138s # file-production 1138s # filename: /tmp/tmpan2yp7v2/tmp3bpf__o1.h 1138s # basename: tmp3bpf__o1.h 1138s # enumeration-production 1138s # EnumName: SomeEnumA 1138s # enum_name: some_enum_a 1138s # ENUMNAME: SOME_ENUM_A 1138s # ENUMSHORT: ENUM_A 1138s # ENUMPREFIX: SOME 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-header 1138s # EnumName: SomeEnumA 1138s # enum_name: some_enum_a 1138s # ENUMNAME: SOME_ENUM_A 1138s # ENUMSHORT: ENUM_A 1138s # ENUMPREFIX: SOME 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-production 1138s # VALUENAME: ENUM_VALUE_PUBLIC1 1138s # valuenick: public1 1138s # valuenum: 0 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-tail 1138s # EnumName: SomeEnumA 1138s # enum_name: some_enum_a 1138s # ENUMNAME: SOME_ENUM_A 1138s # ENUMSHORT: ENUM_A 1138s # ENUMPREFIX: SOME 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # file-tail 1138s # 1138s # comment 1138s # comment: Generated data ends here 1138s # Error: 1138s # 1138s # /tmp/tmpan2yp7v2/tmpd90vnv5e.h: 1138s # typedef enum { 1138s # /*< private >*/ 1138s # ENUM_VALUE_PRIVATE, 1138s # /*< public >*/ 1138s # ENUM_VALUE_PUBLIC2, 1138s # } SomeEnumB; 1138s # 1138s # /tmp/tmpan2yp7v2/tmpukdnrqqb.template: 1138s # /*** BEGIN file-header ***/ 1138s # file-header 1138s # /*** END file-header ***/ 1138s # 1138s # /*** BEGIN file-production ***/ 1138s # file-production 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # /*** END file-production ***/ 1138s # 1138s # /*** BEGIN enumeration-production ***/ 1138s # enumeration-production 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END enumeration-production ***/ 1138s # 1138s # /*** BEGIN value-header ***/ 1138s # value-header 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-header ***/ 1138s # 1138s # /*** BEGIN value-production ***/ 1138s # value-production 1138s # VALUENAME: @VALUENAME@ 1138s # valuenick: @valuenick@ 1138s # valuenum: @valuenum@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-production ***/ 1138s # 1138s # /*** BEGIN value-tail ***/ 1138s # value-tail 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-tail ***/ 1138s # 1138s # /*** BEGIN comment ***/ 1138s # comment 1138s # comment: @comment@ 1138s # /*** END comment ***/ 1138s # 1138s # /*** BEGIN file-tail ***/ 1138s # file-tail 1138s # /*** END file-tail ***/ 1138s # 1138s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpan2yp7v2/tmpukdnrqqb.template', '/tmp/tmpan2yp7v2/tmpd90vnv5e.h'] 1138s # Return code: 0 1138s # Output: 1138s # comment 1138s # 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. 1138s # 1138s # 1138s # file-header 1138s # file-production 1138s # filename: /tmp/tmpan2yp7v2/tmpd90vnv5e.h 1138s # basename: tmpd90vnv5e.h 1138s # enumeration-production 1138s # EnumName: SomeEnumB 1138s # enum_name: some_enum_b 1138s # ENUMNAME: SOME_ENUM_B 1138s # ENUMSHORT: ENUM_B 1138s # ENUMPREFIX: SOME 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-header 1138s # EnumName: SomeEnumB 1138s # enum_name: some_enum_b 1138s # ENUMNAME: SOME_ENUM_B 1138s # ENUMSHORT: ENUM_B 1138s # ENUMPREFIX: SOME 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-production 1138s # VALUENAME: ENUM_VALUE_PUBLIC2 1138s # valuenick: public2 1138s # valuenum: 1 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-tail 1138s # EnumName: SomeEnumB 1138s # enum_name: some_enum_b 1138s # ENUMNAME: SOME_ENUM_B 1138s # ENUMSHORT: ENUM_B 1138s # ENUMPREFIX: SOME 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # file-tail 1138s # 1138s # comment 1138s # comment: Generated data ends here 1138s # Error: 1138s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmpiu80cg0m 1138s # rspfile: False 1138s # /tmp/tmpiu80cg0m/tmpu4qzhbn5.h: 1138s # typedef enum { 1138s # /*< private >*/ 1138s # ENUM_VALUE_PRIVATE = 5, 1138s # /*< public >*/ 1138s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1138s # } TestSymbolicEnum; 1138s # 1138s # /tmp/tmpiu80cg0m/tmpt24e03dc.template: 1138s # /*** BEGIN file-header ***/ 1138s # file-header 1138s # /*** END file-header ***/ 1138s # 1138s # /*** BEGIN file-production ***/ 1138s # file-production 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # /*** END file-production ***/ 1138s # 1138s # /*** BEGIN enumeration-production ***/ 1138s # enumeration-production 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END enumeration-production ***/ 1138s # 1138s # /*** BEGIN value-header ***/ 1138s # value-header 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-header ***/ 1138s # 1138s # /*** BEGIN value-production ***/ 1138s # value-production 1138s # VALUENAME: @VALUENAME@ 1138s # valuenick: @valuenick@ 1138s # valuenum: @valuenum@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-production ***/ 1138s # 1138s # /*** BEGIN value-tail ***/ 1138s # value-tail 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-tail ***/ 1138s # 1138s # /*** BEGIN comment ***/ 1138s # comment 1138s # comment: @comment@ 1138s # /*** END comment ***/ 1138s # 1138s # /*** BEGIN file-tail ***/ 1138s # file-tail 1138s # /*** END file-tail ***/ 1138s # 1138s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpiu80cg0m/tmpt24e03dc.template', '/tmp/tmpiu80cg0m/tmpu4qzhbn5.h'] 1138s # Return code: 0 1138s # Output: 1138s # comment 1138s # 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. 1138s # 1138s # 1138s # file-header 1138s # file-production 1138s # filename: /tmp/tmpiu80cg0m/tmpu4qzhbn5.h 1138s # basename: tmpu4qzhbn5.h 1138s # enumeration-production 1138s # EnumName: TestSymbolicEnum 1138s # enum_name: test_symbolic_enum 1138s # ENUMNAME: TEST_SYMBOLIC_ENUM 1138s # ENUMSHORT: SYMBOLIC_ENUM 1138s # ENUMPREFIX: TEST 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-header 1138s # EnumName: TestSymbolicEnum 1138s # enum_name: test_symbolic_enum 1138s # ENUMNAME: TEST_SYMBOLIC_ENUM 1138s # ENUMSHORT: SYMBOLIC_ENUM 1138s # ENUMPREFIX: TEST 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-production 1138s # VALUENAME: ENUM_VALUE_PUBLIC 1138s # valuenick: public 1138s # valuenum: 7 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-tail 1138s # EnumName: TestSymbolicEnum 1138s # enum_name: test_symbolic_enum 1138s # ENUMNAME: TEST_SYMBOLIC_ENUM 1138s # ENUMSHORT: SYMBOLIC_ENUM 1138s # ENUMPREFIX: TEST 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # file-tail 1138s # 1138s # comment 1138s # comment: Generated data ends here 1138s # Error: 1138s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmpjk95u4hb 1138s # rspfile: False 1138s # /tmp/tmpjk95u4hb/tmpukxnf3y1.template: 1138s # /*** BEGIN file-header ***/ 1138s # file-header 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # /*** END file-header ***/ 1138s # 1138s # /*** BEGIN comment ***/ 1138s # comment 1138s # comment: @comment@ 1138s # /*** END comment ***/ 1138s # 1138s # /*** BEGIN file-tail ***/ 1138s # file-tail 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # /*** END file-tail ***/ 1138s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpjk95u4hb/tmpukxnf3y1.template'] 1138s # Return code: 0 1138s # Output: 1138s # comment 1138s # 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. 1138s # 1138s # 1138s # file-header 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # file-tail 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # 1138s # comment 1138s # comment: Generated data ends here 1138s # Error: 1138s # WARNING: @filename@ used in file-header section. 1138s # WARNING: @basename@ used in file-header section. 1138s # WARNING: @filename@ used in file-tail section. 1138s # WARNING: @basename@ used in file-tail section. 1138s ok 11 __main__.TestMkenums.test_help 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmphub4xwsi 1138s # rspfile: False 1138s # Running: ['/usr/bin/glib-mkenums', '--help'] 1138s # Return code: 0 1138s # Output: 1138s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1138s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1138s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1138s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1138s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1138s # [--output OUTPUT] [--version] 1138s # [args ...] 1138s # 1138s # positional arguments: 1138s # args One or more input files, or a single argument 1138s # @rspfile_path pointing to a file that contains the 1138s # actual arguments 1138s # 1138s # options: 1138s # -h, --help show this help message and exit 1138s # --identifier-prefix IDPREFIX 1138s # Identifier prefix 1138s # --symbol-prefix SYMPREFIX 1138s # Symbol prefix 1138s # --fhead FHEAD Output file header 1138s # --ftail FTAIL Output file footer 1138s # --fprod FPROD Put out TEXT every time a new input file is being 1138s # processed. 1138s # --eprod EPROD Per enum text, produced prior to value iterations 1138s # --vhead VHEAD Value header, produced before iterating over enum 1138s # values 1138s # --vprod VPROD Value text, produced for each enum value. 1138s # --vtail VTAIL Value tail, produced after iterating over enum values 1138s # --comments COMMENT_TMPL 1138s # Comment structure 1138s # --template TEMPLATE Template file 1138s # --output OUTPUT 1138s # --version, -v Print version information 1138s # 1138s # Production text substitutions: 1138s # @EnumName@ PrefixTheXEnum 1138s # @enum_name@ prefix_the_xenum 1138s # @ENUMNAME@ PREFIX_THE_XENUM 1138s # @ENUMSHORT@ THE_XENUM 1138s # @ENUMPREFIX@ PREFIX 1138s # @enumsince@ the user-provided since value given 1138s # @VALUENAME@ PREFIX_THE_XVALUE 1138s # @valuenick@ the-xvalue 1138s # @valuenum@ the integer value (limited support, Since: 2.26) 1138s # @type@ either enum or flags 1138s # @Type@ either Enum or Flags 1138s # @TYPE@ either ENUM or FLAGS 1138s # @filename@ name of current input file 1138s # @basename@ base name of the current input file (Since: 2.22) 1138s # Error: 1138s ok 12 __main__.TestMkenums.test_no_args 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmppng3wg16 1138s # rspfile: False 1138s # Running: ['/usr/bin/glib-mkenums'] 1138s # Return code: 0 1138s # Output: 1138s # /* 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. */ 1138s # 1138s # 1138s # /* Generated data ends here */ 1138s # Error: 1138s ok 13 __main__.TestMkenums.test_no_headers 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmp32cw_821 1138s # rspfile: False 1138s # /tmp/tmp32cw_821/tmppdycwg_n.template: 1138s # /*** BEGIN file-header ***/ 1138s # file-header 1138s # /*** END file-header ***/ 1138s # 1138s # /*** BEGIN file-production ***/ 1138s # file-production 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # /*** END file-production ***/ 1138s # 1138s # /*** BEGIN enumeration-production ***/ 1138s # enumeration-production 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END enumeration-production ***/ 1138s # 1138s # /*** BEGIN value-header ***/ 1138s # value-header 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-header ***/ 1138s # 1138s # /*** BEGIN value-production ***/ 1138s # value-production 1138s # VALUENAME: @VALUENAME@ 1138s # valuenick: @valuenick@ 1138s # valuenum: @valuenum@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-production ***/ 1138s # 1138s # /*** BEGIN value-tail ***/ 1138s # value-tail 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-tail ***/ 1138s # 1138s # /*** BEGIN comment ***/ 1138s # comment 1138s # comment: @comment@ 1138s # /*** END comment ***/ 1138s # 1138s # /*** BEGIN file-tail ***/ 1138s # file-tail 1138s # /*** END file-tail ***/ 1138s # 1138s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp32cw_821/tmppdycwg_n.template'] 1138s # Return code: 0 1138s # Output: 1138s # comment 1138s # 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. 1138s # 1138s # 1138s # file-header 1138s # file-tail 1138s # 1138s # comment 1138s # comment: Generated data ends here 1138s # Error: 1138s ok 14 __main__.TestMkenums.test_no_nick 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmpt8q5dgby 1138s # rspfile: False 1138s # /tmp/tmpt8q5dgby/tmpt41e5_om.h: 1138s # typedef enum { 1138s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1138s # } GeglSamplerType; 1138s # 1138s # /tmp/tmpt8q5dgby/tmpz8n37742.template: 1138s # /*** BEGIN file-header ***/ 1138s # file-header 1138s # /*** END file-header ***/ 1138s # 1138s # /*** BEGIN file-production ***/ 1138s # file-production 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # /*** END file-production ***/ 1138s # 1138s # /*** BEGIN enumeration-production ***/ 1138s # enumeration-production 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END enumeration-production ***/ 1138s # 1138s # /*** BEGIN value-header ***/ 1138s # value-header 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-header ***/ 1138s # 1138s # /*** BEGIN value-production ***/ 1138s # value-production 1138s # VALUENAME: @VALUENAME@ 1138s # valuenick: @valuenick@ 1138s # valuenum: @valuenum@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-production ***/ 1138s # 1138s # /*** BEGIN value-tail ***/ 1138s # value-tail 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-tail ***/ 1138s # 1138s # /*** BEGIN comment ***/ 1138s # comment 1138s # comment: @comment@ 1138s # /*** END comment ***/ 1138s # 1138s # /*** BEGIN file-tail ***/ 1138s # file-tail 1138s # /*** END file-tail ***/ 1138s # 1138s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpt8q5dgby/tmpz8n37742.template', '/tmp/tmpt8q5dgby/tmpt41e5_om.h'] 1138s # Return code: 0 1138s # Output: 1138s # comment 1138s # 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. 1138s # 1138s # 1138s # file-header 1138s # file-production 1138s # filename: /tmp/tmpt8q5dgby/tmpt41e5_om.h 1138s # basename: tmpt41e5_om.h 1138s # enumeration-production 1138s # EnumName: GeglSamplerType 1138s # enum_name: gegl_sampler_type 1138s # ENUMNAME: GEGL_SAMPLER_TYPE 1138s # ENUMSHORT: SAMPLER_TYPE 1138s # ENUMPREFIX: GEGL 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-header 1138s # EnumName: GeglSamplerType 1138s # enum_name: gegl_sampler_type 1138s # ENUMNAME: GEGL_SAMPLER_TYPE 1138s # ENUMSHORT: SAMPLER_TYPE 1138s # ENUMPREFIX: GEGL 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-production 1138s # VALUENAME: GEGL_SAMPLER_NEAREST 1138s # valuenick: nearest 1138s # valuenum: 0 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-tail 1138s # EnumName: GeglSamplerType 1138s # enum_name: gegl_sampler_type 1138s # ENUMNAME: GEGL_SAMPLER_TYPE 1138s # ENUMSHORT: SAMPLER_TYPE 1138s # ENUMPREFIX: GEGL 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # file-tail 1138s # 1138s # comment 1138s # comment: Generated data ends here 1138s # Error: 1138s ok 15 __main__.TestMkenums.test_non_utf8_encoding 1138s # glib-mkenums: /usr/bin/glib-mkenums 1138s # tmpdir: /tmp/tmpu7xnrefu 1138s # rspfile: False 1138s # /tmp/tmpu7xnrefu/tmpxwrp11es.h: 1138s # /* Copyright © La Peña */ 1138s # typedef enum { 1138s # ENUM_VALUE 1138s # } SomeEnumIdentifier; 1138s # 1138s # /tmp/tmpu7xnrefu/tmpv16__80k.template: 1138s # /*** BEGIN file-header ***/ 1138s # file-header 1138s # /*** END file-header ***/ 1138s # 1138s # /*** BEGIN file-production ***/ 1138s # file-production 1138s # filename: @filename@ 1138s # basename: @basename@ 1138s # /*** END file-production ***/ 1138s # 1138s # /*** BEGIN enumeration-production ***/ 1138s # enumeration-production 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END enumeration-production ***/ 1138s # 1138s # /*** BEGIN value-header ***/ 1138s # value-header 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-header ***/ 1138s # 1138s # /*** BEGIN value-production ***/ 1138s # value-production 1138s # VALUENAME: @VALUENAME@ 1138s # valuenick: @valuenick@ 1138s # valuenum: @valuenum@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-production ***/ 1138s # 1138s # /*** BEGIN value-tail ***/ 1138s # value-tail 1138s # EnumName: @EnumName@ 1138s # enum_name: @enum_name@ 1138s # ENUMNAME: @ENUMNAME@ 1138s # ENUMSHORT: @ENUMSHORT@ 1138s # ENUMPREFIX: @ENUMPREFIX@ 1138s # enumsince: @enumsince@ 1138s # type: @type@ 1138s # Type: @Type@ 1138s # TYPE: @TYPE@ 1138s # /*** END value-tail ***/ 1138s # 1138s # /*** BEGIN comment ***/ 1138s # comment 1138s # comment: @comment@ 1138s # /*** END comment ***/ 1138s # 1138s # /*** BEGIN file-tail ***/ 1138s # file-tail 1138s # /*** END file-tail ***/ 1138s # 1138s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpu7xnrefu/tmpv16__80k.template', '/tmp/tmpu7xnrefu/tmpxwrp11es.h'] 1138s # Return code: 0 1138s # Output: 1138s # comment 1138s # 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. 1138s # 1138s # 1138s # file-header 1138s # file-production 1138s # filename: /tmp/tmpu7xnrefu/tmpxwrp11es.h 1138s # basename: tmpxwrp11es.h 1138s # enumeration-production 1138s # EnumName: SomeEnumIdentifier 1138s # enum_name: some_enum_identifier 1138s # ENUMNAME: SOME_ENUM_IDENTIFIER 1138s # ENUMSHORT: ENUM_IDENTIFIER 1138s # ENUMPREFIX: SOME 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-header 1138s # EnumName: SomeEnumIdentifier 1138s # enum_name: some_enum_identifier 1138s # ENUMNAME: SOME_ENUM_IDENTIFIER 1138s # ENUMSHORT: ENUM_IDENTIFIER 1138s # ENUMPREFIX: SOME 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-production 1138s # VALUENAME: ENUM_VALUE 1138s # valuenick: value 1138s # valuenum: 0 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # value-tail 1138s # EnumName: SomeEnumIdentifier 1138s # enum_name: some_enum_identifier 1138s # ENUMNAME: SOME_ENUM_IDENTIFIER 1138s # ENUMSHORT: ENUM_IDENTIFIER 1138s # ENUMPREFIX: SOME 1138s # enumsince: 1138s # type: enum 1138s # Type: Enum 1138s # TYPE: ENUM 1138s # file-tail 1138s # 1138s # comment 1138s # comment: Generated data ends here 1138s # Error: 1138s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1138s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1139s ok 16 __main__.TestMkenums.test_reproducible 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmp210rvigy 1139s # rspfile: False 1139s # /tmp/tmp210rvigy/tmpx0e64xyc.template: template 1139s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp210rvigy/tmpx0e64xyc.template', '/tmp/tmp210rvigy/tmpqk92dlhk1.h', '/tmp/tmp210rvigy/tmp9clil3je2.h'] 1139s # Return code: 0 1139s # Output: 1139s # /* 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. */ 1139s # 1139s # 1139s # /* Generated data ends here */ 1139s # Error: 1139s # 1139s # /tmp/tmp210rvigy/tmpduzt6pyt.template: template 1139s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp210rvigy/tmpduzt6pyt.template', '/tmp/tmp210rvigy/tmp9clil3je2.h', '/tmp/tmp210rvigy/tmpqk92dlhk1.h'] 1139s # Return code: 0 1139s # Output: 1139s # /* 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. */ 1139s # 1139s # 1139s # /* Generated data ends here */ 1139s # Error: 1139s ok 17 __main__.TestMkenums.test_since 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmpzlty2rin 1139s # rspfile: False 1139s # /tmp/tmpzlty2rin/tmpccxdno31.h: 1139s # typedef enum { /*< since=1.0 >*/ 1139s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1139s # } QmiWmsMessageProtocol; 1139s # 1139s # /tmp/tmpzlty2rin/tmpaojcgv77.template: 1139s # /*** BEGIN file-header ***/ 1139s # file-header 1139s # /*** END file-header ***/ 1139s # 1139s # /*** BEGIN file-production ***/ 1139s # file-production 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-production ***/ 1139s # 1139s # /*** BEGIN enumeration-production ***/ 1139s # enumeration-production 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END enumeration-production ***/ 1139s # 1139s # /*** BEGIN value-header ***/ 1139s # value-header 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-header ***/ 1139s # 1139s # /*** BEGIN value-production ***/ 1139s # value-production 1139s # VALUENAME: @VALUENAME@ 1139s # valuenick: @valuenick@ 1139s # valuenum: @valuenum@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-production ***/ 1139s # 1139s # /*** BEGIN value-tail ***/ 1139s # value-tail 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-tail ***/ 1139s # 1139s # /*** BEGIN comment ***/ 1139s # comment 1139s # comment: @comment@ 1139s # /*** END comment ***/ 1139s # 1139s # /*** BEGIN file-tail ***/ 1139s # file-tail 1139s # /*** END file-tail ***/ 1139s # 1139s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpzlty2rin/tmpaojcgv77.template', '/tmp/tmpzlty2rin/tmpccxdno31.h'] 1139s # Return code: 0 1139s # Output: 1139s # comment 1139s # 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. 1139s # 1139s # 1139s # file-header 1139s # file-production 1139s # filename: /tmp/tmpzlty2rin/tmpccxdno31.h 1139s # basename: tmpccxdno31.h 1139s # enumeration-production 1139s # EnumName: QmiWmsMessageProtocol 1139s # enum_name: qmi_wms_message_protocol 1139s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1139s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1139s # ENUMPREFIX: QMI 1139s # enumsince: 1.0 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-header 1139s # EnumName: QmiWmsMessageProtocol 1139s # enum_name: qmi_wms_message_protocol 1139s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1139s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1139s # ENUMPREFIX: QMI 1139s # enumsince: 1.0 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-production 1139s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1139s # valuenick: cdma 1139s # valuenum: 0 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-tail 1139s # EnumName: QmiWmsMessageProtocol 1139s # enum_name: qmi_wms_message_protocol 1139s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1139s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1139s # ENUMPREFIX: QMI 1139s # enumsince: 1.0 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # file-tail 1139s # 1139s # comment 1139s # comment: Generated data ends here 1139s # Error: 1139s ok 18 __main__.TestMkenums.test_with_double_quotes 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmp2qwsw7fi 1139s # rspfile: False 1139s # /tmp/tmp2qwsw7fi/tmp8o3e5h84.h: 1139s # typedef enum { 1139s # FOO_VALUE /*< nick="eek, a comma" >*/ 1139s # } Foo; 1139s # 1139s # /tmp/tmp2qwsw7fi/tmpm3n21q2l.template: 1139s # /*** BEGIN file-header ***/ 1139s # file-header 1139s # /*** END file-header ***/ 1139s # 1139s # /*** BEGIN file-production ***/ 1139s # file-production 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-production ***/ 1139s # 1139s # /*** BEGIN enumeration-production ***/ 1139s # enumeration-production 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END enumeration-production ***/ 1139s # 1139s # /*** BEGIN value-header ***/ 1139s # value-header 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-header ***/ 1139s # 1139s # /*** BEGIN value-production ***/ 1139s # value-production 1139s # VALUENAME: @VALUENAME@ 1139s # valuenick: @valuenick@ 1139s # valuenum: @valuenum@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-production ***/ 1139s # 1139s # /*** BEGIN value-tail ***/ 1139s # value-tail 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-tail ***/ 1139s # 1139s # /*** BEGIN comment ***/ 1139s # comment 1139s # comment: @comment@ 1139s # /*** END comment ***/ 1139s # 1139s # /*** BEGIN file-tail ***/ 1139s # file-tail 1139s # /*** END file-tail ***/ 1139s # 1139s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp2qwsw7fi/tmpm3n21q2l.template', '/tmp/tmp2qwsw7fi/tmp8o3e5h84.h'] 1139s # Return code: 0 1139s # Output: 1139s # comment 1139s # 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. 1139s # 1139s # 1139s # file-header 1139s # file-production 1139s # filename: /tmp/tmp2qwsw7fi/tmp8o3e5h84.h 1139s # basename: tmp8o3e5h84.h 1139s # enumeration-production 1139s # EnumName: Foo 1139s # enum_name: foo_ 1139s # ENUMNAME: FOO_ 1139s # ENUMSHORT: 1139s # ENUMPREFIX: FOO 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-header 1139s # EnumName: Foo 1139s # enum_name: foo_ 1139s # ENUMNAME: FOO_ 1139s # ENUMSHORT: 1139s # ENUMPREFIX: FOO 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-production 1139s # VALUENAME: FOO_VALUE 1139s # valuenick: eek, a comma 1139s # valuenum: 0 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-tail 1139s # EnumName: Foo 1139s # enum_name: foo_ 1139s # ENUMNAME: FOO_ 1139s # ENUMSHORT: 1139s # ENUMPREFIX: FOO 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # file-tail 1139s # 1139s # comment 1139s # comment: Generated data ends here 1139s # Error: 1139s ok 19 __main__.TestRspMkenums.test_available_in 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmpo3azpz7z 1139s # rspfile: True 1139s # /tmp/tmpo3azpz7z/tmp_28zbmwr.h: 1139s # typedef enum { 1139s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1139s # } GDBusServerFlags; 1139s # 1139s # /tmp/tmpo3azpz7z/tmp6dw2vflv.template: 1139s # /*** BEGIN file-header ***/ 1139s # file-header 1139s # /*** END file-header ***/ 1139s # 1139s # /*** BEGIN file-production ***/ 1139s # file-production 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-production ***/ 1139s # 1139s # /*** BEGIN enumeration-production ***/ 1139s # enumeration-production 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END enumeration-production ***/ 1139s # 1139s # /*** BEGIN value-header ***/ 1139s # value-header 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-header ***/ 1139s # 1139s # /*** BEGIN value-production ***/ 1139s # value-production 1139s # VALUENAME: @VALUENAME@ 1139s # valuenick: @valuenick@ 1139s # valuenum: @valuenum@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-production ***/ 1139s # 1139s # /*** BEGIN value-tail ***/ 1139s # value-tail 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-tail ***/ 1139s # 1139s # /*** BEGIN comment ***/ 1139s # comment 1139s # comment: @comment@ 1139s # /*** END comment ***/ 1139s # 1139s # /*** BEGIN file-tail ***/ 1139s # file-tail 1139s # /*** END file-tail ***/ 1139s # 1139s # Response file contains: --template /tmp/tmpo3azpz7z/tmp6dw2vflv.template /tmp/tmpo3azpz7z/tmp_28zbmwr.h 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpo3azpz7z/tmpmdcclw2z'] 1139s # Return code: 0 1139s # Output: 1139s # comment 1139s # 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. 1139s # 1139s # 1139s # file-header 1139s # file-production 1139s # filename: /tmp/tmpo3azpz7z/tmp_28zbmwr.h 1139s # basename: tmp_28zbmwr.h 1139s # enumeration-production 1139s # EnumName: GDBusServerFlags 1139s # enum_name: g_dbus_server_flags 1139s # ENUMNAME: G_DBUS_SERVER_FLAGS 1139s # ENUMSHORT: DBUS_SERVER_FLAGS 1139s # ENUMPREFIX: G 1139s # enumsince: 1139s # type: flags 1139s # Type: Flags 1139s # TYPE: FLAGS 1139s # value-header 1139s # EnumName: GDBusServerFlags 1139s # enum_name: g_dbus_server_flags 1139s # ENUMNAME: G_DBUS_SERVER_FLAGS 1139s # ENUMSHORT: DBUS_SERVER_FLAGS 1139s # ENUMPREFIX: G 1139s # enumsince: 1139s # type: flags 1139s # Type: Flags 1139s # TYPE: FLAGS 1139s # value-production 1139s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1139s # valuenick: user 1139s # valuenum: 4 1139s # type: flags 1139s # Type: Flags 1139s # TYPE: FLAGS 1139s # value-tail 1139s # EnumName: GDBusServerFlags 1139s # enum_name: g_dbus_server_flags 1139s # ENUMNAME: G_DBUS_SERVER_FLAGS 1139s # ENUMSHORT: DBUS_SERVER_FLAGS 1139s # ENUMPREFIX: G 1139s # enumsince: 1139s # type: flags 1139s # Type: Flags 1139s # TYPE: FLAGS 1139s # file-tail 1139s # 1139s # comment 1139s # comment: Generated data ends here 1139s # Error: 1139s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmpbeq6a98h 1139s # rspfile: True 1139s # /tmp/tmpbeq6a98h/tmpoo2gs137.h: 1139s # typedef enum { 1139s # ENUM_VALUE_WITH_COMMA = ',', 1139s # } TestCommaEnum; 1139s # 1139s # /tmp/tmpbeq6a98h/tmpit20etk1.template: 1139s # /*** BEGIN file-header ***/ 1139s # file-header 1139s # /*** END file-header ***/ 1139s # 1139s # /*** BEGIN file-production ***/ 1139s # file-production 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-production ***/ 1139s # 1139s # /*** BEGIN enumeration-production ***/ 1139s # enumeration-production 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END enumeration-production ***/ 1139s # 1139s # /*** BEGIN value-header ***/ 1139s # value-header 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-header ***/ 1139s # 1139s # /*** BEGIN value-production ***/ 1139s # value-production 1139s # VALUENAME: @VALUENAME@ 1139s # valuenick: @valuenick@ 1139s # valuenum: @valuenum@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-production ***/ 1139s # 1139s # /*** BEGIN value-tail ***/ 1139s # value-tail 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-tail ***/ 1139s # 1139s # /*** BEGIN comment ***/ 1139s # comment 1139s # comment: @comment@ 1139s # /*** END comment ***/ 1139s # 1139s # /*** BEGIN file-tail ***/ 1139s # file-tail 1139s # /*** END file-tail ***/ 1139s # 1139s # Response file contains: --template /tmp/tmpbeq6a98h/tmpit20etk1.template /tmp/tmpbeq6a98h/tmpoo2gs137.h 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpbeq6a98h/tmp0nk0rayz'] 1139s # Return code: 0 1139s # Output: 1139s # comment 1139s # 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. 1139s # 1139s # 1139s # file-header 1139s # file-production 1139s # filename: /tmp/tmpbeq6a98h/tmpoo2gs137.h 1139s # basename: tmpoo2gs137.h 1139s # enumeration-production 1139s # EnumName: TestCommaEnum 1139s # enum_name: test_comma_enum 1139s # ENUMNAME: TEST_COMMA_ENUM 1139s # ENUMSHORT: COMMA_ENUM 1139s # ENUMPREFIX: TEST 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-header 1139s # EnumName: TestCommaEnum 1139s # enum_name: test_comma_enum 1139s # ENUMNAME: TEST_COMMA_ENUM 1139s # ENUMSHORT: COMMA_ENUM 1139s # ENUMPREFIX: TEST 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-production 1139s # VALUENAME: ENUM_VALUE_WITH_COMMA 1139s # valuenick: comma 1139s # valuenum: 44 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-tail 1139s # EnumName: TestCommaEnum 1139s # enum_name: test_comma_enum 1139s # ENUMNAME: TEST_COMMA_ENUM 1139s # ENUMSHORT: COMMA_ENUM 1139s # ENUMPREFIX: TEST 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # file-tail 1139s # 1139s # comment 1139s # comment: Generated data ends here 1139s # Error: 1139s ok 21 __main__.TestRspMkenums.test_deprecated_in 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmpxyvqtrri 1139s # rspfile: True 1139s # /tmp/tmpxyvqtrri/tmpg3iywhf2.h: 1139s # typedef enum { 1139s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1139s # } GDBusServerFlags; 1139s # 1139s # /tmp/tmpxyvqtrri/tmprsn2fh60.template: 1139s # /*** BEGIN file-header ***/ 1139s # file-header 1139s # /*** END file-header ***/ 1139s # 1139s # /*** BEGIN file-production ***/ 1139s # file-production 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-production ***/ 1139s # 1139s # /*** BEGIN enumeration-production ***/ 1139s # enumeration-production 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END enumeration-production ***/ 1139s # 1139s # /*** BEGIN value-header ***/ 1139s # value-header 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-header ***/ 1139s # 1139s # /*** BEGIN value-production ***/ 1139s # value-production 1139s # VALUENAME: @VALUENAME@ 1139s # valuenick: @valuenick@ 1139s # valuenum: @valuenum@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-production ***/ 1139s # 1139s # /*** BEGIN value-tail ***/ 1139s # value-tail 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-tail ***/ 1139s # 1139s # /*** BEGIN comment ***/ 1139s # comment 1139s # comment: @comment@ 1139s # /*** END comment ***/ 1139s # 1139s # /*** BEGIN file-tail ***/ 1139s # file-tail 1139s # /*** END file-tail ***/ 1139s # 1139s # Response file contains: --template /tmp/tmpxyvqtrri/tmprsn2fh60.template /tmp/tmpxyvqtrri/tmpg3iywhf2.h 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpxyvqtrri/tmpm06uiiew'] 1139s # Return code: 0 1139s # Output: 1139s # comment 1139s # 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. 1139s # 1139s # 1139s # file-header 1139s # file-production 1139s # filename: /tmp/tmpxyvqtrri/tmpg3iywhf2.h 1139s # basename: tmpg3iywhf2.h 1139s # enumeration-production 1139s # EnumName: GDBusServerFlags 1139s # enum_name: g_dbus_server_flags 1139s # ENUMNAME: G_DBUS_SERVER_FLAGS 1139s # ENUMSHORT: DBUS_SERVER_FLAGS 1139s # ENUMPREFIX: G 1139s # enumsince: 1139s # type: flags 1139s # Type: Flags 1139s # TYPE: FLAGS 1139s # value-header 1139s # EnumName: GDBusServerFlags 1139s # enum_name: g_dbus_server_flags 1139s # ENUMNAME: G_DBUS_SERVER_FLAGS 1139s # ENUMSHORT: DBUS_SERVER_FLAGS 1139s # ENUMPREFIX: G 1139s # enumsince: 1139s # type: flags 1139s # Type: Flags 1139s # TYPE: FLAGS 1139s # value-production 1139s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1139s # valuenick: user 1139s # valuenum: 4 1139s # type: flags 1139s # Type: Flags 1139s # TYPE: FLAGS 1139s # value-tail 1139s # EnumName: GDBusServerFlags 1139s # enum_name: g_dbus_server_flags 1139s # ENUMNAME: G_DBUS_SERVER_FLAGS 1139s # ENUMSHORT: DBUS_SERVER_FLAGS 1139s # ENUMPREFIX: G 1139s # enumsince: 1139s # type: flags 1139s # Type: Flags 1139s # TYPE: FLAGS 1139s # file-tail 1139s # 1139s # comment 1139s # comment: Generated data ends here 1139s # Error: 1139s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmpx22i2d_j 1139s # rspfile: True 1139s # /tmp/tmpx22i2d_j/tmpjtkaus2p.h: 1139s # typedef enum { 1139s # 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) 1139s # } GDBusServerFlags; 1139s # 1139s # /tmp/tmpx22i2d_j/tmpxnnssns8.template: 1139s # /*** BEGIN file-header ***/ 1139s # file-header 1139s # /*** END file-header ***/ 1139s # 1139s # /*** BEGIN file-production ***/ 1139s # file-production 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-production ***/ 1139s # 1139s # /*** BEGIN enumeration-production ***/ 1139s # enumeration-production 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END enumeration-production ***/ 1139s # 1139s # /*** BEGIN value-header ***/ 1139s # value-header 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-header ***/ 1139s # 1139s # /*** BEGIN value-production ***/ 1139s # value-production 1139s # VALUENAME: @VALUENAME@ 1139s # valuenick: @valuenick@ 1139s # valuenum: @valuenum@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-production ***/ 1139s # 1139s # /*** BEGIN value-tail ***/ 1139s # value-tail 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-tail ***/ 1139s # 1139s # /*** BEGIN comment ***/ 1139s # comment 1139s # comment: @comment@ 1139s # /*** END comment ***/ 1139s # 1139s # /*** BEGIN file-tail ***/ 1139s # file-tail 1139s # /*** END file-tail ***/ 1139s # 1139s # Response file contains: --template /tmp/tmpx22i2d_j/tmpxnnssns8.template /tmp/tmpx22i2d_j/tmpjtkaus2p.h 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpx22i2d_j/tmp94imcsfg'] 1139s # Return code: 0 1139s # Output: 1139s # comment 1139s # 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. 1139s # 1139s # 1139s # file-header 1139s # file-production 1139s # filename: /tmp/tmpx22i2d_j/tmpjtkaus2p.h 1139s # basename: tmpjtkaus2p.h 1139s # enumeration-production 1139s # EnumName: GDBusServerFlags 1139s # enum_name: g_dbus_server_flags 1139s # ENUMNAME: G_DBUS_SERVER_FLAGS 1139s # ENUMSHORT: DBUS_SERVER_FLAGS 1139s # ENUMPREFIX: G 1139s # enumsince: 1139s # type: flags 1139s # Type: Flags 1139s # TYPE: FLAGS 1139s # value-header 1139s # EnumName: GDBusServerFlags 1139s # enum_name: g_dbus_server_flags 1139s # ENUMNAME: G_DBUS_SERVER_FLAGS 1139s # ENUMSHORT: DBUS_SERVER_FLAGS 1139s # ENUMPREFIX: G 1139s # enumsince: 1139s # type: flags 1139s # Type: Flags 1139s # TYPE: FLAGS 1139s # value-production 1139s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1139s # valuenick: user 1139s # valuenum: 4 1139s # type: flags 1139s # Type: Flags 1139s # TYPE: FLAGS 1139s # value-tail 1139s # EnumName: GDBusServerFlags 1139s # enum_name: g_dbus_server_flags 1139s # ENUMNAME: G_DBUS_SERVER_FLAGS 1139s # ENUMSHORT: DBUS_SERVER_FLAGS 1139s # ENUMPREFIX: G 1139s # enumsince: 1139s # type: flags 1139s # Type: Flags 1139s # TYPE: FLAGS 1139s # file-tail 1139s # 1139s # comment 1139s # comment: Generated data ends here 1139s # Error: 1139s ok 23 __main__.TestRspMkenums.test_empty_header 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmpqb21r2z3 1139s # rspfile: True 1139s # /tmp/tmpqb21r2z3/tmpmwxbzma9.h: 1139s # /tmp/tmpqb21r2z3/tmpq6msh2_r.template: 1139s # /*** BEGIN file-header ***/ 1139s # file-header 1139s # /*** END file-header ***/ 1139s # 1139s # /*** BEGIN file-production ***/ 1139s # file-production 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-production ***/ 1139s # 1139s # /*** BEGIN enumeration-production ***/ 1139s # enumeration-production 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END enumeration-production ***/ 1139s # 1139s # /*** BEGIN value-header ***/ 1139s # value-header 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-header ***/ 1139s # 1139s # /*** BEGIN value-production ***/ 1139s # value-production 1139s # VALUENAME: @VALUENAME@ 1139s # valuenick: @valuenick@ 1139s # valuenum: @valuenum@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-production ***/ 1139s # 1139s # /*** BEGIN value-tail ***/ 1139s # value-tail 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-tail ***/ 1139s # 1139s # /*** BEGIN comment ***/ 1139s # comment 1139s # comment: @comment@ 1139s # /*** END comment ***/ 1139s # 1139s # /*** BEGIN file-tail ***/ 1139s # file-tail 1139s # /*** END file-tail ***/ 1139s # 1139s # Response file contains: --template /tmp/tmpqb21r2z3/tmpq6msh2_r.template /tmp/tmpqb21r2z3/tmpmwxbzma9.h 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpqb21r2z3/tmp8wcxddq9'] 1139s # Return code: 0 1139s # Output: 1139s # comment 1139s # 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. 1139s # 1139s # 1139s # file-header 1139s # file-tail 1139s # 1139s # comment 1139s # comment: Generated data ends here 1139s # Error: 1139s ok 24 __main__.TestRspMkenums.test_empty_template 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmploi0pwow 1139s # rspfile: True 1139s # /tmp/tmploi0pwow/tmpdjd0rvdm.template: 1139s # Response file contains: --template /tmp/tmploi0pwow/tmpdjd0rvdm.template 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmploi0pwow/tmpmdm9t2u6'] 1139s # Return code: 0 1139s # Output: 1139s # /* 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. */ 1139s # 1139s # 1139s # /* Generated data ends here */ 1139s # Error: 1139s ok 25 __main__.TestRspMkenums.test_enum_name 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmp0zcb7njl 1139s # rspfile: True 1139s # /tmp/tmp0zcb7njl/tmp6zf1i5vy.h: 1139s # typedef enum _SomeEnumIdentifier { 1139s # ENUM_VALUE 1139s # } SomeEnumIdentifier; 1139s # 1139s # /tmp/tmp0zcb7njl/tmpx76u7won.template: 1139s # /*** BEGIN file-header ***/ 1139s # file-header 1139s # /*** END file-header ***/ 1139s # 1139s # /*** BEGIN file-production ***/ 1139s # file-production 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-production ***/ 1139s # 1139s # /*** BEGIN enumeration-production ***/ 1139s # enumeration-production 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END enumeration-production ***/ 1139s # 1139s # /*** BEGIN value-header ***/ 1139s # value-header 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-header ***/ 1139s # 1139s # /*** BEGIN value-production ***/ 1139s # value-production 1139s # VALUENAME: @VALUENAME@ 1139s # valuenick: @valuenick@ 1139s # valuenum: @valuenum@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-production ***/ 1139s # 1139s # /*** BEGIN value-tail ***/ 1139s # value-tail 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-tail ***/ 1139s # 1139s # /*** BEGIN comment ***/ 1139s # comment 1139s # comment: @comment@ 1139s # /*** END comment ***/ 1139s # 1139s # /*** BEGIN file-tail ***/ 1139s # file-tail 1139s # /*** END file-tail ***/ 1139s # 1139s # Response file contains: --template /tmp/tmp0zcb7njl/tmpx76u7won.template /tmp/tmp0zcb7njl/tmp6zf1i5vy.h 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp0zcb7njl/tmppm29mcbw'] 1139s # Return code: 0 1139s # Output: 1139s # comment 1139s # 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. 1139s # 1139s # 1139s # file-header 1139s # file-production 1139s # filename: /tmp/tmp0zcb7njl/tmp6zf1i5vy.h 1139s # basename: tmp6zf1i5vy.h 1139s # enumeration-production 1139s # EnumName: SomeEnumIdentifier 1139s # enum_name: some_enum_identifier 1139s # ENUMNAME: SOME_ENUM_IDENTIFIER 1139s # ENUMSHORT: ENUM_IDENTIFIER 1139s # ENUMPREFIX: SOME 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-header 1139s # EnumName: SomeEnumIdentifier 1139s # enum_name: some_enum_identifier 1139s # ENUMNAME: SOME_ENUM_IDENTIFIER 1139s # ENUMSHORT: ENUM_IDENTIFIER 1139s # ENUMPREFIX: SOME 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-production 1139s # VALUENAME: ENUM_VALUE 1139s # valuenick: value 1139s # valuenum: 0 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-tail 1139s # EnumName: SomeEnumIdentifier 1139s # enum_name: some_enum_identifier 1139s # ENUMNAME: SOME_ENUM_IDENTIFIER 1139s # ENUMSHORT: ENUM_IDENTIFIER 1139s # ENUMPREFIX: SOME 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # file-tail 1139s # 1139s # comment 1139s # comment: Generated data ends here 1139s # Error: 1139s ok 26 __main__.TestRspMkenums.test_enum_private_public 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmpd6mw76yl 1139s # rspfile: True 1139s # /tmp/tmpd6mw76yl/tmpqeu1ih3z.h: 1139s # typedef enum { 1139s # ENUM_VALUE_PUBLIC1, 1139s # /*< private >*/ 1139s # ENUM_VALUE_PRIVATE, 1139s # } SomeEnumA 1139s # 1139s # /tmp/tmpd6mw76yl/tmpvbk869mf.template: 1139s # /*** BEGIN file-header ***/ 1139s # file-header 1139s # /*** END file-header ***/ 1139s # 1139s # /*** BEGIN file-production ***/ 1139s # file-production 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-production ***/ 1139s # 1139s # /*** BEGIN enumeration-production ***/ 1139s # enumeration-production 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END enumeration-production ***/ 1139s # 1139s # /*** BEGIN value-header ***/ 1139s # value-header 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-header ***/ 1139s # 1139s # /*** BEGIN value-production ***/ 1139s # value-production 1139s # VALUENAME: @VALUENAME@ 1139s # valuenick: @valuenick@ 1139s # valuenum: @valuenum@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-production ***/ 1139s # 1139s # /*** BEGIN value-tail ***/ 1139s # value-tail 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-tail ***/ 1139s # 1139s # /*** BEGIN comment ***/ 1139s # comment 1139s # comment: @comment@ 1139s # /*** END comment ***/ 1139s # 1139s # /*** BEGIN file-tail ***/ 1139s # file-tail 1139s # /*** END file-tail ***/ 1139s # 1139s # Response file contains: --template /tmp/tmpd6mw76yl/tmpvbk869mf.template /tmp/tmpd6mw76yl/tmpqeu1ih3z.h 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpd6mw76yl/tmpw9pv53rm'] 1139s # Return code: 0 1139s # Output: 1139s # comment 1139s # 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. 1139s # 1139s # 1139s # file-header 1139s # file-production 1139s # filename: /tmp/tmpd6mw76yl/tmpqeu1ih3z.h 1139s # basename: tmpqeu1ih3z.h 1139s # enumeration-production 1139s # EnumName: SomeEnumA 1139s # enum_name: some_enum_a 1139s # ENUMNAME: SOME_ENUM_A 1139s # ENUMSHORT: ENUM_A 1139s # ENUMPREFIX: SOME 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-header 1139s # EnumName: SomeEnumA 1139s # enum_name: some_enum_a 1139s # ENUMNAME: SOME_ENUM_A 1139s # ENUMSHORT: ENUM_A 1139s # ENUMPREFIX: SOME 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-production 1139s # VALUENAME: ENUM_VALUE_PUBLIC1 1139s # valuenick: public1 1139s # valuenum: 0 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-tail 1139s # EnumName: SomeEnumA 1139s # enum_name: some_enum_a 1139s # ENUMNAME: SOME_ENUM_A 1139s # ENUMSHORT: ENUM_A 1139s # ENUMPREFIX: SOME 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # file-tail 1139s # 1139s # comment 1139s # comment: Generated data ends here 1139s # Error: 1139s # 1139s # /tmp/tmpd6mw76yl/tmpf2uussth.h: 1139s # typedef enum { 1139s # /*< private >*/ 1139s # ENUM_VALUE_PRIVATE, 1139s # /*< public >*/ 1139s # ENUM_VALUE_PUBLIC2, 1139s # } SomeEnumB; 1139s # 1139s # /tmp/tmpd6mw76yl/tmpqibj78s3.template: 1139s # /*** BEGIN file-header ***/ 1139s # file-header 1139s # /*** END file-header ***/ 1139s # 1139s # /*** BEGIN file-production ***/ 1139s # file-production 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-production ***/ 1139s # 1139s # /*** BEGIN enumeration-production ***/ 1139s # enumeration-production 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END enumeration-production ***/ 1139s # 1139s # /*** BEGIN value-header ***/ 1139s # value-header 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-header ***/ 1139s # 1139s # /*** BEGIN value-production ***/ 1139s # value-production 1139s # VALUENAME: @VALUENAME@ 1139s # valuenick: @valuenick@ 1139s # valuenum: @valuenum@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-production ***/ 1139s # 1139s # /*** BEGIN value-tail ***/ 1139s # value-tail 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-tail ***/ 1139s # 1139s # /*** BEGIN comment ***/ 1139s # comment 1139s # comment: @comment@ 1139s # /*** END comment ***/ 1139s # 1139s # /*** BEGIN file-tail ***/ 1139s # file-tail 1139s # /*** END file-tail ***/ 1139s # 1139s # Response file contains: --template /tmp/tmpd6mw76yl/tmpqibj78s3.template /tmp/tmpd6mw76yl/tmpf2uussth.h 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpd6mw76yl/tmpa7i0n31r'] 1139s # Return code: 0 1139s # Output: 1139s # comment 1139s # 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. 1139s # 1139s # 1139s # file-header 1139s # file-production 1139s # filename: /tmp/tmpd6mw76yl/tmpf2uussth.h 1139s # basename: tmpf2uussth.h 1139s # enumeration-production 1139s # EnumName: SomeEnumB 1139s # enum_name: some_enum_b 1139s # ENUMNAME: SOME_ENUM_B 1139s # ENUMSHORT: ENUM_B 1139s # ENUMPREFIX: SOME 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-header 1139s # EnumName: SomeEnumB 1139s # enum_name: some_enum_b 1139s # ENUMNAME: SOME_ENUM_B 1139s # ENUMSHORT: ENUM_B 1139s # ENUMPREFIX: SOME 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-production 1139s # VALUENAME: ENUM_VALUE_PUBLIC2 1139s # valuenick: public2 1139s # valuenum: 1 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-tail 1139s # EnumName: SomeEnumB 1139s # enum_name: some_enum_b 1139s # ENUMNAME: SOME_ENUM_B 1139s # ENUMSHORT: ENUM_B 1139s # ENUMPREFIX: SOME 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # file-tail 1139s # 1139s # comment 1139s # comment: Generated data ends here 1139s # Error: 1139s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmp2st5kb5l 1139s # rspfile: True 1139s # /tmp/tmp2st5kb5l/tmprkkyn4ea.h: 1139s # typedef enum { 1139s # /*< private >*/ 1139s # ENUM_VALUE_PRIVATE = 5, 1139s # /*< public >*/ 1139s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1139s # } TestSymbolicEnum; 1139s # 1139s # /tmp/tmp2st5kb5l/tmp8u__jg67.template: 1139s # /*** BEGIN file-header ***/ 1139s # file-header 1139s # /*** END file-header ***/ 1139s # 1139s # /*** BEGIN file-production ***/ 1139s # file-production 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-production ***/ 1139s # 1139s # /*** BEGIN enumeration-production ***/ 1139s # enumeration-production 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END enumeration-production ***/ 1139s # 1139s # /*** BEGIN value-header ***/ 1139s # value-header 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-header ***/ 1139s # 1139s # /*** BEGIN value-production ***/ 1139s # value-production 1139s # VALUENAME: @VALUENAME@ 1139s # valuenick: @valuenick@ 1139s # valuenum: @valuenum@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-production ***/ 1139s # 1139s # /*** BEGIN value-tail ***/ 1139s # value-tail 1139s # EnumName: @EnumName@ 1139s # enum_name: @enum_name@ 1139s # ENUMNAME: @ENUMNAME@ 1139s # ENUMSHORT: @ENUMSHORT@ 1139s # ENUMPREFIX: @ENUMPREFIX@ 1139s # enumsince: @enumsince@ 1139s # type: @type@ 1139s # Type: @Type@ 1139s # TYPE: @TYPE@ 1139s # /*** END value-tail ***/ 1139s # 1139s # /*** BEGIN comment ***/ 1139s # comment 1139s # comment: @comment@ 1139s # /*** END comment ***/ 1139s # 1139s # /*** BEGIN file-tail ***/ 1139s # file-tail 1139s # /*** END file-tail ***/ 1139s # 1139s # Response file contains: --template /tmp/tmp2st5kb5l/tmp8u__jg67.template /tmp/tmp2st5kb5l/tmprkkyn4ea.h 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp2st5kb5l/tmpihyg0v8s'] 1139s # Return code: 0 1139s # Output: 1139s # comment 1139s # 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. 1139s # 1139s # 1139s # file-header 1139s # file-production 1139s # filename: /tmp/tmp2st5kb5l/tmprkkyn4ea.h 1139s # basename: tmprkkyn4ea.h 1139s # enumeration-production 1139s # EnumName: TestSymbolicEnum 1139s # enum_name: test_symbolic_enum 1139s # ENUMNAME: TEST_SYMBOLIC_ENUM 1139s # ENUMSHORT: SYMBOLIC_ENUM 1139s # ENUMPREFIX: TEST 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-header 1139s # EnumName: TestSymbolicEnum 1139s # enum_name: test_symbolic_enum 1139s # ENUMNAME: TEST_SYMBOLIC_ENUM 1139s # ENUMSHORT: SYMBOLIC_ENUM 1139s # ENUMPREFIX: TEST 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-production 1139s # VALUENAME: ENUM_VALUE_PUBLIC 1139s # valuenick: public 1139s # valuenum: 7 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # value-tail 1139s # EnumName: TestSymbolicEnum 1139s # enum_name: test_symbolic_enum 1139s # ENUMNAME: TEST_SYMBOLIC_ENUM 1139s # ENUMSHORT: SYMBOLIC_ENUM 1139s # ENUMPREFIX: TEST 1139s # enumsince: 1139s # type: enum 1139s # Type: Enum 1139s # TYPE: ENUM 1139s # file-tail 1139s # 1139s # comment 1139s # comment: Generated data ends here 1139s # Error: 1139s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmpvabeocz4 1139s # rspfile: True 1139s # /tmp/tmpvabeocz4/tmpmu602kr4.template: 1139s # /*** BEGIN file-header ***/ 1139s # file-header 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-header ***/ 1139s # 1139s # /*** BEGIN comment ***/ 1139s # comment 1139s # comment: @comment@ 1139s # /*** END comment ***/ 1139s # 1139s # /*** BEGIN file-tail ***/ 1139s # file-tail 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # /*** END file-tail ***/ 1139s # Response file contains: --template /tmp/tmpvabeocz4/tmpmu602kr4.template 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpvabeocz4/tmppiisnw4h'] 1139s # Return code: 0 1139s # Output: 1139s # comment 1139s # 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. 1139s # 1139s # 1139s # file-header 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # file-tail 1139s # filename: @filename@ 1139s # basename: @basename@ 1139s # 1139s # comment 1139s # comment: Generated data ends here 1139s # Error: 1139s # WARNING: @filename@ used in file-header section. 1139s # WARNING: @basename@ used in file-header section. 1139s # WARNING: @filename@ used in file-tail section. 1139s # WARNING: @basename@ used in file-tail section. 1139s ok 29 __main__.TestRspMkenums.test_help 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmpp8abkmhs 1139s # rspfile: True 1139s # Response file contains: --help 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpp8abkmhs/tmpgykicp6l'] 1139s # Return code: 0 1139s # Output: 1139s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1139s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1139s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1139s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1139s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1139s # [--output OUTPUT] [--version] 1139s # [args ...] 1139s # 1139s # positional arguments: 1139s # args One or more input files, or a single argument 1139s # @rspfile_path pointing to a file that contains the 1139s # actual arguments 1139s # 1139s # options: 1139s # -h, --help show this help message and exit 1139s # --identifier-prefix IDPREFIX 1139s # Identifier prefix 1139s # --symbol-prefix SYMPREFIX 1139s # Symbol prefix 1139s # --fhead FHEAD Output file header 1139s # --ftail FTAIL Output file footer 1139s # --fprod FPROD Put out TEXT every time a new input file is being 1139s # processed. 1139s # --eprod EPROD Per enum text, produced prior to value iterations 1139s # --vhead VHEAD Value header, produced before iterating over enum 1139s # values 1139s # --vprod VPROD Value text, produced for each enum value. 1139s # --vtail VTAIL Value tail, produced after iterating over enum values 1139s # --comments COMMENT_TMPL 1139s # Comment structure 1139s # --template TEMPLATE Template file 1139s # --output OUTPUT 1139s # --version, -v Print version information 1139s # 1139s # Production text substitutions: 1139s # @EnumName@ PrefixTheXEnum 1139s # @enum_name@ prefix_the_xenum 1139s # @ENUMNAME@ PREFIX_THE_XENUM 1139s # @ENUMSHORT@ THE_XENUM 1139s # @ENUMPREFIX@ PREFIX 1139s # @enumsince@ the user-provided since value given 1139s # @VALUENAME@ PREFIX_THE_XVALUE 1139s # @valuenick@ the-xvalue 1139s # @valuenum@ the integer value (limited support, Since: 2.26) 1139s # @type@ either enum or flags 1139s # @Type@ either Enum or Flags 1139s # @TYPE@ either ENUM or FLAGS 1139s # @filename@ name of current input file 1139s # @basename@ base name of the current input file (Since: 2.22) 1139s # Error: 1139s ok 30 __main__.TestRspMkenums.test_no_args 1139s # glib-mkenums: /usr/bin/glib-mkenums 1139s # tmpdir: /tmp/tmptbg0nm2e 1139s # rspfile: True 1139s # Response file contains: 1139s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmptbg0nm2e/tmpalrxbl2p'] 1139s # Return code: 0 1139s # Output: 1139s # /* 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. */ 1139s # 1139s # 1139s # /* Generated data ends here */ 1139s # Error: 1140s ok 31 __main__.TestRspMkenums.test_no_headers 1140s # glib-mkenums: /usr/bin/glib-mkenums 1140s # tmpdir: /tmp/tmpjkikck3u 1140s # rspfile: True 1140s # /tmp/tmpjkikck3u/tmpp0oax3n8.template: 1140s # /*** BEGIN file-header ***/ 1140s # file-header 1140s # /*** END file-header ***/ 1140s # 1140s # /*** BEGIN file-production ***/ 1140s # file-production 1140s # filename: @filename@ 1140s # basename: @basename@ 1140s # /*** END file-production ***/ 1140s # 1140s # /*** BEGIN enumeration-production ***/ 1140s # enumeration-production 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END enumeration-production ***/ 1140s # 1140s # /*** BEGIN value-header ***/ 1140s # value-header 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-header ***/ 1140s # 1140s # /*** BEGIN value-production ***/ 1140s # value-production 1140s # VALUENAME: @VALUENAME@ 1140s # valuenick: @valuenick@ 1140s # valuenum: @valuenum@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-production ***/ 1140s # 1140s # /*** BEGIN value-tail ***/ 1140s # value-tail 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-tail ***/ 1140s # 1140s # /*** BEGIN comment ***/ 1140s # comment 1140s # comment: @comment@ 1140s # /*** END comment ***/ 1140s # 1140s # /*** BEGIN file-tail ***/ 1140s # file-tail 1140s # /*** END file-tail ***/ 1140s # 1140s # Response file contains: --template /tmp/tmpjkikck3u/tmpp0oax3n8.template 1140s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpjkikck3u/tmpamq4u7f8'] 1140s # Return code: 0 1140s # Output: 1140s # comment 1140s # 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. 1140s # 1140s # 1140s # file-header 1140s # file-tail 1140s # 1140s # comment 1140s # comment: Generated data ends here 1140s # Error: 1140s ok 32 __main__.TestRspMkenums.test_no_nick 1140s # glib-mkenums: /usr/bin/glib-mkenums 1140s # tmpdir: /tmp/tmpauifz3xd 1140s # rspfile: True 1140s # /tmp/tmpauifz3xd/tmpz8e6w3a5.h: 1140s # typedef enum { 1140s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1140s # } GeglSamplerType; 1140s # 1140s # /tmp/tmpauifz3xd/tmph7mmcf2t.template: 1140s # /*** BEGIN file-header ***/ 1140s # file-header 1140s # /*** END file-header ***/ 1140s # 1140s # /*** BEGIN file-production ***/ 1140s # file-production 1140s # filename: @filename@ 1140s # basename: @basename@ 1140s # /*** END file-production ***/ 1140s # 1140s # /*** BEGIN enumeration-production ***/ 1140s # enumeration-production 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END enumeration-production ***/ 1140s # 1140s # /*** BEGIN value-header ***/ 1140s # value-header 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-header ***/ 1140s # 1140s # /*** BEGIN value-production ***/ 1140s # value-production 1140s # VALUENAME: @VALUENAME@ 1140s # valuenick: @valuenick@ 1140s # valuenum: @valuenum@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-production ***/ 1140s # 1140s # /*** BEGIN value-tail ***/ 1140s # value-tail 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-tail ***/ 1140s # 1140s # /*** BEGIN comment ***/ 1140s # comment 1140s # comment: @comment@ 1140s # /*** END comment ***/ 1140s # 1140s # /*** BEGIN file-tail ***/ 1140s # file-tail 1140s # /*** END file-tail ***/ 1140s # 1140s # Response file contains: --template /tmp/tmpauifz3xd/tmph7mmcf2t.template /tmp/tmpauifz3xd/tmpz8e6w3a5.h 1140s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpauifz3xd/tmpjiloas12'] 1140s # Return code: 0 1140s # Output: 1140s # comment 1140s # 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. 1140s # 1140s # 1140s # file-header 1140s # file-production 1140s # filename: /tmp/tmpauifz3xd/tmpz8e6w3a5.h 1140s # basename: tmpz8e6w3a5.h 1140s # enumeration-production 1140s # EnumName: GeglSamplerType 1140s # enum_name: gegl_sampler_type 1140s # ENUMNAME: GEGL_SAMPLER_TYPE 1140s # ENUMSHORT: SAMPLER_TYPE 1140s # ENUMPREFIX: GEGL 1140s # enumsince: 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # value-header 1140s # EnumName: GeglSamplerType 1140s # enum_name: gegl_sampler_type 1140s # ENUMNAME: GEGL_SAMPLER_TYPE 1140s # ENUMSHORT: SAMPLER_TYPE 1140s # ENUMPREFIX: GEGL 1140s # enumsince: 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # value-production 1140s # VALUENAME: GEGL_SAMPLER_NEAREST 1140s # valuenick: nearest 1140s # valuenum: 0 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # value-tail 1140s # EnumName: GeglSamplerType 1140s # enum_name: gegl_sampler_type 1140s # ENUMNAME: GEGL_SAMPLER_TYPE 1140s # ENUMSHORT: SAMPLER_TYPE 1140s # ENUMPREFIX: GEGL 1140s # enumsince: 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # file-tail 1140s # 1140s # comment 1140s # comment: Generated data ends here 1140s # Error: 1140s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 1140s # glib-mkenums: /usr/bin/glib-mkenums 1140s # tmpdir: /tmp/tmponz646s9 1140s # rspfile: True 1140s # /tmp/tmponz646s9/tmp0exesep4.h: 1140s # /* Copyright © La Peña */ 1140s # typedef enum { 1140s # ENUM_VALUE 1140s # } SomeEnumIdentifier; 1140s # 1140s # /tmp/tmponz646s9/tmpw9sx4ut6.template: 1140s # /*** BEGIN file-header ***/ 1140s # file-header 1140s # /*** END file-header ***/ 1140s # 1140s # /*** BEGIN file-production ***/ 1140s # file-production 1140s # filename: @filename@ 1140s # basename: @basename@ 1140s # /*** END file-production ***/ 1140s # 1140s # /*** BEGIN enumeration-production ***/ 1140s # enumeration-production 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END enumeration-production ***/ 1140s # 1140s # /*** BEGIN value-header ***/ 1140s # value-header 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-header ***/ 1140s # 1140s # /*** BEGIN value-production ***/ 1140s # value-production 1140s # VALUENAME: @VALUENAME@ 1140s # valuenick: @valuenick@ 1140s # valuenum: @valuenum@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-production ***/ 1140s # 1140s # /*** BEGIN value-tail ***/ 1140s # value-tail 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-tail ***/ 1140s # 1140s # /*** BEGIN comment ***/ 1140s # comment 1140s # comment: @comment@ 1140s # /*** END comment ***/ 1140s # 1140s # /*** BEGIN file-tail ***/ 1140s # file-tail 1140s # /*** END file-tail ***/ 1140s # 1140s # Response file contains: --template /tmp/tmponz646s9/tmpw9sx4ut6.template /tmp/tmponz646s9/tmp0exesep4.h 1140s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmponz646s9/tmp_9xxc_y4'] 1140s # Return code: 0 1140s # Output: 1140s # comment 1140s # 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. 1140s # 1140s # 1140s # file-header 1140s # file-production 1140s # filename: /tmp/tmponz646s9/tmp0exesep4.h 1140s # basename: tmp0exesep4.h 1140s # enumeration-production 1140s # EnumName: SomeEnumIdentifier 1140s # enum_name: some_enum_identifier 1140s # ENUMNAME: SOME_ENUM_IDENTIFIER 1140s # ENUMSHORT: ENUM_IDENTIFIER 1140s # ENUMPREFIX: SOME 1140s # enumsince: 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # value-header 1140s # EnumName: SomeEnumIdentifier 1140s # enum_name: some_enum_identifier 1140s # ENUMNAME: SOME_ENUM_IDENTIFIER 1140s # ENUMSHORT: ENUM_IDENTIFIER 1140s # ENUMPREFIX: SOME 1140s # enumsince: 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # value-production 1140s # VALUENAME: ENUM_VALUE 1140s # valuenick: value 1140s # valuenum: 0 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # value-tail 1140s # EnumName: SomeEnumIdentifier 1140s # enum_name: some_enum_identifier 1140s # ENUMNAME: SOME_ENUM_IDENTIFIER 1140s # ENUMSHORT: ENUM_IDENTIFIER 1140s # ENUMPREFIX: SOME 1140s # enumsince: 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # file-tail 1140s # 1140s # comment 1140s # comment: Generated data ends here 1140s # Error: 1140s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1140s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1140s ok 34 __main__.TestRspMkenums.test_reproducible 1140s # glib-mkenums: /usr/bin/glib-mkenums 1140s # tmpdir: /tmp/tmp4tuf_x00 1140s # rspfile: True 1140s # /tmp/tmp4tuf_x00/tmp9dwet1o4.template: template 1140s # Response file contains: --template /tmp/tmp4tuf_x00/tmp9dwet1o4.template /tmp/tmp4tuf_x00/tmpso2g6lua1.h /tmp/tmp4tuf_x00/tmp3mqyph0e2.h 1140s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp4tuf_x00/tmprbi4v48e'] 1140s # Return code: 0 1140s # Output: 1140s # /* 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. */ 1140s # 1140s # 1140s # /* Generated data ends here */ 1140s # Error: 1140s # 1140s # /tmp/tmp4tuf_x00/tmpqw88_z5y.template: template 1140s # Response file contains: --template /tmp/tmp4tuf_x00/tmpqw88_z5y.template /tmp/tmp4tuf_x00/tmp3mqyph0e2.h /tmp/tmp4tuf_x00/tmpso2g6lua1.h 1140s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp4tuf_x00/tmpycnxhnma'] 1140s # Return code: 0 1140s # Output: 1140s # /* 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. */ 1140s # 1140s # 1140s # /* Generated data ends here */ 1140s # Error: 1140s ok 35 __main__.TestRspMkenums.test_since 1140s # glib-mkenums: /usr/bin/glib-mkenums 1140s # tmpdir: /tmp/tmpzbqx6sl3 1140s # rspfile: True 1140s # /tmp/tmpzbqx6sl3/tmptlw7fp9s.h: 1140s # typedef enum { /*< since=1.0 >*/ 1140s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1140s # } QmiWmsMessageProtocol; 1140s # 1140s # /tmp/tmpzbqx6sl3/tmp8vcof767.template: 1140s # /*** BEGIN file-header ***/ 1140s # file-header 1140s # /*** END file-header ***/ 1140s # 1140s # /*** BEGIN file-production ***/ 1140s # file-production 1140s # filename: @filename@ 1140s # basename: @basename@ 1140s # /*** END file-production ***/ 1140s # 1140s # /*** BEGIN enumeration-production ***/ 1140s # enumeration-production 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END enumeration-production ***/ 1140s # 1140s # /*** BEGIN value-header ***/ 1140s # value-header 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-header ***/ 1140s # 1140s # /*** BEGIN value-production ***/ 1140s # value-production 1140s # VALUENAME: @VALUENAME@ 1140s # valuenick: @valuenick@ 1140s # valuenum: @valuenum@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-production ***/ 1140s # 1140s # /*** BEGIN value-tail ***/ 1140s # value-tail 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-tail ***/ 1140s # 1140s # /*** BEGIN comment ***/ 1140s # comment 1140s # comment: @comment@ 1140s # /*** END comment ***/ 1140s # 1140s # /*** BEGIN file-tail ***/ 1140s # file-tail 1140s # /*** END file-tail ***/ 1140s # 1140s # Response file contains: --template /tmp/tmpzbqx6sl3/tmp8vcof767.template /tmp/tmpzbqx6sl3/tmptlw7fp9s.h 1140s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpzbqx6sl3/tmpa203lten'] 1140s # Return code: 0 1140s # Output: 1140s # comment 1140s # 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. 1140s # 1140s # 1140s # file-header 1140s # file-production 1140s # filename: /tmp/tmpzbqx6sl3/tmptlw7fp9s.h 1140s # basename: tmptlw7fp9s.h 1140s # enumeration-production 1140s # EnumName: QmiWmsMessageProtocol 1140s # enum_name: qmi_wms_message_protocol 1140s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1140s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1140s # ENUMPREFIX: QMI 1140s # enumsince: 1.0 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # value-header 1140s # EnumName: QmiWmsMessageProtocol 1140s # enum_name: qmi_wms_message_protocol 1140s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1140s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1140s # ENUMPREFIX: QMI 1140s # enumsince: 1.0 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # value-production 1140s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1140s # valuenick: cdma 1140s # valuenum: 0 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # value-tail 1140s # EnumName: QmiWmsMessageProtocol 1140s # enum_name: qmi_wms_message_protocol 1140s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1140s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1140s # ENUMPREFIX: QMI 1140s # enumsince: 1.0 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # file-tail 1140s # 1140s # comment 1140s # comment: Generated data ends here 1140s # Error: 1140s ok 36 __main__.TestRspMkenums.test_with_double_quotes 1140s # glib-mkenums: /usr/bin/glib-mkenums 1140s # tmpdir: /tmp/tmp703ufilh 1140s # rspfile: True 1140s # /tmp/tmp703ufilh/tmp2nh1p0da.h: 1140s # typedef enum { 1140s # FOO_VALUE /*< nick="eek, a comma" >*/ 1140s # } Foo; 1140s # 1140s # /tmp/tmp703ufilh/tmpkf3i1dp1.template: 1140s # /*** BEGIN file-header ***/ 1140s # file-header 1140s # /*** END file-header ***/ 1140s # 1140s # /*** BEGIN file-production ***/ 1140s # file-production 1140s # filename: @filename@ 1140s # basename: @basename@ 1140s # /*** END file-production ***/ 1140s # 1140s # /*** BEGIN enumeration-production ***/ 1140s # enumeration-production 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END enumeration-production ***/ 1140s # 1140s # /*** BEGIN value-header ***/ 1140s # value-header 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-header ***/ 1140s # 1140s # /*** BEGIN value-production ***/ 1140s # value-production 1140s # VALUENAME: @VALUENAME@ 1140s # valuenick: @valuenick@ 1140s # valuenum: @valuenum@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-production ***/ 1140s # 1140s # /*** BEGIN value-tail ***/ 1140s # value-tail 1140s # EnumName: @EnumName@ 1140s # enum_name: @enum_name@ 1140s # ENUMNAME: @ENUMNAME@ 1140s # ENUMSHORT: @ENUMSHORT@ 1140s # ENUMPREFIX: @ENUMPREFIX@ 1140s # enumsince: @enumsince@ 1140s # type: @type@ 1140s # Type: @Type@ 1140s # TYPE: @TYPE@ 1140s # /*** END value-tail ***/ 1140s # 1140s # /*** BEGIN comment ***/ 1140s # comment 1140s # comment: @comment@ 1140s # /*** END comment ***/ 1140s # 1140s # /*** BEGIN file-tail ***/ 1140s # file-tail 1140s # /*** END file-tail ***/ 1140s # 1140s # Response file contains: --template /tmp/tmp703ufilh/tmpkf3i1dp1.template /tmp/tmp703ufilh/tmp2nh1p0da.h 1140s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp703ufilh/tmpqh5febeh'] 1140s # Return code: 0 1140s # Output: 1140s # comment 1140s # 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. 1140s # 1140s # 1140s # file-header 1140s # file-production 1140s # filename: /tmp/tmp703ufilh/tmp2nh1p0da.h 1140s # basename: tmp2nh1p0da.h 1140s # enumeration-production 1140s # EnumName: Foo 1140s # enum_name: foo_ 1140s # ENUMNAME: FOO_ 1140s # ENUMSHORT: 1140s # ENUMPREFIX: FOO 1140s # enumsince: 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # value-header 1140s # EnumName: Foo 1140s # enum_name: foo_ 1140s # ENUMNAME: FOO_ 1140s # ENUMSHORT: 1140s # ENUMPREFIX: FOO 1140s # enumsince: 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # value-production 1140s # VALUENAME: FOO_VALUE 1140s # valuenick: eek, a comma 1140s # valuenum: 0 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # value-tail 1140s # EnumName: Foo 1140s # enum_name: foo_ 1140s # ENUMNAME: FOO_ 1140s # ENUMSHORT: 1140s # ENUMPREFIX: FOO 1140s # enumsince: 1140s # type: enum 1140s # Type: Enum 1140s # TYPE: ENUM 1140s # file-tail 1140s # 1140s # comment 1140s # comment: Generated data ends here 1140s # Error: 1140s 1..36 1140s ok - glib/mkenums.py.test 1140s # Running test: glib/gdbus-message.test 1140s TAP version 14 1140s # random seed: R02S582f8d7752947bc41d2b23acbb6b9f02 1140s 1..3 1140s # Start of gdbus tests 1140s # Start of message tests 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/lock/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/lock/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_VH63J3/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_VH63J3/gdbus/message/lock/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/lock/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_VH63J3/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_VH63J3/gdbus/message/lock/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/lock/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/lock/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_VH63J3/gdbus/message/lock/.dirs/runtime 1140s ok 1 /gdbus/message/lock 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/copy/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/copy/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_VH63J3/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_VH63J3/gdbus/message/copy/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/copy/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_VH63J3/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_VH63J3/gdbus/message/copy/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/copy/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/copy/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_VH63J3/gdbus/message/copy/.dirs/runtime 1140s ok 2 /gdbus/message/copy 1140s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/bytes-needed/.dirs/home 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/bytes-needed/.dirs/cache 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_VH63J3/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_VH63J3/gdbus/message/bytes-needed/.dirs/system-config2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/bytes-needed/.dirs/config 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_VH63J3/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_VH63J3/gdbus/message/bytes-needed/.dirs/system-data2 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/bytes-needed/.dirs/data 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_VH63J3/gdbus/message/bytes-needed/.dirs/state 1140s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_VH63J3/gdbus/message/bytes-needed/.dirs/runtime 1140s # Vector: 0 1140s # Vector: 1 1140s # Vector: 2 1140s # Vector: 3 1140s # Vector: 4 1140s # Vector: 5 1140s ok 3 /gdbus/message/bytes-needed 1140s # End of message tests 1140s # End of gdbus tests 1140s ok - glib/gdbus-message.test 1140s # Running test: glib/socket.test 1140s TAP version 14 1140s # random seed: R02S8ed22b4d7a7532a52bf60b0e36cdedaf 1140s 1..30 1140s # Start of socket tests 1141s ok 1 /socket/ipv4_sync 1141s # slow test /socket/ipv4_sync executed in 1.00 secs 1142s ok 2 /socket/ipv4_async 1142s # slow test /socket/ipv4_async executed in 1.00 secs 1142s ok 3 /socket/ipv6_sync 1142s ok 4 /socket/ipv6_async 1142s ok 5 /socket/ipv6_v4mapped 1142s # Executing: glib/socket.test 1143s ok 6 /socket/close_graceful 1143s # slow test /socket/close_graceful executed in 1.00 secs 1143s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1143s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1143s ok 8 /socket/fd_reuse 1143s ok 9 /socket/address 1143s ok 10 /socket/unix-from-fd 1143s ok 11 /socket/unix-connection 1143s ok 12 /socket/unix-connection-ancillary-data 1143s ok 13 /socket/source-postmortem 1143s ok 14 /socket/read_write 1143s ok 15 /socket/read_writev 1143s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1143s ok 16 /socket/receive_bytes 1143s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1143s ok 17 /socket/receive_bytes_from 1143s # Start of ipv4_sync tests 1143s ok 18 /socket/ipv4_sync/datagram 1143s # Start of datagram tests 1144s ok 19 /socket/ipv4_sync/datagram/timeouts 1144s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1144s # End of datagram tests 1144s # End of ipv4_sync tests 1144s # Start of ipv6_sync tests 1144s ok 20 /socket/ipv6_sync/datagram 1144s # Start of datagram tests 1145s ok 21 /socket/ipv6_sync/datagram/timeouts 1145s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1145s # End of datagram tests 1145s # End of ipv6_sync tests 1145s # Start of reuse tests 1145s ok 22 /socket/reuse/tcp 1145s ok 23 /socket/reuse/udp 1145s # End of reuse tests 1145s # Start of get_available tests 1145s ok 24 /socket/get_available/datagram 1145s ok 25 /socket/get_available/stream 1145s # End of get_available tests 1145s # Start of credentials tests 1145s # Supported on this OS: GCredentials:linux-ucred:pid=0 1145s ok 26 /socket/credentials/tcp_client 1145s # Supported on this OS: GCredentials:linux-ucred:pid=0 1145s ok 27 /socket/credentials/tcp_server 1145s # Supported on this OS: GCredentials:linux-ucred:pid=1842,uid=1000,gid=1000 1145s ok 28 /socket/credentials/unix_socketpair 1145s # End of credentials tests 1145s # Start of accept tests 1145s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1145s ok 29 /socket/accept/cancelled 1145s # End of accept tests 1145s # Start of connect tests 1145s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1145s ok 30 /socket/connect/cancelled 1145s # End of connect tests 1145s # End of socket tests 1145s ok - glib/socket.test 1145s # Running test: glib/utf8-performance.test 1145s TAP version 14 1145s # random seed: R02Sc35fb4f53e69ea047394a8af30c5b1fd 1145s 1..36 1145s # Start of utf8 tests 1145s # Start of perf tests 1145s # Start of get_char tests 1145s # max perf: 4.8 MB/s 1145s ok 1 /utf8/perf/get_char/ascii 1145s # max perf: 67.0 MB/s 1145s ok 2 /utf8/perf/get_char/latin1 1145s # max perf: 160.0 MB/s 1145s ok 3 /utf8/perf/get_char/cyrillic 1145s # max perf: 156.0 MB/s 1145s ok 4 /utf8/perf/get_char/han 1145s # End of get_char tests 1145s # Start of get_char-backwards tests 1145s # max perf: 43.0 MB/s 1145s ok 5 /utf8/perf/get_char-backwards/ascii 1145s # max perf: 67.0 MB/s 1145s ok 6 /utf8/perf/get_char-backwards/latin1 1145s # max perf: 160.0 MB/s 1145s ok 7 /utf8/perf/get_char-backwards/cyrillic 1145s # max perf: 156.0 MB/s 1145s ok 8 /utf8/perf/get_char-backwards/han 1145s # End of get_char-backwards tests 1145s # Start of get_char_validated tests 1145s # max perf: 21.5 MB/s 1145s ok 9 /utf8/perf/get_char_validated/ascii 1145s # max perf: inf MB/s 1145s ok 10 /utf8/perf/get_char_validated/latin1 1145s # max perf: 160.0 MB/s 1145s ok 11 /utf8/perf/get_char_validated/cyrillic 1145s # max perf: 156.0 MB/s 1145s ok 12 /utf8/perf/get_char_validated/han 1145s # End of get_char_validated tests 1145s # Start of utf8_to_ucs4 tests 1145s # max perf: 21.5 MB/s 1145s ok 13 /utf8/perf/utf8_to_ucs4/ascii 1145s # max perf: 67.0 MB/s 1145s ok 14 /utf8/perf/utf8_to_ucs4/latin1 1145s # max perf: 160.0 MB/s 1145s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 1145s # max perf: 156.0 MB/s 1145s ok 16 /utf8/perf/utf8_to_ucs4/han 1145s # End of utf8_to_ucs4 tests 1145s # Start of utf8_to_ucs4-sized tests 1145s # max perf: 43.0 MB/s 1145s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 1145s # max perf: 67.0 MB/s 1145s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 1145s # max perf: 160.0 MB/s 1145s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 1145s # max perf: inf MB/s 1145s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 1145s # End of utf8_to_ucs4-sized tests 1145s # Start of utf8_to_ucs4_fast tests 1145s # max perf: inf MB/s 1145s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 1145s # max perf: 67.0 MB/s 1145s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 1145s # max perf: 160.0 MB/s 1145s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 1145s # max perf: 156.0 MB/s 1145s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 1145s # End of utf8_to_ucs4_fast tests 1145s # Start of utf8_to_ucs4_fast-sized tests 1145s # max perf: 43.0 MB/s 1145s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 1145s # max perf: 67.0 MB/s 1145s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 1145s # max perf: 160.0 MB/s 1145s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 1145s # max perf: inf MB/s 1145s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 1145s # End of utf8_to_ucs4_fast-sized tests 1145s # Start of utf8_validate tests 1145s # max perf: inf MB/s 1145s ok 29 /utf8/perf/utf8_validate/ascii 1145s # max perf: inf MB/s 1145s ok 30 /utf8/perf/utf8_validate/latin1 1145s # max perf: inf MB/s 1145s ok 31 /utf8/perf/utf8_validate/cyrillic 1145s # max perf: inf MB/s 1145s ok 32 /utf8/perf/utf8_validate/han 1145s # End of utf8_validate tests 1145s # Start of utf8_validate-sized tests 1145s # max perf: 43.0 MB/s 1145s ok 33 /utf8/perf/utf8_validate-sized/ascii 1145s # max perf: 67.0 MB/s 1145s ok 34 /utf8/perf/utf8_validate-sized/latin1 1145s # max perf: 160.0 MB/s 1145s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 1145s # max perf: 156.0 MB/s 1145s ok 36 /utf8/perf/utf8_validate-sized/han 1145s # End of utf8_validate-sized tests 1145s # End of perf tests 1145s # End of utf8 tests 1145s ok - glib/utf8-performance.test 1145s # Running test: glib/converter-stream.test 1145s TAP version 14 1145s # random seed: R02S343e3aa10909ffc84dd1e56dc7080244 1145s 1..17 1145s # Start of converter tests 1145s ok 1 /converter/basics 1145s # End of converter tests 1145s # Start of converter-input-stream tests 1145s ok 2 /converter-input-stream/expander 1145s ok 3 /converter-input-stream/compressor 1145s # Start of truncation tests 1146s ok 4 /converter-input-stream/truncation/zlib 1146s ok 5 /converter-input-stream/truncation/gzip 1146s ok 6 /converter-input-stream/truncation/raw 1146s # End of truncation tests 1146s # Start of charset tests 1146s ok 7 /converter-input-stream/charset/utf8->latin1 1146s ok 8 /converter-input-stream/charset/latin1->utf8 1146s ok 9 /converter-input-stream/charset/fallbacks 1146s # End of charset tests 1146s # End of converter-input-stream tests 1146s # Start of converter-output-stream tests 1146s # Start of roundtrip tests 1146s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1146s ok 10 /converter-output-stream/roundtrip/zlib-0 1146s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1146s ok 11 /converter-output-stream/roundtrip/zlib-9 1146s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1146s ok 12 /converter-output-stream/roundtrip/gzip-0 1146s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1146s ok 13 /converter-output-stream/roundtrip/gzip-9 1146s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1146s ok 14 /converter-output-stream/roundtrip/raw-0 1146s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1147s ok 15 /converter-output-stream/roundtrip/raw-9 1147s # End of roundtrip tests 1147s # End of converter-output-stream tests 1147s # Start of converter-stream tests 1147s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1147s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5b2a8d8 and GSocketClientAsyncConnectData 0x5b2de28 1147s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1147s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1147s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5b328d8 for GSocketClientAsyncConnectData 0x5b2de28 1147s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1147s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1147s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1147s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1147s ok 16 /converter-stream/pollable 1147s ok 17 /converter-stream/leftover 1147s # End of converter-stream tests 1147s ok - glib/converter-stream.test 1147s # Running test: glib/win32-appinfo.test 1147s TAP version 14 1147s # random seed: R02S3a05ac6cdace63ca291b60b4e147b3ef 1147s 1..5 1147s # Start of appinfo tests 1147s ok 1 /appinfo/utf16-strfuncs 1147s ok 2 /appinfo/win32-extract-executable 1147s ok 3 /appinfo/win32-rundll32-fixup 1147s ok 4 /appinfo/win32-parse-filename 1147s ok 5 /appinfo/win32-utf16-conversion-fail 1147s # Start of subprocess tests 1147s # End of subprocess tests 1147s # End of appinfo tests 1147s ok - glib/win32-appinfo.test 1147s # Running test: glib/gobject-private.test 1147s TAP version 14 1147s # random seed: R02S38969bda114ab4abdc50eb82db8dd7e6 1147s 1..3 1147s # Start of private tests 1147s ok 1 /private/instance 1147s ok 2 /private/derived-instance 1147s ok 3 /private/mixed-derived-instance 1147s # End of private tests 1147s ok - glib/gobject-private.test 1147s # Running test: glib/utils-c-11.test 1147s TAP version 14 1147s # random seed: R02S6c1baebb766f21b428f02d959d213940 1147s 1..41 1147s # Start of utils tests 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/language-names/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/language-names/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/language-names/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/language-names/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/language-names/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/language-names/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/language-names/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/language-names/.dirs/runtime 1147s ok 1 /utils/language-names 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/locale-variants/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/locale-variants/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/locale-variants/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/locale-variants/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/locale-variants/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/locale-variants/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/locale-variants/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/locale-variants/.dirs/runtime 1147s # Testing locale ‘en’ 1147s # Testing locale ‘sr@latin’ 1147s # Testing locale ‘fr_BE’ 1147s # Testing locale ‘sr_SR@latin’ 1147s # Testing locale ‘sr_SR@latin.UTF-8’ 1147s # Testing locale ‘sr@latin_invalid’ 1147s # Testing locale ‘sr.UTF-8@latin’ 1147s # Testing locale ‘sr.UTF-8_latin’ 1147s # Testing locale ‘sr.UTF-8@latin_invalid’ 1147s ok 2 /utils/locale-variants 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/version/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/version/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/version/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/version/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/version/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/version/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/version/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/version/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/version/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/version/.dirs/runtime 1147s ok 3 /utils/version 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/appname/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/appname/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/appname/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/appname/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/appname/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/appname/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/appname/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/appname/.dirs/runtime 1147s ok 4 /utils/appname 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/prgname-thread-safety/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/prgname-thread-safety/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/prgname-thread-safety/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/prgname-thread-safety/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/prgname-thread-safety/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/prgname-thread-safety/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/prgname-thread-safety/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/prgname-thread-safety/.dirs/runtime 1147s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1147s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1147s ok 5 /utils/prgname-thread-safety 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/tmpdir/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/tmpdir/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/tmpdir/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/tmpdir/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/tmpdir/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/tmpdir/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/tmpdir/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/tmpdir/.dirs/runtime 1147s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1147s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1147s Unable to clean up temporary directory /tmp/test_utils-c-11_F1CEK3/utils/tmpdir: No such file or directory 1147s ok 6 /utils/tmpdir 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/basic_bits/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/basic_bits/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/basic_bits/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/basic_bits/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/basic_bits/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/basic_bits/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/basic_bits/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/basic_bits/.dirs/runtime 1147s ok 7 /utils/basic_bits 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/bits/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/bits/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/bits/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/bits/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/bits/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/bits/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/bits/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/bits/.dirs/runtime 1147s ok 8 /utils/bits 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/swap/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/swap/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/swap/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/swap/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/swap/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/swap/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/swap/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/swap/.dirs/runtime 1147s ok 9 /utils/swap 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/find-program/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/find-program/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/find-program/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/find-program/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/find-program/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/find-program/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/find-program/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/find-program/.dirs/runtime 1147s ok 10 /utils/find-program 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/find-program-for-path/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/find-program-for-path/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/find-program-for-path/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/find-program-for-path/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/find-program-for-path/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/find-program-for-path/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/find-program-for-path/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/find-program-for-path/.dirs/runtime 1147s ok 11 /utils/find-program-for-path 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/debug/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/debug/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/debug/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/debug/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/debug/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/debug/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/debug/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/debug/.dirs/runtime 1147s Unable to clean up temporary directory /tmp/test_utils-c-11_F1CEK3/utils/debug: No such file or directory 1147s ok 12 /utils/debug 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/codeset/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/codeset/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/codeset/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/codeset/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/codeset/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/codeset/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/codeset/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/codeset/.dirs/runtime 1147s ok 13 /utils/codeset 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/codeset2/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/codeset2/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/codeset2/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/codeset2/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/codeset2/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/codeset2/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/codeset2/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/codeset2/.dirs/runtime 1147s Unable to clean up temporary directory /tmp/test_utils-c-11_F1CEK3/utils/codeset2: No such file or directory 1147s ok 14 /utils/codeset2 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/console-charset/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/console-charset/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/console-charset/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/console-charset/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/console-charset/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/console-charset/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/console-charset/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/console-charset/.dirs/runtime 1147s ok 15 /utils/console-charset 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/gettext/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/gettext/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/gettext/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/gettext/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/gettext/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/gettext/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/gettext/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/gettext/.dirs/runtime 1147s ok 16 /utils/gettext 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/username/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/username/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/username/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/username/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/username/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/username/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/username/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/username/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/username/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/username/.dirs/runtime 1147s ok 17 /utils/username 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/realname/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/realname/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/realname/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/realname/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/realname/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/realname/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/realname/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/realname/.dirs/runtime 1147s ok 18 /utils/realname 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/hostname/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/hostname/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/hostname/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/hostname/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/hostname/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/hostname/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/hostname/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/hostname/.dirs/runtime 1147s ok 19 /utils/hostname 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/os-info/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/os-info/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/os-info/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/os-info/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/os-info/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/os-info/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/os-info/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/os-info/.dirs/runtime 1147s # NAME: Ubuntu 1147s ok 20 /utils/os-info 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/.dirs/runtime 1147s ok 21 /utils/clear-pointer 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer-cast/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer-cast/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/clear-pointer-cast/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer-cast/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/clear-pointer-cast/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer-cast/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer-cast/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer-cast/.dirs/runtime 1147s ok 22 /utils/clear-pointer-cast 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/take-pointer/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/take-pointer/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/take-pointer/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/take-pointer/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/take-pointer/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/take-pointer/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/take-pointer/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/take-pointer/.dirs/runtime 1147s ok 23 /utils/take-pointer 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-source/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-source/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/clear-source/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-source/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/clear-source/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-source/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-source/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/clear-source/.dirs/runtime 1147s ok 24 /utils/clear-source 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/misc-mem/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/misc-mem/.dirs/cache 1147s ok - glib/utils-c-11.test 1147s # Running test: glib/properties-refcount3.test 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/misc-mem/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/misc-mem/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/misc-mem/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/misc-mem/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/misc-mem/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/misc-mem/.dirs/runtime 1147s ok 25 /utils/misc-mem 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/.dirs/runtime 1147s # /utils/aligned-mem summary: Aligned memory allocator 1147s # Alignment must not be zero 1147s # Alignment must be a power of two 1147s # Alignment must be a multiple of sizeof(void*) 1147s ok 26 /utils/aligned-mem 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/free-sized/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/free-sized/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/free-sized/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/free-sized/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/free-sized/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/free-sized/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/free-sized/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/free-sized/.dirs/runtime 1147s # /utils/free-sized summary: Check that g_free_sized() works 1147s ok 27 /utils/free-sized 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/nullify/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/nullify/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/nullify/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/nullify/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/nullify/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/nullify/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/nullify/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/nullify/.dirs/runtime 1147s ok 28 /utils/nullify 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/atexit/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/atexit/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/atexit/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/atexit/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/atexit/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/atexit/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/atexit/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/atexit/.dirs/runtime 1147s Unable to clean up temporary directory /tmp/test_utils-c-11_F1CEK3/utils/atexit: No such file or directory 1147s ok 29 /utils/atexit 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/check-setuid/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/check-setuid/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/check-setuid/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/check-setuid/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/check-setuid/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/check-setuid/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/check-setuid/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/check-setuid/.dirs/runtime 1147s ok 30 /utils/check-setuid 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/int-limits/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/int-limits/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/int-limits/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/int-limits/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/int-limits/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/int-limits/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/int-limits/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/int-limits/.dirs/runtime 1147s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1147s ok 31 /utils/int-limits 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-list/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-list/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/clear-list/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-list/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/clear-list/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-list/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-list/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/clear-list/.dirs/runtime 1147s ok 32 /utils/clear-list 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-slist/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-slist/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/clear-slist/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-slist/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/clear-slist/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-slist/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-slist/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/clear-slist/.dirs/runtime 1147s ok 33 /utils/clear-slist 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/steal-handle-id/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/steal-handle-id/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/steal-handle-id/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/steal-handle-id/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/steal-handle-id/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/steal-handle-id/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/steal-handle-id/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/steal-handle-id/.dirs/runtime 1147s ok 34 /utils/steal-handle-id 1147s # Start of user-special-dirs tests 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/desktop/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/desktop/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/desktop/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/desktop/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/desktop/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/desktop/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/desktop/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/desktop/.dirs/runtime 1147s ok 35 /utils/user-special-dirs/desktop 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/load-unlocked/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/load-unlocked/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/load-unlocked/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/load-unlocked/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1147s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1147s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1147s Unable to clean up temporary directory /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/load-unlocked: No such file or directory 1147s ok 36 /utils/user-special-dirs/load-unlocked 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/reload-leaks/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/reload-leaks/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/reload-leaks/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/reload-leaks/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1147s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1147s Unable to clean up temporary directory /tmp/test_utils-c-11_F1CEK3/utils/user-special-dirs/reload-leaks: No such file or directory 1147s ok 37 /utils/user-special-dirs/reload-leaks 1147s # End of user-special-dirs tests 1147s # Start of clear-pointer tests 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/side-effects/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/side-effects/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/side-effects/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/side-effects/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/side-effects/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/side-effects/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/side-effects/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/clear-pointer/side-effects/.dirs/runtime 1147s ok 38 /utils/clear-pointer/side-effects 1147s # End of clear-pointer tests 1147s # Start of aligned-mem tests 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/alignment/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/alignment/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/alignment/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/alignment/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/alignment/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/alignment/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/alignment/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/alignment/.dirs/runtime 1147s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1147s ok 39 /utils/aligned-mem/alignment 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/zeroed/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/zeroed/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/zeroed/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/zeroed/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/zeroed/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/zeroed/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/zeroed/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/zeroed/.dirs/runtime 1147s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1147s ok 40 /utils/aligned-mem/zeroed 1147s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/free-sized/.dirs/home 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/free-sized/.dirs/cache 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/free-sized/.dirs/system-config2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/free-sized/.dirs/config 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/free-sized/.dirs/system-data2 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/free-sized/.dirs/data 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/free-sized/.dirs/state 1147s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_F1CEK3/utils/aligned-mem/free-sized/.dirs/runtime 1147s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1147s ok 41 /utils/aligned-mem/free-sized 1147s # Start of subprocess tests 1147s # End of subprocess tests 1147s # End of aligned-mem tests 1147s # End of utils tests 1147s TAP version 14 1147s # random seed: R02S2da1416526c2322ee83f4b41fc26c207 1147s 1..1 1147s # Start of gobject tests 1147s # Start of refcount tests 1147s # Executing: glib/properties-refcount3.test 1152s # Executing: glib/properties-refcount3.test 1157s # Executing: glib/properties-refcount3.test 1162s # Executing: glib/properties-refcount3.test 1167s # Executing: glib/properties-refcount3.test 1172s # Executing: glib/properties-refcount3.test 1177s # 1177s # stopping 1177s # 1177s # stopped 1177s # 1177s # 9696610 187433 1177s # 1177s ok 1 /gobject/refcount/properties-3 1177s # slow test /gobject/refcount/properties-3 executed in 30.00 secs 1177s # End of refcount tests 1177s # End of gobject tests 1177s ok - glib/properties-refcount3.test 1177s # Running test: glib/simple-proxy.test 1177s TAP version 14 1177s # random seed: R02Sf35887e9e10fe4d924948eb3dcb8c288 1177s 1..3 1177s # Start of static-proxy tests 1177s ok 1 /static-proxy/uri 1177s ok 2 /static-proxy/socks 1177s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string *.eee.xx:8000 1177s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 10.0.0.1:8000 1177s ok 3 /static-proxy/ignore 1177s # End of static-proxy tests 1177s ok - glib/simple-proxy.test 1177s # Running test: glib/bitlock.test 1177s TAP version 14 1177s # random seed: R02Sf0e0a2db747cce68e4276b412afc5532 1177s 1..2 1177s # Start of bitlock tests 1177s # Start of performance tests 1177s # max perf: iterations per second 1177s ok 1 /bitlock/performance/uncontended 1177s ok 2 /bitlock/performance/parallel 1177s # End of performance tests 1177s # End of bitlock tests 1177s ok - glib/bitlock.test 1177s # Running test: glib/environment.test 1177s TAP version 14 1177s # random seed: R02Sfac03b8e3bc387f79f6632eec842d7b4 1177s 1..7 1177s # Start of environ tests 1177s # /environ/listenv summary: Test g_get_environ() returns an array of unique keys, all of which can be individually queried using g_getenv() to return the same value. 1177s ok 1 /environ/listenv 1177s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 1177s ok 2 /environ/getenv 1177s ok - glib/environment.test 1177s # Running test: glib/utils-c-89.test 1177s ok 3 /environ/setenv 1177s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 1177s ok 4 /environ/array 1177s # /environ/null summary: Test getting and setting variables on a NULL envp array. 1177s ok 5 /environ/null 1177s # /environ/case summary: Test that matching environment variables is case-insensitive on Windows and not on other platforms, since envvars were case-insensitive on DOS. 1177s ok 6 /environ/case 1177s # /environ/expansion summary: Test expansion of environment variable references. 1177s ok 7 /environ/expansion # SKIP Environment variable expansion is only supported on Windows 1177s # End of environ tests 1177s TAP version 14 1177s # random seed: R02Scee9bd4c1535d58aacc204abdfdb39bc 1177s 1..41 1177s # Start of utils tests 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/language-names/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/language-names/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/language-names/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/language-names/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/language-names/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/language-names/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/language-names/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/language-names/.dirs/runtime 1177s ok 1 /utils/language-names 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/locale-variants/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/locale-variants/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/locale-variants/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/locale-variants/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/locale-variants/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/locale-variants/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/locale-variants/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/locale-variants/.dirs/runtime 1177s # Testing locale ‘en’ 1177s # Testing locale ‘sr@latin’ 1177s # Testing locale ‘fr_BE’ 1177s # Testing locale ‘sr_SR@latin’ 1177s # Testing locale ‘sr_SR@latin.UTF-8’ 1177s # Testing locale ‘sr@latin_invalid’ 1177s # Testing locale ‘sr.UTF-8@latin’ 1177s # Testing locale ‘sr.UTF-8_latin’ 1177s # Testing locale ‘sr.UTF-8@latin_invalid’ 1177s ok 2 /utils/locale-variants 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/version/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/version/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/version/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/version/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/version/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/version/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/version/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/version/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/version/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/version/.dirs/runtime 1177s ok 3 /utils/version 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/appname/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/appname/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/appname/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/appname/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/appname/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/appname/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/appname/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/appname/.dirs/runtime 1177s ok 4 /utils/appname 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/prgname-thread-safety/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/prgname-thread-safety/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/prgname-thread-safety/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/prgname-thread-safety/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/prgname-thread-safety/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/prgname-thread-safety/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/prgname-thread-safety/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/prgname-thread-safety/.dirs/runtime 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1177s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1177s ok 5 /utils/prgname-thread-safety 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/tmpdir/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/tmpdir/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/tmpdir/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/tmpdir/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/tmpdir/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/tmpdir/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/tmpdir/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/tmpdir/.dirs/runtime 1177s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1177s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1177s Unable to clean up temporary directory /tmp/test_utils-c-89_QP0AK3/utils/tmpdir: No such file or directory 1177s ok 6 /utils/tmpdir 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/basic_bits/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/basic_bits/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/basic_bits/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/basic_bits/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/basic_bits/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/basic_bits/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/basic_bits/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/basic_bits/.dirs/runtime 1177s ok 7 /utils/basic_bits 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/bits/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/bits/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/bits/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/bits/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/bits/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/bits/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/bits/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/bits/.dirs/runtime 1177s ok 8 /utils/bits 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/swap/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/swap/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/swap/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/swap/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/swap/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/swap/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/swap/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/swap/.dirs/runtime 1177s ok 9 /utils/swap 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/find-program/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/find-program/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/find-program/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/find-program/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/find-program/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/find-program/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/find-program/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/find-program/.dirs/runtime 1177s ok 10 /utils/find-program 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/find-program-for-path/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/find-program-for-path/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/find-program-for-path/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/find-program-for-path/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/find-program-for-path/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/find-program-for-path/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/find-program-for-path/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/find-program-for-path/.dirs/runtime 1177s ok 11 /utils/find-program-for-path 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/debug/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/debug/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/debug/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/debug/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/debug/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/debug/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/debug/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/debug/.dirs/runtime 1177s Unable to clean up temporary directory /tmp/test_utils-c-89_QP0AK3/utils/debug: No such file or directory 1177s ok 12 /utils/debug 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/codeset/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/codeset/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/codeset/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/codeset/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/codeset/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/codeset/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/codeset/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/codeset/.dirs/runtime 1177s ok 13 /utils/codeset 1177s ok - glib/utils-c-89.test 1177s # Running test: glib/mutex.test 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/codeset2/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/codeset2/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/codeset2/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/codeset2/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/codeset2/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/codeset2/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/codeset2/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/codeset2/.dirs/runtime 1177s Unable to clean up temporary directory /tmp/test_utils-c-89_QP0AK3/utils/codeset2: No such file or directory 1177s ok 14 /utils/codeset2 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/console-charset/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/console-charset/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/console-charset/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/console-charset/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/console-charset/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/console-charset/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/console-charset/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/console-charset/.dirs/runtime 1177s ok 15 /utils/console-charset 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/gettext/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/gettext/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/gettext/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/gettext/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/gettext/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/gettext/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/gettext/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/gettext/.dirs/runtime 1177s ok 16 /utils/gettext 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/username/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/username/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/username/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/username/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/username/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/username/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/username/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/username/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/username/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/username/.dirs/runtime 1177s ok 17 /utils/username 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/realname/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/realname/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/realname/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/realname/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/realname/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/realname/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/realname/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/realname/.dirs/runtime 1177s ok 18 /utils/realname 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/hostname/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/hostname/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/hostname/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/hostname/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/hostname/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/hostname/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/hostname/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/hostname/.dirs/runtime 1177s ok 19 /utils/hostname 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/os-info/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/os-info/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/os-info/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/os-info/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/os-info/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/os-info/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/os-info/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/os-info/.dirs/runtime 1177s # NAME: Ubuntu 1177s ok 20 /utils/os-info 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/.dirs/runtime 1177s ok 21 /utils/clear-pointer 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer-cast/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer-cast/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/clear-pointer-cast/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer-cast/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/clear-pointer-cast/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer-cast/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer-cast/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer-cast/.dirs/runtime 1177s ok 22 /utils/clear-pointer-cast 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/take-pointer/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/take-pointer/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/take-pointer/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/take-pointer/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/take-pointer/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/take-pointer/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/take-pointer/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/take-pointer/.dirs/runtime 1177s ok 23 /utils/take-pointer 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-source/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-source/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/clear-source/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-source/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/clear-source/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-source/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-source/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/clear-source/.dirs/runtime 1177s ok 24 /utils/clear-source 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/misc-mem/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/misc-mem/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/misc-mem/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/misc-mem/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/misc-mem/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/misc-mem/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/misc-mem/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/misc-mem/.dirs/runtime 1177s ok 25 /utils/misc-mem 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/.dirs/runtime 1177s # /utils/aligned-mem summary: Aligned memory allocator 1177s # Alignment must not be zero 1177s # Alignment must be a power of two 1177s # Alignment must be a multiple of sizeof(void*) 1177s ok 26 /utils/aligned-mem 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/free-sized/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/free-sized/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/free-sized/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/free-sized/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/free-sized/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/free-sized/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/free-sized/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/free-sized/.dirs/runtime 1177s # /utils/free-sized summary: Check that g_free_sized() works 1177s ok 27 /utils/free-sized 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/nullify/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/nullify/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/nullify/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/nullify/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/nullify/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/nullify/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/nullify/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/nullify/.dirs/runtime 1177s ok 28 /utils/nullify 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/atexit/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/atexit/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/atexit/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/atexit/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/atexit/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/atexit/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/atexit/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/atexit/.dirs/runtime 1177s Unable to clean up temporary directory /tmp/test_utils-c-89_QP0AK3/utils/atexit: No such file or directory 1177s ok 29 /utils/atexit 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/check-setuid/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/check-setuid/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/check-setuid/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/check-setuid/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/check-setuid/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/check-setuid/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/check-setuid/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/check-setuid/.dirs/runtime 1177s ok 30 /utils/check-setuid 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/int-limits/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/int-limits/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/int-limits/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/int-limits/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/int-limits/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/int-limits/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/int-limits/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/int-limits/.dirs/runtime 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1177s ok 31 /utils/int-limits 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-list/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-list/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/clear-list/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-list/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/clear-list/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-list/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-list/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/clear-list/.dirs/runtime 1177s ok 32 /utils/clear-list 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-slist/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-slist/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/clear-slist/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-slist/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/clear-slist/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-slist/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-slist/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/clear-slist/.dirs/runtime 1177s ok 33 /utils/clear-slist 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/steal-handle-id/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/steal-handle-id/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/steal-handle-id/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/steal-handle-id/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/steal-handle-id/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/steal-handle-id/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/steal-handle-id/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/steal-handle-id/.dirs/runtime 1177s ok 34 /utils/steal-handle-id 1177s # Start of user-special-dirs tests 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/desktop/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/desktop/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/desktop/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/desktop/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/desktop/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/desktop/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/desktop/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/desktop/.dirs/runtime 1177s ok 35 /utils/user-special-dirs/desktop 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/load-unlocked/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/load-unlocked/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/load-unlocked/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/load-unlocked/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1177s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1177s Unable to clean up temporary directory /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/load-unlocked: No such file or directory 1177s ok 36 /utils/user-special-dirs/load-unlocked 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/reload-leaks/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/reload-leaks/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/reload-leaks/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/reload-leaks/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1177s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1177s Unable to clean up temporary directory /tmp/test_utils-c-89_QP0AK3/utils/user-special-dirs/reload-leaks: No such file or directory 1177s ok 37 /utils/user-special-dirs/reload-leaks 1177s # End of user-special-dirs tests 1177s # Start of clear-pointer tests 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/side-effects/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/side-effects/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/side-effects/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/side-effects/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/side-effects/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/side-effects/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/side-effects/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/clear-pointer/side-effects/.dirs/runtime 1177s ok 38 /utils/clear-pointer/side-effects 1177s # End of clear-pointer tests 1177s # Start of aligned-mem tests 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/alignment/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/alignment/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/alignment/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/alignment/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/alignment/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/alignment/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/alignment/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/alignment/.dirs/runtime 1177s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1177s ok 39 /utils/aligned-mem/alignment 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/zeroed/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/zeroed/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/zeroed/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/zeroed/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/zeroed/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/zeroed/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/zeroed/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/zeroed/.dirs/runtime 1177s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1177s ok 40 /utils/aligned-mem/zeroed 1177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/free-sized/.dirs/home 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/free-sized/.dirs/cache 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/free-sized/.dirs/system-config2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/free-sized/.dirs/config 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/free-sized/.dirs/system-data2 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/free-sized/.dirs/data 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/free-sized/.dirs/state 1177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_QP0AK3/utils/aligned-mem/free-sized/.dirs/runtime 1177s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1177s ok 41 /utils/aligned-mem/free-sized 1177s # Start of subprocess tests 1177s # End of subprocess tests 1177s # End of aligned-mem tests 1177s # End of utils tests 1177s TAP version 14 1177s # random seed: R02S6e0f7a49960d49375f53b89b21e1a216 1177s 1..17 1177s # Start of thread tests 1177s ok 1 /thread/mutex1 1177s ok 2 /thread/mutex2 1177s ok 3 /thread/mutex3 1177s ok 4 /thread/mutex4 1177s # Executing: glib/mutex.test 1178s ok 5 /thread/mutex5 1178s # slow test /thread/mutex5 executed in 1.26 secs 1178s # Start of mutex tests 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1178s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1178s ok 6 /thread/mutex/errno 1178s # Start of perf tests 1178s # max perf: 0.500000 mips 1178s ok 7 /thread/mutex/perf/uncontended 1178s # Start of contended tests 1178s # max perf: 2.000000 mips 1178s ok 8 /thread/mutex/perf/contended/1 1178s # max perf: 3.000000 mips 1178s ok 9 /thread/mutex/perf/contended/2 1178s # max perf: 4.000000 mips 1178s ok 10 /thread/mutex/perf/contended/3 1178s # max perf: 2.500000 mips 1178s ok 11 /thread/mutex/perf/contended/4 1178s # max perf: 3.000000 mips 1178s ok 12 /thread/mutex/perf/contended/5 1178s # max perf: 3.500000 mips 1178s ok 13 /thread/mutex/perf/contended/6 1178s # max perf: 8.000000 mips 1178s ok 14 /thread/mutex/perf/contended/7 1178s # max perf: 2.250000 mips 1178s ok 15 /thread/mutex/perf/contended/8 1178s # max perf: 1.666667 mips 1178s ok 16 /thread/mutex/perf/contended/9 1178s # max perf: 3.666667 mips 1178s ok 17 /thread/mutex/perf/contended/10 1178s # End of contended tests 1178s # End of perf tests 1178s # End of mutex tests 1178s # End of thread tests 1178s ok - glib/mutex.test 1178s # Running test: glib/utf8-private.test 1178s TAP version 14 1178s # random seed: R02Sb6ca6f3e6e9776005f8db785caafbf08 1178s 1..2 1178s # Start of utf8 tests 1178s ok 1 /utf8/utf8-to-utf16-make-valid 1178s ok 2 /utf8/utf8-to-utf16-make-valid-backtrack 1178s # End of utf8 tests 1178s ok - glib/utf8-private.test 1178s # Running test: glib/autoptr-gio.test 1178s TAP version 14 1178s # random seed: R02Sf8572787e723fe519fb7b3d99bad1710 1178s 1..1 1178s # Start of autoptr tests 1178s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1178s ok 1 /autoptr/autoptr 1178s # End of autoptr tests 1178s ok - glib/autoptr-gio.test 1178s # Running test: glib/fdo-notification-backend.test 1178s TAP version 14 1178s # random seed: R02S057b32c7e08280ab6941849b73c1e550 1178s 1..2 1178s # Start of fdo-notification-backend tests 1178s # Test constructing a GFdoNotificationBackend 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s ok 1 /fdo-notification-backend/construction 1178s # Start of dbus tests 1178s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1178s ok 2 /fdo-notification-backend/dbus/activate-action 1178s # End of dbus tests 1178s # End of fdo-notification-backend tests 1178s ok - glib/fdo-notification-backend.test 1178s # Running test: glib/dump.test 1178s ok - glib/dump.test 1178s TAP version 14 1178s # random seed: R02S43c05c20981e5a9086c6d4d4f75b3b7d 1178s 1..4 1178s # Start of dump tests 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_LQPJK3/dump/empty-file/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_LQPJK3/dump/empty-file/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_LQPJK3/dump/empty-file/.dirs/system-config1:/tmp/test_dump_LQPJK3/dump/empty-file/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_LQPJK3/dump/empty-file/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_LQPJK3/dump/empty-file/.dirs/system-data1:/tmp/test_dump_LQPJK3/dump/empty-file/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_LQPJK3/dump/empty-file/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_LQPJK3/dump/empty-file/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_LQPJK3/dump/empty-file/.dirs/runtime 1178s ok 1 /dump/empty-file 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_LQPJK3/dump/missing-get-type/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_LQPJK3/dump/missing-get-type/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_LQPJK3/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_LQPJK3/dump/missing-get-type/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_LQPJK3/dump/missing-get-type/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_LQPJK3/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_LQPJK3/dump/missing-get-type/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_LQPJK3/dump/missing-get-type/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_LQPJK3/dump/missing-get-type/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_LQPJK3/dump/missing-get-type/.dirs/runtime 1178s Invalid GType function: 'does_not_exist_get_type' 1178s ok 2 /dump/missing-get-type 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_LQPJK3/dump/missing-quark/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_LQPJK3/dump/missing-quark/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_LQPJK3/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_LQPJK3/dump/missing-quark/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_LQPJK3/dump/missing-quark/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_LQPJK3/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_LQPJK3/dump/missing-quark/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_LQPJK3/dump/missing-quark/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_LQPJK3/dump/missing-quark/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_LQPJK3/dump/missing-quark/.dirs/runtime 1178s Invalid error quark function: 'does_not_exist_error' 1178s ok 3 /dump/missing-quark 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_LQPJK3/dump/basic/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_LQPJK3/dump/basic/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_LQPJK3/dump/basic/.dirs/system-config1:/tmp/test_dump_LQPJK3/dump/basic/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_LQPJK3/dump/basic/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_LQPJK3/dump/basic/.dirs/system-data1:/tmp/test_dump_LQPJK3/dump/basic/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_LQPJK3/dump/basic/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_LQPJK3/dump/basic/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_LQPJK3/dump/basic/.dirs/runtime 1178s ok 4 /dump/basic 1178s # End of dump tests 1178s TAP version 14 1178s # random seed: R02Sedb07f9e6ec387a8c02f2ed826448fdc 1178s 1..9 1178s # Start of gdbus tests 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/empty-address/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/empty-address/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/empty-address/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/empty-address/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/empty-address/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/empty-address/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/empty-address/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_A8RJK3/gdbus/empty-address/.dirs/runtime 1178s ok 1 /gdbus/empty-address 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unsupported-address/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unsupported-address/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/unsupported-address/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unsupported-address/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/unsupported-address/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unsupported-address/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unsupported-address/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unsupported-address/.dirs/runtime 1178s ok 2 /gdbus/unsupported-address 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/address-parsing/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/address-parsing/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/address-parsing/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/address-parsing/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/address-parsing/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/address-parsing/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/address-parsing/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_A8RJK3/gdbus/address-parsing/.dirs/runtime 1178s ok 3 /gdbus/address-parsing 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unix-address/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unix-address/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/unix-address/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unix-address/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/unix-address/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unix-address/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unix-address/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_A8RJK3/gdbus/unix-address/.dirs/runtime 1178s ok 4 /gdbus/unix-address 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/nonce-tcp-address/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/nonce-tcp-address/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/nonce-tcp-address/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/nonce-tcp-address/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/nonce-tcp-address/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/nonce-tcp-address/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/nonce-tcp-address/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_A8RJK3/gdbus/nonce-tcp-address/.dirs/runtime 1178s ok 5 /gdbus/nonce-tcp-address 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/tcp-address/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/tcp-address/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/tcp-address/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/tcp-address/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/tcp-address/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/tcp-address/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/tcp-address/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_A8RJK3/gdbus/tcp-address/.dirs/runtime 1178s ok 6 /gdbus/tcp-address 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/autolaunch-address/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/autolaunch-address/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/autolaunch-address/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/autolaunch-address/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/autolaunch-address/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/autolaunch-address/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/autolaunch-address/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_A8RJK3/gdbus/autolaunch-address/.dirs/runtime 1178s # Running test: glib/gdbus-addresses.test 1178s ok 7 /gdbus/autolaunch-address 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/mixed-address/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/mixed-address/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/mixed-address/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/mixed-address/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/mixed-address/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/mixed-address/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/mixed-address/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_A8RJK3/gdbus/mixed-address/.dirs/runtime 1178s ok - glib/gdbus-addresses.test 1178s # Running test: glib/async-splice-output-stream.test 1178s ok 8 /gdbus/mixed-address 1178s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/escape-address/.dirs/home 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/escape-address/.dirs/cache 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/escape-address/.dirs/system-config2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/escape-address/.dirs/config 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_A8RJK3/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_A8RJK3/gdbus/escape-address/.dirs/system-data2 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/escape-address/.dirs/data 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_A8RJK3/gdbus/escape-address/.dirs/state 1178s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_A8RJK3/gdbus/escape-address/.dirs/runtime 1178s ok 9 /gdbus/escape-address 1178s # End of gdbus tests 1178s TAP version 14 1178s # random seed: R02S6d3e1e0cba7df1c258ab8ddbb47e0a6f 1178s 1..5 1178s # Start of async-splice tests 1178s ok 1 /async-splice/copy-chunks 1178s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1178s ok 2 /async-splice/copy-chunks-threaded-input 1178s ok 3 /async-splice/copy-chunks-threaded-output 1178s ok 4 /async-splice/copy-chunks-threaded 1178s ok 5 /async-splice/cancelled 1178s # End of async-splice tests 1178s ok - glib/async-splice-output-stream.test 1178s # Running test: glib/memory-monitor-portal.test 1179s TAP version 13 1179s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 1179s 1..1 1179s ok - glib/memory-monitor-portal.test 1179s # Running test: glib/checksum.test 1179s TAP version 14 1179s # random seed: R02S57d0f0415ad1ef96e5ed3f3c8714f97b 1179s 1..1851 1179s # Start of checksum tests 1179s ok 1 /checksum/unsupported 1179s # Start of MD5 tests 1179s ok 2 /checksum/MD5/0 1179s ok 3 /checksum/MD5/1 1179s ok 4 /checksum/MD5/2 1179s ok 5 /checksum/MD5/3 1179s ok 6 /checksum/MD5/4 1179s ok 7 /checksum/MD5/5 1179s ok 8 /checksum/MD5/6 1179s ok 9 /checksum/MD5/7 1179s ok 10 /checksum/MD5/8 1179s ok 11 /checksum/MD5/9 1179s ok 12 /checksum/MD5/10 1179s ok 13 /checksum/MD5/11 1179s ok 14 /checksum/MD5/12 1179s ok 15 /checksum/MD5/13 1179s ok 16 /checksum/MD5/14 1179s ok 17 /checksum/MD5/15 1179s ok 18 /checksum/MD5/16 1179s ok 19 /checksum/MD5/17 1179s ok 20 /checksum/MD5/18 1179s ok 21 /checksum/MD5/19 1179s ok 22 /checksum/MD5/20 1179s ok 23 /checksum/MD5/21 1179s ok 24 /checksum/MD5/22 1179s ok 25 /checksum/MD5/23 1179s ok 26 /checksum/MD5/24 1179s ok 27 /checksum/MD5/25 1179s ok 28 /checksum/MD5/26 1179s ok 29 /checksum/MD5/27 1179s ok 30 /checksum/MD5/28 1179s ok 31 /checksum/MD5/29 1179s ok 32 /checksum/MD5/30 1179s ok 33 /checksum/MD5/31 1179s ok 34 /checksum/MD5/32 1179s ok 35 /checksum/MD5/33 1179s ok 36 /checksum/MD5/34 1179s ok 37 /checksum/MD5/35 1179s ok 38 /checksum/MD5/36 1179s ok 39 /checksum/MD5/37 1179s ok 40 /checksum/MD5/38 1179s ok 41 /checksum/MD5/39 1179s ok 42 /checksum/MD5/40 1179s ok 43 /checksum/MD5/41 1179s ok 44 /checksum/MD5/42 1179s ok 45 /checksum/MD5/43 1179s ok 46 /checksum/MD5/44 1179s ok 47 /checksum/MD5/45 1179s ok 48 /checksum/MD5/46 1179s ok 49 /checksum/MD5/47 1179s ok 50 /checksum/MD5/48 1179s ok 51 /checksum/MD5/49 1179s ok 52 /checksum/MD5/50 1179s ok 53 /checksum/MD5/51 1179s ok 54 /checksum/MD5/52 1179s ok 55 /checksum/MD5/53 1179s ok 56 /checksum/MD5/54 1179s ok 57 /checksum/MD5/55 1179s ok 58 /checksum/MD5/56 1179s ok 59 /checksum/MD5/57 1179s ok 60 /checksum/MD5/58 1179s ok 61 /checksum/MD5/59 1179s ok 62 /checksum/MD5/60 1179s ok 63 /checksum/MD5/61 1179s ok 64 /checksum/MD5/62 1179s ok 65 /checksum/MD5/63 1179s ok 66 /checksum/MD5/64 1179s ok 67 /checksum/MD5/65 1179s ok 68 /checksum/MD5/66 1179s ok 69 /checksum/MD5/67 1179s ok 70 /checksum/MD5/68 1179s ok 71 /checksum/MD5/69 1179s ok 72 /checksum/MD5/70 1179s ok 73 /checksum/MD5/71 1179s ok 74 /checksum/MD5/72 1179s ok 75 /checksum/MD5/73 1179s ok 76 /checksum/MD5/74 1179s ok 77 /checksum/MD5/75 1179s ok 78 /checksum/MD5/76 1179s ok 79 /checksum/MD5/77 1179s ok 80 /checksum/MD5/78 1179s ok 81 /checksum/MD5/79 1179s ok 82 /checksum/MD5/80 1179s ok 83 /checksum/MD5/81 1179s ok 84 /checksum/MD5/82 1179s ok 85 /checksum/MD5/83 1179s ok 86 /checksum/MD5/84 1179s ok 87 /checksum/MD5/85 1179s ok 88 /checksum/MD5/86 1179s ok 89 /checksum/MD5/87 1179s ok 90 /checksum/MD5/88 1179s ok 91 /checksum/MD5/89 1179s ok 92 /checksum/MD5/90 1179s ok 93 /checksum/MD5/91 1179s ok 94 /checksum/MD5/92 1179s ok 95 /checksum/MD5/93 1179s ok 96 /checksum/MD5/94 1179s ok 97 /checksum/MD5/95 1179s ok 98 /checksum/MD5/96 1179s ok 99 /checksum/MD5/97 1179s ok 100 /checksum/MD5/98 1179s ok 101 /checksum/MD5/99 1179s ok 102 /checksum/MD5/100 1179s ok 103 /checksum/MD5/101 1179s ok 104 /checksum/MD5/102 1179s ok 105 /checksum/MD5/103 1179s ok 106 /checksum/MD5/104 1179s ok 107 /checksum/MD5/105 1179s ok 108 /checksum/MD5/106 1179s ok 109 /checksum/MD5/107 1179s ok 110 /checksum/MD5/108 1179s ok 111 /checksum/MD5/109 1179s ok 112 /checksum/MD5/110 1179s ok 113 /checksum/MD5/111 1179s ok 114 /checksum/MD5/112 1179s ok 115 /checksum/MD5/113 1179s ok 116 /checksum/MD5/114 1179s ok 117 /checksum/MD5/115 1179s ok 118 /checksum/MD5/116 1179s ok 119 /checksum/MD5/117 1179s ok 120 /checksum/MD5/118 1179s ok 121 /checksum/MD5/119 1179s ok 122 /checksum/MD5/120 1179s ok 123 /checksum/MD5/121 1179s ok 124 /checksum/MD5/122 1179s ok 125 /checksum/MD5/123 1179s ok 126 /checksum/MD5/124 1179s ok 127 /checksum/MD5/125 1179s ok 128 /checksum/MD5/126 1179s ok 129 /checksum/MD5/127 1179s ok 130 /checksum/MD5/128 1179s ok 131 /checksum/MD5/129 1179s ok 132 /checksum/MD5/130 1179s ok 133 /checksum/MD5/131 1179s ok 134 /checksum/MD5/132 1179s ok 135 /checksum/MD5/133 1179s ok 136 /checksum/MD5/134 1179s ok 137 /checksum/MD5/135 1179s ok 138 /checksum/MD5/136 1179s ok 139 /checksum/MD5/137 1179s ok 140 /checksum/MD5/138 1179s ok 141 /checksum/MD5/139 1179s ok 142 /checksum/MD5/140 1179s ok 143 /checksum/MD5/141 1179s ok 144 /checksum/MD5/142 1179s ok 145 /checksum/MD5/143 1179s ok 146 /checksum/MD5/144 1179s ok 147 /checksum/MD5/145 1179s ok 148 /checksum/MD5/146 1179s ok 149 /checksum/MD5/147 1179s ok 150 /checksum/MD5/148 1179s ok 151 /checksum/MD5/149 1179s ok 152 /checksum/MD5/150 1179s ok 153 /checksum/MD5/151 1179s ok 154 /checksum/MD5/152 1179s ok 155 /checksum/MD5/153 1179s ok 156 /checksum/MD5/154 1179s ok 157 /checksum/MD5/155 1179s ok 158 /checksum/MD5/156 1179s ok 159 /checksum/MD5/157 1179s ok 160 /checksum/MD5/158 1179s ok 161 /checksum/MD5/159 1179s ok 162 /checksum/MD5/160 1179s ok 163 /checksum/MD5/161 1179s ok 164 /checksum/MD5/162 1179s ok 165 /checksum/MD5/163 1179s ok 166 /checksum/MD5/164 1179s ok 167 /checksum/MD5/165 1179s ok 168 /checksum/MD5/166 1179s ok 169 /checksum/MD5/167 1179s ok 170 /checksum/MD5/168 1179s ok 171 /checksum/MD5/169 1179s ok 172 /checksum/MD5/170 1179s ok 173 /checksum/MD5/171 1179s ok 174 /checksum/MD5/172 1179s ok 175 /checksum/MD5/173 1179s ok 176 /checksum/MD5/174 1179s ok 177 /checksum/MD5/175 1179s ok 178 /checksum/MD5/176 1179s ok 179 /checksum/MD5/177 1179s ok 180 /checksum/MD5/178 1179s ok 181 /checksum/MD5/179 1179s ok 182 /checksum/MD5/180 1179s ok 183 /checksum/MD5/181 1179s ok 184 /checksum/MD5/182 1179s ok 185 /checksum/MD5/183 1179s ok 186 /checksum/MD5/string 1179s ok 187 /checksum/MD5/bytes 1179s # Start of reset tests 1179s ok 188 /checksum/MD5/reset/0 1179s ok 189 /checksum/MD5/reset/1 1179s ok 190 /checksum/MD5/reset/2 1179s ok 191 /checksum/MD5/reset/3 1179s ok 192 /checksum/MD5/reset/4 1179s ok 193 /checksum/MD5/reset/5 1179s ok 194 /checksum/MD5/reset/6 1179s ok 195 /checksum/MD5/reset/7 1179s ok 196 /checksum/MD5/reset/8 1179s ok 197 /checksum/MD5/reset/9 1179s ok 198 /checksum/MD5/reset/10 1179s ok 199 /checksum/MD5/reset/11 1179s ok 200 /checksum/MD5/reset/12 1179s ok 201 /checksum/MD5/reset/13 1179s ok 202 /checksum/MD5/reset/14 1179s ok 203 /checksum/MD5/reset/15 1179s ok 204 /checksum/MD5/reset/16 1179s ok 205 /checksum/MD5/reset/17 1179s ok 206 /checksum/MD5/reset/18 1179s ok 207 /checksum/MD5/reset/19 1179s ok 208 /checksum/MD5/reset/20 1179s ok 209 /checksum/MD5/reset/21 1179s ok 210 /checksum/MD5/reset/22 1179s ok 211 /checksum/MD5/reset/23 1179s ok 212 /checksum/MD5/reset/24 1179s ok 213 /checksum/MD5/reset/25 1179s ok 214 /checksum/MD5/reset/26 1179s ok 215 /checksum/MD5/reset/27 1179s ok 216 /checksum/MD5/reset/28 1179s ok 217 /checksum/MD5/reset/29 1179s ok 218 /checksum/MD5/reset/30 1179s ok 219 /checksum/MD5/reset/31 1179s ok 220 /checksum/MD5/reset/32 1179s ok 221 /checksum/MD5/reset/33 1179s ok 222 /checksum/MD5/reset/34 1179s ok 223 /checksum/MD5/reset/35 1179s ok 224 /checksum/MD5/reset/36 1179s ok 225 /checksum/MD5/reset/37 1179s ok 226 /checksum/MD5/reset/38 1179s ok 227 /checksum/MD5/reset/39 1179s ok 228 /checksum/MD5/reset/40 1179s ok 229 /checksum/MD5/reset/41 1179s ok 230 /checksum/MD5/reset/42 1179s ok 231 /checksum/MD5/reset/43 1179s ok 232 /checksum/MD5/reset/44 1179s ok 233 /checksum/MD5/reset/45 1179s ok 234 /checksum/MD5/reset/46 1179s ok 235 /checksum/MD5/reset/47 1179s ok 236 /checksum/MD5/reset/48 1179s ok 237 /checksum/MD5/reset/49 1179s ok 238 /checksum/MD5/reset/50 1179s ok 239 /checksum/MD5/reset/51 1179s ok 240 /checksum/MD5/reset/52 1179s ok 241 /checksum/MD5/reset/53 1179s ok 242 /checksum/MD5/reset/54 1179s ok 243 /checksum/MD5/reset/55 1179s ok 244 /checksum/MD5/reset/56 1179s ok 245 /checksum/MD5/reset/57 1179s ok 246 /checksum/MD5/reset/58 1179s ok 247 /checksum/MD5/reset/59 1179s ok 248 /checksum/MD5/reset/60 1179s ok 249 /checksum/MD5/reset/61 1179s ok 250 /checksum/MD5/reset/62 1179s ok 251 /checksum/MD5/reset/63 1179s ok 252 /checksum/MD5/reset/64 1179s ok 253 /checksum/MD5/reset/65 1179s ok 254 /checksum/MD5/reset/66 1179s ok 255 /checksum/MD5/reset/67 1179s ok 256 /checksum/MD5/reset/68 1179s ok 257 /checksum/MD5/reset/69 1179s ok 258 /checksum/MD5/reset/70 1179s ok 259 /checksum/MD5/reset/71 1179s ok 260 /checksum/MD5/reset/72 1179s ok 261 /checksum/MD5/reset/73 1179s ok 262 /checksum/MD5/reset/74 1179s ok 263 /checksum/MD5/reset/75 1179s ok 264 /checksum/MD5/reset/76 1179s ok 265 /checksum/MD5/reset/77 1179s ok 266 /checksum/MD5/reset/78 1179s ok 267 /checksum/MD5/reset/79 1179s ok 268 /checksum/MD5/reset/80 1179s ok 269 /checksum/MD5/reset/81 1179s ok 270 /checksum/MD5/reset/82 1179s ok 271 /checksum/MD5/reset/83 1179s ok 272 /checksum/MD5/reset/84 1179s ok 273 /checksum/MD5/reset/85 1179s ok 274 /checksum/MD5/reset/86 1179s ok 275 /checksum/MD5/reset/87 1179s ok 276 /checksum/MD5/reset/88 1179s ok 277 /checksum/MD5/reset/89 1179s ok 278 /checksum/MD5/reset/90 1179s ok 279 /checksum/MD5/reset/91 1179s ok 280 /checksum/MD5/reset/92 1179s ok 281 /checksum/MD5/reset/93 1179s ok 282 /checksum/MD5/reset/94 1179s ok 283 /checksum/MD5/reset/95 1179s ok 284 /checksum/MD5/reset/96 1179s ok 285 /checksum/MD5/reset/97 1179s ok 286 /checksum/MD5/reset/98 1179s ok 287 /checksum/MD5/reset/99 1179s ok 288 /checksum/MD5/reset/100 1179s ok 289 /checksum/MD5/reset/101 1179s ok 290 /checksum/MD5/reset/102 1179s ok 291 /checksum/MD5/reset/103 1179s ok 292 /checksum/MD5/reset/104 1179s ok 293 /checksum/MD5/reset/105 1179s ok 294 /checksum/MD5/reset/106 1179s ok 295 /checksum/MD5/reset/107 1179s ok 296 /checksum/MD5/reset/108 1179s ok 297 /checksum/MD5/reset/109 1179s ok 298 /checksum/MD5/reset/110 1179s ok 299 /checksum/MD5/reset/111 1179s ok 300 /checksum/MD5/reset/112 1179s ok 301 /checksum/MD5/reset/113 1179s ok 302 /checksum/MD5/reset/114 1179s ok 303 /checksum/MD5/reset/115 1179s ok 304 /checksum/MD5/reset/116 1179s ok 305 /checksum/MD5/reset/117 1179s ok 306 /checksum/MD5/reset/118 1179s ok 307 /checksum/MD5/reset/119 1179s ok 308 /checksum/MD5/reset/120 1179s ok 309 /checksum/MD5/reset/121 1179s ok 310 /checksum/MD5/reset/122 1179s ok 311 /checksum/MD5/reset/123 1179s ok 312 /checksum/MD5/reset/124 1179s ok 313 /checksum/MD5/reset/125 1179s ok 314 /checksum/MD5/reset/126 1179s ok 315 /checksum/MD5/reset/127 1179s ok 316 /checksum/MD5/reset/128 1179s ok 317 /checksum/MD5/reset/129 1179s ok 318 /checksum/MD5/reset/130 1179s ok 319 /checksum/MD5/reset/131 1179s ok 320 /checksum/MD5/reset/132 1179s ok 321 /checksum/MD5/reset/133 1179s ok 322 /checksum/MD5/reset/134 1179s ok 323 /checksum/MD5/reset/135 1179s ok 324 /checksum/MD5/reset/136 1179s ok 325 /checksum/MD5/reset/137 1179s ok 326 /checksum/MD5/reset/138 1179s ok 327 /checksum/MD5/reset/139 1179s ok 328 /checksum/MD5/reset/140 1179s ok 329 /checksum/MD5/reset/141 1179s ok 330 /checksum/MD5/reset/142 1179s ok 331 /checksum/MD5/reset/143 1179s ok 332 /checksum/MD5/reset/144 1179s ok 333 /checksum/MD5/reset/145 1179s ok 334 /checksum/MD5/reset/146 1179s ok 335 /checksum/MD5/reset/147 1179s ok 336 /checksum/MD5/reset/148 1179s ok 337 /checksum/MD5/reset/149 1179s ok 338 /checksum/MD5/reset/150 1179s ok 339 /checksum/MD5/reset/151 1179s ok 340 /checksum/MD5/reset/152 1179s ok 341 /checksum/MD5/reset/153 1179s ok 342 /checksum/MD5/reset/154 1179s ok 343 /checksum/MD5/reset/155 1179s ok 344 /checksum/MD5/reset/156 1179s ok 345 /checksum/MD5/reset/157 1179s ok 346 /checksum/MD5/reset/158 1179s ok 347 /checksum/MD5/reset/159 1179s ok 348 /checksum/MD5/reset/160 1179s ok 349 /checksum/MD5/reset/161 1179s ok 350 /checksum/MD5/reset/162 1179s ok 351 /checksum/MD5/reset/163 1179s ok 352 /checksum/MD5/reset/164 1179s ok 353 /checksum/MD5/reset/165 1179s ok 354 /checksum/MD5/reset/166 1179s ok 355 /checksum/MD5/reset/167 1179s ok 356 /checksum/MD5/reset/168 1179s ok 357 /checksum/MD5/reset/169 1179s ok 358 /checksum/MD5/reset/170 1179s ok 359 /checksum/MD5/reset/171 1179s ok 360 /checksum/MD5/reset/172 1179s ok 361 /checksum/MD5/reset/173 1179s ok 362 /checksum/MD5/reset/174 1179s ok 363 /checksum/MD5/reset/175 1179s ok 364 /checksum/MD5/reset/176 1179s ok 365 /checksum/MD5/reset/177 1179s ok 366 /checksum/MD5/reset/178 1179s ok 367 /checksum/MD5/reset/179 1179s ok 368 /checksum/MD5/reset/180 1179s ok 369 /checksum/MD5/reset/181 1179s ok 370 /checksum/MD5/reset/182 1179s ok 371 /checksum/MD5/reset/183 1179s # End of reset tests 1179s # End of MD5 tests 1179s # Start of SHA1 tests 1179s ok 372 /checksum/SHA1/0 1179s ok 373 /checksum/SHA1/1 1179s ok 374 /checksum/SHA1/2 1179s ok 375 /checksum/SHA1/3 1179s ok 376 /checksum/SHA1/4 1179s ok 377 /checksum/SHA1/5 1179s ok 378 /checksum/SHA1/6 1179s ok 379 /checksum/SHA1/7 1179s ok 380 /checksum/SHA1/8 1179s ok 381 /checksum/SHA1/9 1179s ok 382 /checksum/SHA1/10 1179s ok 383 /checksum/SHA1/11 1179s ok 384 /checksum/SHA1/12 1179s ok 385 /checksum/SHA1/13 1179s ok 386 /checksum/SHA1/14 1179s ok 387 /checksum/SHA1/15 1179s ok 388 /checksum/SHA1/16 1179s ok 389 /checksum/SHA1/17 1179s ok 390 /checksum/SHA1/18 1179s ok 391 /checksum/SHA1/19 1179s ok 392 /checksum/SHA1/20 1179s ok 393 /checksum/SHA1/21 1179s ok 394 /checksum/SHA1/22 1179s ok 395 /checksum/SHA1/23 1179s ok 396 /checksum/SHA1/24 1179s ok 397 /checksum/SHA1/25 1179s ok 398 /checksum/SHA1/26 1179s ok 399 /checksum/SHA1/27 1179s ok 400 /checksum/SHA1/28 1179s ok 401 /checksum/SHA1/29 1179s ok 402 /checksum/SHA1/30 1179s ok 403 /checksum/SHA1/31 1179s ok 404 /checksum/SHA1/32 1179s ok 405 /checksum/SHA1/33 1179s ok 406 /checksum/SHA1/34 1179s ok 407 /checksum/SHA1/35 1179s ok 408 /checksum/SHA1/36 1179s ok 409 /checksum/SHA1/37 1179s ok 410 /checksum/SHA1/38 1179s ok 411 /checksum/SHA1/39 1179s ok 412 /checksum/SHA1/40 1179s ok 413 /checksum/SHA1/41 1179s ok 414 /checksum/SHA1/42 1179s ok 415 /checksum/SHA1/43 1179s ok 416 /checksum/SHA1/44 1179s ok 417 /checksum/SHA1/45 1179s ok 418 /checksum/SHA1/46 1179s ok 419 /checksum/SHA1/47 1179s ok 420 /checksum/SHA1/48 1179s ok 421 /checksum/SHA1/49 1179s ok 422 /checksum/SHA1/50 1179s ok 423 /checksum/SHA1/51 1179s ok 424 /checksum/SHA1/52 1179s ok 425 /checksum/SHA1/53 1179s ok 426 /checksum/SHA1/54 1179s ok 427 /checksum/SHA1/55 1179s ok 428 /checksum/SHA1/56 1179s ok 429 /checksum/SHA1/57 1179s ok 430 /checksum/SHA1/58 1179s ok 431 /checksum/SHA1/59 1179s ok 432 /checksum/SHA1/60 1179s ok 433 /checksum/SHA1/61 1179s ok 434 /checksum/SHA1/62 1179s ok 435 /checksum/SHA1/63 1179s ok 436 /checksum/SHA1/64 1179s ok 437 /checksum/SHA1/65 1179s ok 438 /checksum/SHA1/66 1179s ok 439 /checksum/SHA1/67 1179s ok 440 /checksum/SHA1/68 1179s ok 441 /checksum/SHA1/69 1179s ok 442 /checksum/SHA1/70 1179s ok 443 /checksum/SHA1/71 1179s ok 444 /checksum/SHA1/72 1179s ok 445 /checksum/SHA1/73 1179s ok 446 /checksum/SHA1/74 1179s ok 447 /checksum/SHA1/75 1179s ok 448 /checksum/SHA1/76 1179s ok 449 /checksum/SHA1/77 1179s ok 450 /checksum/SHA1/78 1179s ok 451 /checksum/SHA1/79 1179s ok 452 /checksum/SHA1/80 1179s ok 453 /checksum/SHA1/81 1179s ok 454 /checksum/SHA1/82 1179s ok 455 /checksum/SHA1/83 1179s ok 456 /checksum/SHA1/84 1179s ok 457 /checksum/SHA1/85 1179s ok 458 /checksum/SHA1/86 1179s ok 459 /checksum/SHA1/87 1179s ok 460 /checksum/SHA1/88 1179s ok 461 /checksum/SHA1/89 1179s ok 462 /checksum/SHA1/90 1179s ok 463 /checksum/SHA1/91 1179s ok 464 /checksum/SHA1/92 1179s ok 465 /checksum/SHA1/93 1179s ok 466 /checksum/SHA1/94 1179s ok 467 /checksum/SHA1/95 1179s ok 468 /checksum/SHA1/96 1179s ok 469 /checksum/SHA1/97 1179s ok 470 /checksum/SHA1/98 1179s ok 471 /checksum/SHA1/99 1179s ok 472 /checksum/SHA1/100 1179s ok 473 /checksum/SHA1/101 1179s ok 474 /checksum/SHA1/102 1179s ok 475 /checksum/SHA1/103 1179s ok 476 /checksum/SHA1/104 1179s ok 477 /checksum/SHA1/105 1179s ok 478 /checksum/SHA1/106 1179s ok 479 /checksum/SHA1/107 1179s ok 480 /checksum/SHA1/108 1179s ok 481 /checksum/SHA1/109 1179s ok 482 /checksum/SHA1/110 1179s ok 483 /checksum/SHA1/111 1179s ok 484 /checksum/SHA1/112 1179s ok 485 /checksum/SHA1/113 1179s ok 486 /checksum/SHA1/114 1179s ok 487 /checksum/SHA1/115 1179s ok 488 /checksum/SHA1/116 1179s ok 489 /checksum/SHA1/117 1179s ok 490 /checksum/SHA1/118 1179s ok 491 /checksum/SHA1/119 1179s ok 492 /checksum/SHA1/120 1179s ok 493 /checksum/SHA1/121 1179s ok 494 /checksum/SHA1/122 1179s ok 495 /checksum/SHA1/123 1179s ok 496 /checksum/SHA1/124 1179s ok 497 /checksum/SHA1/125 1179s ok 498 /checksum/SHA1/126 1179s ok 499 /checksum/SHA1/127 1179s ok 500 /checksum/SHA1/128 1179s ok 501 /checksum/SHA1/129 1179s ok 502 /checksum/SHA1/130 1179s ok 503 /checksum/SHA1/131 1179s ok 504 /checksum/SHA1/132 1179s ok 505 /checksum/SHA1/133 1179s ok 506 /checksum/SHA1/134 1179s ok 507 /checksum/SHA1/135 1179s ok 508 /checksum/SHA1/136 1179s ok 509 /checksum/SHA1/137 1179s ok 510 /checksum/SHA1/138 1179s ok 511 /checksum/SHA1/139 1179s ok 512 /checksum/SHA1/140 1179s ok 513 /checksum/SHA1/141 1179s ok 514 /checksum/SHA1/142 1179s ok 515 /checksum/SHA1/143 1179s ok 516 /checksum/SHA1/144 1179s ok 517 /checksum/SHA1/145 1179s ok 518 /checksum/SHA1/146 1179s ok 519 /checksum/SHA1/147 1179s ok 520 /checksum/SHA1/148 1179s ok 521 /checksum/SHA1/149 1179s ok 522 /checksum/SHA1/150 1179s ok 523 /checksum/SHA1/151 1179s ok 524 /checksum/SHA1/152 1179s ok 525 /checksum/SHA1/153 1179s ok 526 /checksum/SHA1/154 1179s ok 527 /checksum/SHA1/155 1179s ok 528 /checksum/SHA1/156 1179s ok 529 /checksum/SHA1/157 1179s ok 530 /checksum/SHA1/158 1179s ok 531 /checksum/SHA1/159 1179s ok 532 /checksum/SHA1/160 1179s ok 533 /checksum/SHA1/161 1179s ok 534 /checksum/SHA1/162 1179s ok 535 /checksum/SHA1/163 1179s ok 536 /checksum/SHA1/164 1179s ok 537 /checksum/SHA1/165 1179s ok 538 /checksum/SHA1/166 1179s ok 539 /checksum/SHA1/167 1179s ok 540 /checksum/SHA1/168 1179s ok 541 /checksum/SHA1/169 1179s ok 542 /checksum/SHA1/170 1179s ok 543 /checksum/SHA1/171 1179s ok 544 /checksum/SHA1/172 1179s ok 545 /checksum/SHA1/173 1179s ok 546 /checksum/SHA1/174 1179s ok 547 /checksum/SHA1/175 1179s ok 548 /checksum/SHA1/176 1179s ok 549 /checksum/SHA1/177 1179s ok 550 /checksum/SHA1/178 1179s ok 551 /checksum/SHA1/179 1179s ok 552 /checksum/SHA1/180 1179s ok 553 /checksum/SHA1/181 1179s ok 554 /checksum/SHA1/182 1179s ok 555 /checksum/SHA1/183 1179s ok 556 /checksum/SHA1/string 1179s ok 557 /checksum/SHA1/bytes 1179s # Start of reset tests 1179s ok 558 /checksum/SHA1/reset/0 1179s ok 559 /checksum/SHA1/reset/1 1179s ok 560 /checksum/SHA1/reset/2 1179s ok 561 /checksum/SHA1/reset/3 1179s ok 562 /checksum/SHA1/reset/4 1179s ok 563 /checksum/SHA1/reset/5 1179s ok 564 /checksum/SHA1/reset/6 1179s ok 565 /checksum/SHA1/reset/7 1179s ok 566 /checksum/SHA1/reset/8 1179s ok 567 /checksum/SHA1/reset/9 1179s ok 568 /checksum/SHA1/reset/10 1179s ok 569 /checksum/SHA1/reset/11 1179s ok 570 /checksum/SHA1/reset/12 1179s ok 571 /checksum/SHA1/reset/13 1179s ok 572 /checksum/SHA1/reset/14 1179s ok 573 /checksum/SHA1/reset/15 1179s ok 574 /checksum/SHA1/reset/16 1179s ok 575 /checksum/SHA1/reset/17 1179s ok 576 /checksum/SHA1/reset/18 1179s ok 577 /checksum/SHA1/reset/19 1179s ok 578 /checksum/SHA1/reset/20 1179s ok 579 /checksum/SHA1/reset/21 1179s ok 580 /checksum/SHA1/reset/22 1179s ok 581 /checksum/SHA1/reset/23 1179s ok 582 /checksum/SHA1/reset/24 1179s ok 583 /checksum/SHA1/reset/25 1179s ok 584 /checksum/SHA1/reset/26 1179s ok 585 /checksum/SHA1/reset/27 1179s ok 586 /checksum/SHA1/reset/28 1179s ok 587 /checksum/SHA1/reset/29 1179s ok 588 /checksum/SHA1/reset/30 1179s ok 589 /checksum/SHA1/reset/31 1179s ok 590 /checksum/SHA1/reset/32 1179s ok 591 /checksum/SHA1/reset/33 1179s ok 592 /checksum/SHA1/reset/34 1179s ok 593 /checksum/SHA1/reset/35 1179s ok 594 /checksum/SHA1/reset/36 1179s ok 595 /checksum/SHA1/reset/37 1179s ok 596 /checksum/SHA1/reset/38 1179s ok 597 /checksum/SHA1/reset/39 1179s ok 598 /checksum/SHA1/reset/40 1179s ok 599 /checksum/SHA1/reset/41 1179s ok 600 /checksum/SHA1/reset/42 1179s ok 601 /checksum/SHA1/reset/43 1179s ok 602 /checksum/SHA1/reset/44 1179s ok 603 /checksum/SHA1/reset/45 1179s ok 604 /checksum/SHA1/reset/46 1179s ok 605 /checksum/SHA1/reset/47 1179s ok 606 /checksum/SHA1/reset/48 1179s ok 607 /checksum/SHA1/reset/49 1179s ok 608 /checksum/SHA1/reset/50 1179s ok 609 /checksum/SHA1/reset/51 1179s ok 610 /checksum/SHA1/reset/52 1179s ok 611 /checksum/SHA1/reset/53 1179s ok 612 /checksum/SHA1/reset/54 1179s ok 613 /checksum/SHA1/reset/55 1179s ok 614 /checksum/SHA1/reset/56 1179s ok 615 /checksum/SHA1/reset/57 1179s ok 616 /checksum/SHA1/reset/58 1179s ok 617 /checksum/SHA1/reset/59 1179s ok 618 /checksum/SHA1/reset/60 1179s ok 619 /checksum/SHA1/reset/61 1179s ok 620 /checksum/SHA1/reset/62 1179s ok 621 /checksum/SHA1/reset/63 1179s ok 622 /checksum/SHA1/reset/64 1179s ok 623 /checksum/SHA1/reset/65 1179s ok 624 /checksum/SHA1/reset/66 1179s ok 625 /checksum/SHA1/reset/67 1179s ok 626 /checksum/SHA1/reset/68 1179s ok 627 /checksum/SHA1/reset/69 1179s ok 628 /checksum/SHA1/reset/70 1179s ok 629 /checksum/SHA1/reset/71 1179s ok 630 /checksum/SHA1/reset/72 1179s ok 631 /checksum/SHA1/reset/73 1179s ok 632 /checksum/SHA1/reset/74 1179s ok 633 /checksum/SHA1/reset/75 1179s ok 634 /checksum/SHA1/reset/76 1179s ok 635 /checksum/SHA1/reset/77 1179s ok 636 /checksum/SHA1/reset/78 1179s ok 637 /checksum/SHA1/reset/79 1179s ok 638 /checksum/SHA1/reset/80 1179s ok 639 /checksum/SHA1/reset/81 1179s ok 640 /checksum/SHA1/reset/82 1179s ok 641 /checksum/SHA1/reset/83 1179s ok 642 /checksum/SHA1/reset/84 1179s ok 643 /checksum/SHA1/reset/85 1179s ok 644 /checksum/SHA1/reset/86 1179s ok 645 /checksum/SHA1/reset/87 1179s ok 646 /checksum/SHA1/reset/88 1179s ok 647 /checksum/SHA1/reset/89 1179s ok 648 /checksum/SHA1/reset/90 1179s ok 649 /checksum/SHA1/reset/91 1179s ok 650 /checksum/SHA1/reset/92 1179s ok 651 /checksum/SHA1/reset/93 1179s ok 652 /checksum/SHA1/reset/94 1179s ok 653 /checksum/SHA1/reset/95 1179s ok 654 /checksum/SHA1/reset/96 1179s ok 655 /checksum/SHA1/reset/97 1179s ok 656 /checksum/SHA1/reset/98 1179s ok 657 /checksum/SHA1/reset/99 1179s ok 658 /checksum/SHA1/reset/100 1179s ok 659 /checksum/SHA1/reset/101 1179s ok 660 /checksum/SHA1/reset/102 1179s ok 661 /checksum/SHA1/reset/103 1179s ok 662 /checksum/SHA1/reset/104 1179s ok 663 /checksum/SHA1/reset/105 1179s ok 664 /checksum/SHA1/reset/106 1179s ok 665 /checksum/SHA1/reset/107 1179s ok 666 /checksum/SHA1/reset/108 1179s ok 667 /checksum/SHA1/reset/109 1179s ok 668 /checksum/SHA1/reset/110 1179s ok 669 /checksum/SHA1/reset/111 1179s ok 670 /checksum/SHA1/reset/112 1179s ok 671 /checksum/SHA1/reset/113 1179s ok 672 /checksum/SHA1/reset/114 1179s ok 673 /checksum/SHA1/reset/115 1179s ok 674 /checksum/SHA1/reset/116 1179s ok 675 /checksum/SHA1/reset/117 1179s ok 676 /checksum/SHA1/reset/118 1179s ok 677 /checksum/SHA1/reset/119 1179s ok 678 /checksum/SHA1/reset/120 1179s ok 679 /checksum/SHA1/reset/121 1179s ok 680 /checksum/SHA1/reset/122 1179s ok 681 /checksum/SHA1/reset/123 1179s ok 682 /checksum/SHA1/reset/124 1179s ok 683 /checksum/SHA1/reset/125 1179s ok 684 /checksum/SHA1/reset/126 1179s ok 685 /checksum/SHA1/reset/127 1179s ok 686 /checksum/SHA1/reset/128 1179s ok 687 /checksum/SHA1/reset/129 1179s ok 688 /checksum/SHA1/reset/130 1179s ok 689 /checksum/SHA1/reset/131 1179s ok 690 /checksum/SHA1/reset/132 1179s ok 691 /checksum/SHA1/reset/133 1179s ok 692 /checksum/SHA1/reset/134 1179s ok 693 /checksum/SHA1/reset/135 1179s ok 694 /checksum/SHA1/reset/136 1179s ok 695 /checksum/SHA1/reset/137 1179s ok 696 /checksum/SHA1/reset/138 1179s ok 697 /checksum/SHA1/reset/139 1179s ok 698 /checksum/SHA1/reset/140 1179s ok 699 /checksum/SHA1/reset/141 1179s ok 700 /checksum/SHA1/reset/142 1179s ok 701 /checksum/SHA1/reset/143 1179s ok 702 /checksum/SHA1/reset/144 1179s ok 703 /checksum/SHA1/reset/145 1179s ok 704 /checksum/SHA1/reset/146 1179s ok 705 /checksum/SHA1/reset/147 1179s ok 706 /checksum/SHA1/reset/148 1179s ok 707 /checksum/SHA1/reset/149 1179s ok 708 /checksum/SHA1/reset/150 1179s ok 709 /checksum/SHA1/reset/151 1179s ok 710 /checksum/SHA1/reset/152 1179s ok 711 /checksum/SHA1/reset/153 1179s ok 712 /checksum/SHA1/reset/154 1179s ok 713 /checksum/SHA1/reset/155 1179s ok 714 /checksum/SHA1/reset/156 1179s ok 715 /checksum/SHA1/reset/157 1179s ok 716 /checksum/SHA1/reset/158 1179s ok 717 /checksum/SHA1/reset/159 1179s ok 718 /checksum/SHA1/reset/160 1179s ok 719 /checksum/SHA1/reset/161 1179s ok 720 /checksum/SHA1/reset/162 1179s ok 721 /checksum/SHA1/reset/163 1179s ok 722 /checksum/SHA1/reset/164 1179s ok 723 /checksum/SHA1/reset/165 1179s ok 724 /checksum/SHA1/reset/166 1179s ok 725 /checksum/SHA1/reset/167 1179s ok 726 /checksum/SHA1/reset/168 1179s ok 727 /checksum/SHA1/reset/169 1179s ok 728 /checksum/SHA1/reset/170 1179s ok 729 /checksum/SHA1/reset/171 1179s ok 730 /checksum/SHA1/reset/172 1179s ok 731 /checksum/SHA1/reset/173 1179s ok 732 /checksum/SHA1/reset/174 1179s ok 733 /checksum/SHA1/reset/175 1179s ok 734 /checksum/SHA1/reset/176 1179s ok 735 /checksum/SHA1/reset/177 1179s ok 736 /checksum/SHA1/reset/178 1179s ok 737 /checksum/SHA1/reset/179 1179s ok 738 /checksum/SHA1/reset/180 1179s ok 739 /checksum/SHA1/reset/181 1179s ok 740 /checksum/SHA1/reset/182 1179s ok 741 /checksum/SHA1/reset/183 1179s # End of reset tests 1179s # End of SHA1 tests 1179s # Start of SHA256 tests 1179s ok 742 /checksum/SHA256/0 1179s ok 743 /checksum/SHA256/1 1179s ok 744 /checksum/SHA256/2 1179s ok 745 /checksum/SHA256/3 1179s ok 746 /checksum/SHA256/4 1179s ok 747 /checksum/SHA256/5 1179s ok 748 /checksum/SHA256/6 1179s ok 749 /checksum/SHA256/7 1179s ok 750 /checksum/SHA256/8 1179s ok 751 /checksum/SHA256/9 1179s ok 752 /checksum/SHA256/10 1179s ok 753 /checksum/SHA256/11 1179s ok 754 /checksum/SHA256/12 1179s ok 755 /checksum/SHA256/13 1179s ok 756 /checksum/SHA256/14 1179s ok 757 /checksum/SHA256/15 1179s ok 758 /checksum/SHA256/16 1179s ok 759 /checksum/SHA256/17 1179s ok 760 /checksum/SHA256/18 1179s ok 761 /checksum/SHA256/19 1179s ok 762 /checksum/SHA256/20 1179s ok 763 /checksum/SHA256/21 1179s ok 764 /checksum/SHA256/22 1179s ok 765 /checksum/SHA256/23 1179s ok 766 /checksum/SHA256/24 1179s ok 767 /checksum/SHA256/25 1179s ok 768 /checksum/SHA256/26 1179s ok 769 /checksum/SHA256/27 1179s ok 770 /checksum/SHA256/28 1179s ok 771 /checksum/SHA256/29 1179s ok 772 /checksum/SHA256/30 1179s ok 773 /checksum/SHA256/31 1179s ok 774 /checksum/SHA256/32 1179s ok 775 /checksum/SHA256/33 1179s ok 776 /checksum/SHA256/34 1179s ok 777 /checksum/SHA256/35 1179s ok 778 /checksum/SHA256/36 1179s ok 779 /checksum/SHA256/37 1179s ok 780 /checksum/SHA256/38 1179s ok 781 /checksum/SHA256/39 1179s ok 782 /checksum/SHA256/40 1179s ok 783 /checksum/SHA256/41 1179s ok 784 /checksum/SHA256/42 1179s ok 785 /checksum/SHA256/43 1179s ok 786 /checksum/SHA256/44 1179s ok 787 /checksum/SHA256/45 1179s ok 788 /checksum/SHA256/46 1179s ok 789 /checksum/SHA256/47 1179s ok 790 /checksum/SHA256/48 1179s ok 791 /checksum/SHA256/49 1179s ok 792 /checksum/SHA256/50 1179s ok 793 /checksum/SHA256/51 1179s ok 794 /checksum/SHA256/52 1179s ok 795 /checksum/SHA256/53 1179s ok 796 /checksum/SHA256/54 1179s ok 797 /checksum/SHA256/55 1179s ok 798 /checksum/SHA256/56 1179s ok 799 /checksum/SHA256/57 1179s ok 800 /checksum/SHA256/58 1179s ok 801 /checksum/SHA256/59 1179s ok 802 /checksum/SHA256/60 1179s ok 803 /checksum/SHA256/61 1179s ok 804 /checksum/SHA256/62 1179s ok 805 /checksum/SHA256/63 1179s ok 806 /checksum/SHA256/64 1179s ok 807 /checksum/SHA256/65 1179s ok 808 /checksum/SHA256/66 1179s ok 809 /checksum/SHA256/67 1179s ok 810 /checksum/SHA256/68 1179s ok 811 /checksum/SHA256/69 1179s ok 812 /checksum/SHA256/70 1179s ok 813 /checksum/SHA256/71 1179s ok 814 /checksum/SHA256/72 1179s ok 815 /checksum/SHA256/73 1179s ok 816 /checksum/SHA256/74 1179s ok 817 /checksum/SHA256/75 1179s ok 818 /checksum/SHA256/76 1179s ok 819 /checksum/SHA256/77 1179s ok 820 /checksum/SHA256/78 1179s ok 821 /checksum/SHA256/79 1179s ok 822 /checksum/SHA256/80 1179s ok 823 /checksum/SHA256/81 1179s ok 824 /checksum/SHA256/82 1179s ok 825 /checksum/SHA256/83 1179s ok 826 /checksum/SHA256/84 1179s ok 827 /checksum/SHA256/85 1179s ok 828 /checksum/SHA256/86 1179s ok 829 /checksum/SHA256/87 1179s ok 830 /checksum/SHA256/88 1179s ok 831 /checksum/SHA256/89 1179s ok 832 /checksum/SHA256/90 1179s ok 833 /checksum/SHA256/91 1179s ok 834 /checksum/SHA256/92 1179s ok 835 /checksum/SHA256/93 1179s ok 836 /checksum/SHA256/94 1179s ok 837 /checksum/SHA256/95 1179s ok 838 /checksum/SHA256/96 1179s ok 839 /checksum/SHA256/97 1179s ok 840 /checksum/SHA256/98 1179s ok 841 /checksum/SHA256/99 1179s ok 842 /checksum/SHA256/100 1179s ok 843 /checksum/SHA256/101 1179s ok 844 /checksum/SHA256/102 1179s ok 845 /checksum/SHA256/103 1179s ok 846 /checksum/SHA256/104 1179s ok 847 /checksum/SHA256/105 1179s ok 848 /checksum/SHA256/106 1179s ok 849 /checksum/SHA256/107 1179s ok 850 /checksum/SHA256/108 1179s ok 851 /checksum/SHA256/109 1179s ok 852 /checksum/SHA256/110 1179s ok 853 /checksum/SHA256/111 1179s ok 854 /checksum/SHA256/112 1179s ok 855 /checksum/SHA256/113 1179s ok 856 /checksum/SHA256/114 1179s ok 857 /checksum/SHA256/115 1179s ok 858 /checksum/SHA256/116 1179s ok 859 /checksum/SHA256/117 1179s ok 860 /checksum/SHA256/118 1179s ok 861 /checksum/SHA256/119 1179s ok 862 /checksum/SHA256/120 1179s ok 863 /checksum/SHA256/121 1179s ok 864 /checksum/SHA256/122 1179s ok 865 /checksum/SHA256/123 1179s ok 866 /checksum/SHA256/124 1179s ok 867 /checksum/SHA256/125 1179s ok 868 /checksum/SHA256/126 1179s ok 869 /checksum/SHA256/127 1179s ok 870 /checksum/SHA256/128 1179s ok 871 /checksum/SHA256/129 1179s ok 872 /checksum/SHA256/130 1179s ok 873 /checksum/SHA256/131 1179s ok 874 /checksum/SHA256/132 1179s ok 875 /checksum/SHA256/133 1179s ok 876 /checksum/SHA256/134 1179s ok 877 /checksum/SHA256/135 1179s ok 878 /checksum/SHA256/136 1179s ok 879 /checksum/SHA256/137 1179s ok 880 /checksum/SHA256/138 1179s ok 881 /checksum/SHA256/139 1179s ok 882 /checksum/SHA256/140 1179s ok 883 /checksum/SHA256/141 1179s ok 884 /checksum/SHA256/142 1179s ok 885 /checksum/SHA256/143 1179s ok 886 /checksum/SHA256/144 1179s ok 887 /checksum/SHA256/145 1179s ok 888 /checksum/SHA256/146 1179s ok 889 /checksum/SHA256/147 1179s ok 890 /checksum/SHA256/148 1179s ok 891 /checksum/SHA256/149 1179s ok 892 /checksum/SHA256/150 1179s ok 893 /checksum/SHA256/151 1179s ok 894 /checksum/SHA256/152 1179s ok 895 /checksum/SHA256/153 1179s ok 896 /checksum/SHA256/154 1179s ok 897 /checksum/SHA256/155 1179s ok 898 /checksum/SHA256/156 1179s ok 899 /checksum/SHA256/157 1179s ok 900 /checksum/SHA256/158 1179s ok 901 /checksum/SHA256/159 1179s ok 902 /checksum/SHA256/160 1179s ok 903 /checksum/SHA256/161 1179s ok 904 /checksum/SHA256/162 1179s ok 905 /checksum/SHA256/163 1179s ok 906 /checksum/SHA256/164 1179s ok 907 /checksum/SHA256/165 1179s ok 908 /checksum/SHA256/166 1179s ok 909 /checksum/SHA256/167 1179s ok 910 /checksum/SHA256/168 1179s ok 911 /checksum/SHA256/169 1179s ok 912 /checksum/SHA256/170 1179s ok 913 /checksum/SHA256/171 1179s ok 914 /checksum/SHA256/172 1179s ok 915 /checksum/SHA256/173 1179s ok 916 /checksum/SHA256/174 1179s ok 917 /checksum/SHA256/175 1179s ok 918 /checksum/SHA256/176 1179s ok 919 /checksum/SHA256/177 1179s ok 920 /checksum/SHA256/178 1179s ok 921 /checksum/SHA256/179 1179s ok 922 /checksum/SHA256/180 1179s ok 923 /checksum/SHA256/181 1179s ok 924 /checksum/SHA256/182 1179s ok 925 /checksum/SHA256/183 1179s ok 926 /checksum/SHA256/string 1179s ok 927 /checksum/SHA256/bytes 1179s # Start of reset tests 1179s ok 928 /checksum/SHA256/reset/0 1179s ok 929 /checksum/SHA256/reset/1 1179s ok 930 /checksum/SHA256/reset/2 1179s ok 931 /checksum/SHA256/reset/3 1179s ok 932 /checksum/SHA256/reset/4 1179s ok 933 /checksum/SHA256/reset/5 1179s ok 934 /checksum/SHA256/reset/6 1179s ok 935 /checksum/SHA256/reset/7 1179s ok 936 /checksum/SHA256/reset/8 1179s ok 937 /checksum/SHA256/reset/9 1179s ok 938 /checksum/SHA256/reset/10 1179s ok 939 /checksum/SHA256/reset/11 1179s ok 940 /checksum/SHA256/reset/12 1179s ok 941 /checksum/SHA256/reset/13 1179s ok 942 /checksum/SHA256/reset/14 1179s ok 943 /checksum/SHA256/reset/15 1179s ok 944 /checksum/SHA256/reset/16 1179s ok 945 /checksum/SHA256/reset/17 1179s ok 946 /checksum/SHA256/reset/18 1179s ok 947 /checksum/SHA256/reset/19 1179s ok 948 /checksum/SHA256/reset/20 1179s ok 949 /checksum/SHA256/reset/21 1179s ok 950 /checksum/SHA256/reset/22 1179s ok 951 /checksum/SHA256/reset/23 1179s ok 952 /checksum/SHA256/reset/24 1179s ok 953 /checksum/SHA256/reset/25 1179s ok 954 /checksum/SHA256/reset/26 1179s ok 955 /checksum/SHA256/reset/27 1179s ok 956 /checksum/SHA256/reset/28 1179s ok 957 /checksum/SHA256/reset/29 1179s ok 958 /checksum/SHA256/reset/30 1179s ok 959 /checksum/SHA256/reset/31 1179s ok 960 /checksum/SHA256/reset/32 1179s ok 961 /checksum/SHA256/reset/33 1179s ok 962 /checksum/SHA256/reset/34 1179s ok 963 /checksum/SHA256/reset/35 1179s ok 964 /checksum/SHA256/reset/36 1179s ok 965 /checksum/SHA256/reset/37 1179s ok 966 /checksum/SHA256/reset/38 1179s ok 967 /checksum/SHA256/reset/39 1179s ok 968 /checksum/SHA256/reset/40 1179s ok 969 /checksum/SHA256/reset/41 1179s ok 970 /checksum/SHA256/reset/42 1179s ok 971 /checksum/SHA256/reset/43 1179s ok 972 /checksum/SHA256/reset/44 1179s ok 973 /checksum/SHA256/reset/45 1179s ok 974 /checksum/SHA256/reset/46 1179s ok 975 /checksum/SHA256/reset/47 1179s ok 976 /checksum/SHA256/reset/48 1179s ok 977 /checksum/SHA256/reset/49 1179s ok 978 /checksum/SHA256/reset/50 1179s ok 979 /checksum/SHA256/reset/51 1179s ok 980 /checksum/SHA256/reset/52 1179s ok 981 /checksum/SHA256/reset/53 1179s ok 982 /checksum/SHA256/reset/54 1179s ok 983 /checksum/SHA256/reset/55 1179s ok 984 /checksum/SHA256/reset/56 1179s ok 985 /checksum/SHA256/reset/57 1179s ok 986 /checksum/SHA256/reset/58 1179s ok 987 /checksum/SHA256/reset/59 1179s ok 988 /checksum/SHA256/reset/60 1179s ok 989 /checksum/SHA256/reset/61 1179s ok 990 /checksum/SHA256/reset/62 1179s ok 991 /checksum/SHA256/reset/63 1179s ok 992 /checksum/SHA256/reset/64 1179s ok 993 /checksum/SHA256/reset/65 1179s ok 994 /checksum/SHA256/reset/66 1179s ok 995 /checksum/SHA256/reset/67 1179s ok 996 /checksum/SHA256/reset/68 1179s ok 997 /checksum/SHA256/reset/69 1179s ok 998 /checksum/SHA256/reset/70 1179s ok 999 /checksum/SHA256/reset/71 1179s ok 1000 /checksum/SHA256/reset/72 1179s ok 1001 /checksum/SHA256/reset/73 1179s ok 1002 /checksum/SHA256/reset/74 1179s ok 1003 /checksum/SHA256/reset/75 1179s ok 1004 /checksum/SHA256/reset/76 1179s ok 1005 /checksum/SHA256/reset/77 1179s ok 1006 /checksum/SHA256/reset/78 1179s ok 1007 /checksum/SHA256/reset/79 1179s ok 1008 /checksum/SHA256/reset/80 1179s ok 1009 /checksum/SHA256/reset/81 1179s ok 1010 /checksum/SHA256/reset/82 1179s ok 1011 /checksum/SHA256/reset/83 1179s ok 1012 /checksum/SHA256/reset/84 1179s ok 1013 /checksum/SHA256/reset/85 1179s ok 1014 /checksum/SHA256/reset/86 1179s ok 1015 /checksum/SHA256/reset/87 1179s ok 1016 /checksum/SHA256/reset/88 1179s ok 1017 /checksum/SHA256/reset/89 1179s ok 1018 /checksum/SHA256/reset/90 1179s ok 1019 /checksum/SHA256/reset/91 1179s ok 1020 /checksum/SHA256/reset/92 1179s ok 1021 /checksum/SHA256/reset/93 1179s ok 1022 /checksum/SHA256/reset/94 1179s ok 1023 /checksum/SHA256/reset/95 1179s ok 1024 /checksum/SHA256/reset/96 1179s ok 1025 /checksum/SHA256/reset/97 1179s ok 1026 /checksum/SHA256/reset/98 1179s ok 1027 /checksum/SHA256/reset/99 1179s ok 1028 /checksum/SHA256/reset/100 1179s ok 1029 /checksum/SHA256/reset/101 1179s ok 1030 /checksum/SHA256/reset/102 1179s ok 1031 /checksum/SHA256/reset/103 1179s ok 1032 /checksum/SHA256/reset/104 1179s ok 1033 /checksum/SHA256/reset/105 1179s ok 1034 /checksum/SHA256/reset/106 1179s ok 1035 /checksum/SHA256/reset/107 1179s ok 1036 /checksum/SHA256/reset/108 1179s ok 1037 /checksum/SHA256/reset/109 1179s ok 1038 /checksum/SHA256/reset/110 1179s ok 1039 /checksum/SHA256/reset/111 1179s ok 1040 /checksum/SHA256/reset/112 1179s ok 1041 /checksum/SHA256/reset/113 1179s ok 1042 /checksum/SHA256/reset/114 1179s ok 1043 /checksum/SHA256/reset/115 1179s ok 1044 /checksum/SHA256/reset/116 1179s ok 1045 /checksum/SHA256/reset/117 1179s ok 1046 /checksum/SHA256/reset/118 1179s ok 1047 /checksum/SHA256/reset/119 1179s ok 1048 /checksum/SHA256/reset/120 1179s ok 1049 /checksum/SHA256/reset/121 1179s ok 1050 /checksum/SHA256/reset/122 1179s ok 1051 /checksum/SHA256/reset/123 1179s ok 1052 /checksum/SHA256/reset/124 1179s ok 1053 /checksum/SHA256/reset/125 1179s ok 1054 /checksum/SHA256/reset/126 1179s ok 1055 /checksum/SHA256/reset/127 1179s ok 1056 /checksum/SHA256/reset/128 1179s ok 1057 /checksum/SHA256/reset/129 1179s ok 1058 /checksum/SHA256/reset/130 1179s ok 1059 /checksum/SHA256/reset/131 1179s ok 1060 /checksum/SHA256/reset/132 1179s ok 1061 /checksum/SHA256/reset/133 1179s ok 1062 /checksum/SHA256/reset/134 1179s ok 1063 /checksum/SHA256/reset/135 1179s ok 1064 /checksum/SHA256/reset/136 1179s ok 1065 /checksum/SHA256/reset/137 1179s ok 1066 /checksum/SHA256/reset/138 1179s ok 1067 /checksum/SHA256/reset/139 1179s ok 1068 /checksum/SHA256/reset/140 1179s ok 1069 /checksum/SHA256/reset/141 1179s ok 1070 /checksum/SHA256/reset/142 1179s ok 1071 /checksum/SHA256/reset/143 1179s ok 1072 /checksum/SHA256/reset/144 1179s ok 1073 /checksum/SHA256/reset/145 1179s ok 1074 /checksum/SHA256/reset/146 1179s ok 1075 /checksum/SHA256/reset/147 1179s ok 1076 /checksum/SHA256/reset/148 1179s ok 1077 /checksum/SHA256/reset/149 1179s ok 1078 /checksum/SHA256/reset/150 1179s ok 1079 /checksum/SHA256/reset/151 1179s ok 1080 /checksum/SHA256/reset/152 1179s ok 1081 /checksum/SHA256/reset/153 1179s ok 1082 /checksum/SHA256/reset/154 1179s ok 1083 /checksum/SHA256/reset/155 1179s ok 1084 /checksum/SHA256/reset/156 1179s ok 1085 /checksum/SHA256/reset/157 1179s ok 1086 /checksum/SHA256/reset/158 1179s ok 1087 /checksum/SHA256/reset/159 1179s ok 1088 /checksum/SHA256/reset/160 1179s ok 1089 /checksum/SHA256/reset/161 1179s ok 1090 /checksum/SHA256/reset/162 1179s ok 1091 /checksum/SHA256/reset/163 1179s ok 1092 /checksum/SHA256/reset/164 1179s ok 1093 /checksum/SHA256/reset/165 1179s ok 1094 /checksum/SHA256/reset/166 1179s ok 1095 /checksum/SHA256/reset/167 1179s ok 1096 /checksum/SHA256/reset/168 1179s ok 1097 /checksum/SHA256/reset/169 1179s ok 1098 /checksum/SHA256/reset/170 1179s ok 1099 /checksum/SHA256/reset/171 1179s ok 1100 /checksum/SHA256/reset/172 1179s ok 1101 /checksum/SHA256/reset/173 1179s ok 1102 /checksum/SHA256/reset/174 1179s ok 1103 /checksum/SHA256/reset/175 1179s ok 1104 /checksum/SHA256/reset/176 1179s ok 1105 /checksum/SHA256/reset/177 1179s ok 1106 /checksum/SHA256/reset/178 1179s ok 1107 /checksum/SHA256/reset/179 1179s ok 1108 /checksum/SHA256/reset/180 1179s ok 1109 /checksum/SHA256/reset/181 1179s ok 1110 /checksum/SHA256/reset/182 1179s ok 1111 /checksum/SHA256/reset/183 1179s # End of reset tests 1179s # End of SHA256 tests 1179s # Start of SHA384 tests 1179s ok 1112 /checksum/SHA384/0 1179s ok 1113 /checksum/SHA384/1 1179s ok 1114 /checksum/SHA384/2 1179s ok 1115 /checksum/SHA384/3 1179s ok 1116 /checksum/SHA384/4 1179s ok 1117 /checksum/SHA384/5 1179s ok 1118 /checksum/SHA384/6 1179s ok 1119 /checksum/SHA384/7 1179s ok 1120 /checksum/SHA384/8 1179s ok 1121 /checksum/SHA384/9 1179s ok 1122 /checksum/SHA384/10 1179s ok 1123 /checksum/SHA384/11 1179s ok 1124 /checksum/SHA384/12 1179s ok 1125 /checksum/SHA384/13 1179s ok 1126 /checksum/SHA384/14 1179s ok 1127 /checksum/SHA384/15 1179s ok 1128 /checksum/SHA384/16 1179s ok 1129 /checksum/SHA384/17 1179s ok 1130 /checksum/SHA384/18 1179s ok 1131 /checksum/SHA384/19 1179s ok 1132 /checksum/SHA384/20 1179s ok 1133 /checksum/SHA384/21 1179s ok 1134 /checksum/SHA384/22 1179s ok 1135 /checksum/SHA384/23 1179s ok 1136 /checksum/SHA384/24 1179s ok 1137 /checksum/SHA384/25 1179s ok 1138 /checksum/SHA384/26 1179s ok 1139 /checksum/SHA384/27 1179s ok 1140 /checksum/SHA384/28 1179s ok 1141 /checksum/SHA384/29 1179s ok 1142 /checksum/SHA384/30 1179s ok 1143 /checksum/SHA384/31 1179s ok 1144 /checksum/SHA384/32 1179s ok 1145 /checksum/SHA384/33 1179s ok 1146 /checksum/SHA384/34 1179s ok 1147 /checksum/SHA384/35 1179s ok 1148 /checksum/SHA384/36 1179s ok 1149 /checksum/SHA384/37 1179s ok 1150 /checksum/SHA384/38 1179s ok 1151 /checksum/SHA384/39 1179s ok 1152 /checksum/SHA384/40 1179s ok 1153 /checksum/SHA384/41 1179s ok 1154 /checksum/SHA384/42 1179s ok 1155 /checksum/SHA384/43 1179s ok 1156 /checksum/SHA384/44 1179s ok 1157 /checksum/SHA384/45 1179s ok 1158 /checksum/SHA384/46 1179s ok 1159 /checksum/SHA384/47 1179s ok 1160 /checksum/SHA384/48 1179s ok 1161 /checksum/SHA384/49 1179s ok 1162 /checksum/SHA384/50 1179s ok 1163 /checksum/SHA384/51 1179s ok 1164 /checksum/SHA384/52 1179s ok 1165 /checksum/SHA384/53 1179s ok 1166 /checksum/SHA384/54 1179s ok 1167 /checksum/SHA384/55 1179s ok 1168 /checksum/SHA384/56 1179s ok 1169 /checksum/SHA384/57 1179s ok 1170 /checksum/SHA384/58 1179s ok 1171 /checksum/SHA384/59 1179s ok 1172 /checksum/SHA384/60 1179s ok 1173 /checksum/SHA384/61 1179s ok 1174 /checksum/SHA384/62 1179s ok 1175 /checksum/SHA384/63 1179s ok 1176 /checksum/SHA384/64 1179s ok 1177 /checksum/SHA384/65 1179s ok 1178 /checksum/SHA384/66 1179s ok 1179 /checksum/SHA384/67 1179s ok 1180 /checksum/SHA384/68 1179s ok 1181 /checksum/SHA384/69 1179s ok 1182 /checksum/SHA384/70 1179s ok 1183 /checksum/SHA384/71 1179s ok 1184 /checksum/SHA384/72 1179s ok 1185 /checksum/SHA384/73 1179s ok 1186 /checksum/SHA384/74 1179s ok 1187 /checksum/SHA384/75 1179s ok 1188 /checksum/SHA384/76 1179s ok 1189 /checksum/SHA384/77 1179s ok 1190 /checksum/SHA384/78 1179s ok 1191 /checksum/SHA384/79 1179s ok 1192 /checksum/SHA384/80 1179s ok 1193 /checksum/SHA384/81 1179s ok 1194 /checksum/SHA384/82 1179s ok 1195 /checksum/SHA384/83 1179s ok 1196 /checksum/SHA384/84 1179s ok 1197 /checksum/SHA384/85 1179s ok 1198 /checksum/SHA384/86 1179s ok 1199 /checksum/SHA384/87 1179s ok 1200 /checksum/SHA384/88 1179s ok 1201 /checksum/SHA384/89 1179s ok 1202 /checksum/SHA384/90 1179s ok 1203 /checksum/SHA384/91 1179s ok 1204 /checksum/SHA384/92 1179s ok 1205 /checksum/SHA384/93 1179s ok 1206 /checksum/SHA384/94 1179s ok 1207 /checksum/SHA384/95 1179s ok 1208 /checksum/SHA384/96 1179s ok 1209 /checksum/SHA384/97 1179s ok 1210 /checksum/SHA384/98 1179s ok 1211 /checksum/SHA384/99 1179s ok 1212 /checksum/SHA384/100 1179s ok 1213 /checksum/SHA384/101 1179s ok 1214 /checksum/SHA384/102 1179s ok 1215 /checksum/SHA384/103 1179s ok 1216 /checksum/SHA384/104 1179s ok 1217 /checksum/SHA384/105 1179s ok 1218 /checksum/SHA384/106 1179s ok 1219 /checksum/SHA384/107 1179s ok 1220 /checksum/SHA384/108 1179s ok 1221 /checksum/SHA384/109 1179s ok 1222 /checksum/SHA384/110 1179s ok 1223 /checksum/SHA384/111 1179s ok 1224 /checksum/SHA384/112 1179s ok 1225 /checksum/SHA384/113 1179s ok 1226 /checksum/SHA384/114 1179s ok 1227 /checksum/SHA384/115 1179s ok 1228 /checksum/SHA384/116 1179s ok 1229 /checksum/SHA384/117 1179s ok 1230 /checksum/SHA384/118 1179s ok 1231 /checksum/SHA384/119 1179s ok 1232 /checksum/SHA384/120 1179s ok 1233 /checksum/SHA384/121 1179s ok 1234 /checksum/SHA384/122 1179s ok 1235 /checksum/SHA384/123 1179s ok 1236 /checksum/SHA384/124 1179s ok 1237 /checksum/SHA384/125 1179s ok 1238 /checksum/SHA384/126 1179s ok 1239 /checksum/SHA384/127 1179s ok 1240 /checksum/SHA384/128 1179s ok 1241 /checksum/SHA384/129 1179s ok 1242 /checksum/SHA384/130 1179s ok 1243 /checksum/SHA384/131 1179s ok 1244 /checksum/SHA384/132 1179s ok 1245 /checksum/SHA384/133 1179s ok 1246 /checksum/SHA384/134 1179s ok 1247 /checksum/SHA384/135 1179s ok 1248 /checksum/SHA384/136 1179s ok 1249 /checksum/SHA384/137 1179s ok 1250 /checksum/SHA384/138 1179s ok 1251 /checksum/SHA384/139 1179s ok 1252 /checksum/SHA384/140 1179s ok 1253 /checksum/SHA384/141 1179s ok 1254 /checksum/SHA384/142 1179s ok 1255 /checksum/SHA384/143 1179s ok 1256 /checksum/SHA384/144 1179s ok 1257 /checksum/SHA384/145 1179s ok 1258 /checksum/SHA384/146 1179s ok 1259 /checksum/SHA384/147 1179s ok 1260 /checksum/SHA384/148 1179s ok 1261 /checksum/SHA384/149 1179s ok 1262 /checksum/SHA384/150 1179s ok 1263 /checksum/SHA384/151 1179s ok 1264 /checksum/SHA384/152 1179s ok 1265 /checksum/SHA384/153 1179s ok 1266 /checksum/SHA384/154 1179s ok 1267 /checksum/SHA384/155 1179s ok 1268 /checksum/SHA384/156 1179s ok 1269 /checksum/SHA384/157 1179s ok 1270 /checksum/SHA384/158 1179s ok 1271 /checksum/SHA384/159 1179s ok 1272 /checksum/SHA384/160 1179s ok 1273 /checksum/SHA384/161 1179s ok 1274 /checksum/SHA384/162 1179s ok 1275 /checksum/SHA384/163 1179s ok 1276 /checksum/SHA384/164 1179s ok 1277 /checksum/SHA384/165 1179s ok 1278 /checksum/SHA384/166 1179s ok 1279 /checksum/SHA384/167 1179s ok 1280 /checksum/SHA384/168 1179s ok 1281 /checksum/SHA384/169 1179s ok 1282 /checksum/SHA384/170 1179s ok 1283 /checksum/SHA384/171 1179s ok 1284 /checksum/SHA384/172 1179s ok 1285 /checksum/SHA384/173 1179s ok 1286 /checksum/SHA384/174 1179s ok 1287 /checksum/SHA384/175 1179s ok 1288 /checksum/SHA384/176 1179s ok 1289 /checksum/SHA384/177 1179s ok 1290 /checksum/SHA384/178 1179s ok 1291 /checksum/SHA384/179 1179s ok 1292 /checksum/SHA384/180 1179s ok 1293 /checksum/SHA384/181 1179s ok 1294 /checksum/SHA384/182 1179s ok 1295 /checksum/SHA384/183 1179s ok 1296 /checksum/SHA384/string 1179s ok 1297 /checksum/SHA384/bytes 1179s # Start of reset tests 1179s ok 1298 /checksum/SHA384/reset/0 1179s ok 1299 /checksum/SHA384/reset/1 1179s ok 1300 /checksum/SHA384/reset/2 1179s ok 1301 /checksum/SHA384/reset/3 1179s ok 1302 /checksum/SHA384/reset/4 1179s ok 1303 /checksum/SHA384/reset/5 1179s ok 1304 /checksum/SHA384/reset/6 1179s ok 1305 /checksum/SHA384/reset/7 1179s ok 1306 /checksum/SHA384/reset/8 1179s ok 1307 /checksum/SHA384/reset/9 1179s ok 1308 /checksum/SHA384/reset/10 1179s ok 1309 /checksum/SHA384/reset/11 1179s ok 1310 /checksum/SHA384/reset/12 1179s ok 1311 /checksum/SHA384/reset/13 1179s ok 1312 /checksum/SHA384/reset/14 1179s ok 1313 /checksum/SHA384/reset/15 1179s ok 1314 /checksum/SHA384/reset/16 1179s ok 1315 /checksum/SHA384/reset/17 1179s ok 1316 /checksum/SHA384/reset/18 1179s ok 1317 /checksum/SHA384/reset/19 1179s ok 1318 /checksum/SHA384/reset/20 1179s ok 1319 /checksum/SHA384/reset/21 1179s ok 1320 /checksum/SHA384/reset/22 1179s ok 1321 /checksum/SHA384/reset/23 1179s ok 1322 /checksum/SHA384/reset/24 1179s ok 1323 /checksum/SHA384/reset/25 1179s ok 1324 /checksum/SHA384/reset/26 1179s ok 1325 /checksum/SHA384/reset/27 1179s ok 1326 /checksum/SHA384/reset/28 1179s ok 1327 /checksum/SHA384/reset/29 1179s ok 1328 /checksum/SHA384/reset/30 1179s ok 1329 /checksum/SHA384/reset/31 1179s ok 1330 /checksum/SHA384/reset/32 1179s ok 1331 /checksum/SHA384/reset/33 1179s ok 1332 /checksum/SHA384/reset/34 1179s ok 1333 /checksum/SHA384/reset/35 1179s ok 1334 /checksum/SHA384/reset/36 1179s ok 1335 /checksum/SHA384/reset/37 1179s ok 1336 /checksum/SHA384/reset/38 1179s ok 1337 /checksum/SHA384/reset/39 1179s ok 1338 /checksum/SHA384/reset/40 1179s ok 1339 /checksum/SHA384/reset/41 1179s ok 1340 /checksum/SHA384/reset/42 1179s ok 1341 /checksum/SHA384/reset/43 1179s ok 1342 /checksum/SHA384/reset/44 1179s ok 1343 /checksum/SHA384/reset/45 1179s ok 1344 /checksum/SHA384/reset/46 1179s ok 1345 /checksum/SHA384/reset/47 1179s ok 1346 /checksum/SHA384/reset/48 1179s ok 1347 /checksum/SHA384/reset/49 1179s ok 1348 /checksum/SHA384/reset/50 1179s ok 1349 /checksum/SHA384/reset/51 1179s ok 1350 /checksum/SHA384/reset/52 1179s ok 1351 /checksum/SHA384/reset/53 1179s ok 1352 /checksum/SHA384/reset/54 1179s ok 1353 /checksum/SHA384/reset/55 1179s ok 1354 /checksum/SHA384/reset/56 1179s ok 1355 /checksum/SHA384/reset/57 1179s ok 1356 /checksum/SHA384/reset/58 1179s ok 1357 /checksum/SHA384/reset/59 1179s ok 1358 /checksum/SHA384/reset/60 1179s ok 1359 /checksum/SHA384/reset/61 1179s ok 1360 /checksum/SHA384/reset/62 1179s ok 1361 /checksum/SHA384/reset/63 1179s ok 1362 /checksum/SHA384/reset/64 1179s ok 1363 /checksum/SHA384/reset/65 1179s ok 1364 /checksum/SHA384/reset/66 1179s ok 1365 /checksum/SHA384/reset/67 1179s ok 1366 /checksum/SHA384/reset/68 1179s ok 1367 /checksum/SHA384/reset/69 1179s ok 1368 /checksum/SHA384/reset/70 1179s ok 1369 /checksum/SHA384/reset/71 1179s ok 1370 /checksum/SHA384/reset/72 1179s ok 1371 /checksum/SHA384/reset/73 1179s ok 1372 /checksum/SHA384/reset/74 1179s ok 1373 /checksum/SHA384/reset/75 1179s ok 1374 /checksum/SHA384/reset/76 1179s ok 1375 /checksum/SHA384/reset/77 1179s ok 1376 /checksum/SHA384/reset/78 1179s ok 1377 /checksum/SHA384/reset/79 1179s ok 1378 /checksum/SHA384/reset/80 1179s ok 1379 /checksum/SHA384/reset/81 1179s ok 1380 /checksum/SHA384/reset/82 1179s ok 1381 /checksum/SHA384/reset/83 1179s ok 1382 /checksum/SHA384/reset/84 1179s ok 1383 /checksum/SHA384/reset/85 1179s ok 1384 /checksum/SHA384/reset/86 1179s ok 1385 /checksum/SHA384/reset/87 1179s ok 1386 /checksum/SHA384/reset/88 1179s ok 1387 /checksum/SHA384/reset/89 1179s ok 1388 /checksum/SHA384/reset/90 1179s ok 1389 /checksum/SHA384/reset/91 1179s ok 1390 /checksum/SHA384/reset/92 1179s ok 1391 /checksum/SHA384/reset/93 1179s ok 1392 /checksum/SHA384/reset/94 1179s ok 1393 /checksum/SHA384/reset/95 1179s ok 1394 /checksum/SHA384/reset/96 1179s ok 1395 /checksum/SHA384/reset/97 1179s ok 1396 /checksum/SHA384/reset/98 1179s ok 1397 /checksum/SHA384/reset/99 1179s ok 1398 /checksum/SHA384/reset/100 1179s ok 1399 /checksum/SHA384/reset/101 1179s ok 1400 /checksum/SHA384/reset/102 1179s ok 1401 /checksum/SHA384/reset/103 1179s ok 1402 /checksum/SHA384/reset/104 1179s ok 1403 /checksum/SHA384/reset/105 1179s ok 1404 /checksum/SHA384/reset/106 1179s ok 1405 /checksum/SHA384/reset/107 1179s ok 1406 /checksum/SHA384/reset/108 1179s ok 1407 /checksum/SHA384/reset/109 1179s ok 1408 /checksum/SHA384/reset/110 1179s ok 1409 /checksum/SHA384/reset/111 1179s ok 1410 /checksum/SHA384/reset/112 1179s ok 1411 /checksum/SHA384/reset/113 1179s ok 1412 /checksum/SHA384/reset/114 1179s ok 1413 /checksum/SHA384/reset/115 1179s ok 1414 /checksum/SHA384/reset/116 1179s ok 1415 /checksum/SHA384/reset/117 1179s ok 1416 /checksum/SHA384/reset/118 1179s ok 1417 /checksum/SHA384/reset/119 1179s ok 1418 /checksum/SHA384/reset/120 1179s ok 1419 /checksum/SHA384/reset/121 1179s ok 1420 /checksum/SHA384/reset/122 1179s ok 1421 /checksum/SHA384/reset/123 1179s ok 1422 /checksum/SHA384/reset/124 1179s ok 1423 /checksum/SHA384/reset/125 1179s ok 1424 /checksum/SHA384/reset/126 1179s ok 1425 /checksum/SHA384/reset/127 1179s ok 1426 /checksum/SHA384/reset/128 1179s ok 1427 /checksum/SHA384/reset/129 1179s ok 1428 /checksum/SHA384/reset/130 1179s ok 1429 /checksum/SHA384/reset/131 1179s ok 1430 /checksum/SHA384/reset/132 1179s ok 1431 /checksum/SHA384/reset/133 1179s ok 1432 /checksum/SHA384/reset/134 1179s ok 1433 /checksum/SHA384/reset/135 1179s ok 1434 /checksum/SHA384/reset/136 1179s ok 1435 /checksum/SHA384/reset/137 1179s ok 1436 /checksum/SHA384/reset/138 1179s ok 1437 /checksum/SHA384/reset/139 1179s ok 1438 /checksum/SHA384/reset/140 1179s ok 1439 /checksum/SHA384/reset/141 1179s ok 1440 /checksum/SHA384/reset/142 1179s ok 1441 /checksum/SHA384/reset/143 1179s ok 1442 /checksum/SHA384/reset/144 1179s ok 1443 /checksum/SHA384/reset/145 1179s ok 1444 /checksum/SHA384/reset/146 1179s ok 1445 /checksum/SHA384/reset/147 1179s ok 1446 /checksum/SHA384/reset/148 1179s ok 1447 /checksum/SHA384/reset/149 1179s ok 1448 /checksum/SHA384/reset/150 1179s ok 1449 /checksum/SHA384/reset/151 1179s ok 1450 /checksum/SHA384/reset/152 1179s ok 1451 /checksum/SHA384/reset/153 1179s ok 1452 /checksum/SHA384/reset/154 1179s ok 1453 /checksum/SHA384/reset/155 1179s ok 1454 /checksum/SHA384/reset/156 1179s ok 1455 /checksum/SHA384/reset/157 1179s ok 1456 /checksum/SHA384/reset/158 1179s ok 1457 /checksum/SHA384/reset/159 1179s ok 1458 /checksum/SHA384/reset/160 1179s ok 1459 /checksum/SHA384/reset/161 1179s ok 1460 /checksum/SHA384/reset/162 1179s ok 1461 /checksum/SHA384/reset/163 1179s ok 1462 /checksum/SHA384/reset/164 1179s ok 1463 /checksum/SHA384/reset/165 1179s ok 1464 /checksum/SHA384/reset/166 1179s ok 1465 /checksum/SHA384/reset/167 1179s ok 1466 /checksum/SHA384/reset/168 1179s ok 1467 /checksum/SHA384/reset/169 1179s ok 1468 /checksum/SHA384/reset/170 1179s ok 1469 /checksum/SHA384/reset/171 1179s ok 1470 /checksum/SHA384/reset/172 1179s ok 1471 /checksum/SHA384/reset/173 1179s ok 1472 /checksum/SHA384/reset/174 1179s ok 1473 /checksum/SHA384/reset/175 1179s ok 1474 /checksum/SHA384/reset/176 1179s ok 1475 /checksum/SHA384/reset/177 1179s ok 1476 /checksum/SHA384/reset/178 1179s ok 1477 /checksum/SHA384/reset/179 1179s ok 1478 /checksum/SHA384/reset/180 1179s ok 1479 /checksum/SHA384/reset/181 1179s ok 1480 /checksum/SHA384/reset/182 1179s ok 1481 /checksum/SHA384/reset/183 1179s # End of reset tests 1179s # End of SHA384 tests 1179s # Start of SHA512 tests 1179s ok 1482 /checksum/SHA512/0 1179s ok 1483 /checksum/SHA512/1 1179s ok 1484 /checksum/SHA512/2 1179s ok 1485 /checksum/SHA512/3 1179s ok 1486 /checksum/SHA512/4 1179s ok 1487 /checksum/SHA512/5 1179s ok 1488 /checksum/SHA512/6 1179s ok 1489 /checksum/SHA512/7 1179s ok 1490 /checksum/SHA512/8 1179s ok 1491 /checksum/SHA512/9 1179s ok 1492 /checksum/SHA512/10 1179s ok 1493 /checksum/SHA512/11 1179s ok 1494 /checksum/SHA512/12 1179s ok 1495 /checksum/SHA512/13 1179s ok 1496 /checksum/SHA512/14 1179s ok 1497 /checksum/SHA512/15 1179s ok 1498 /checksum/SHA512/16 1179s ok 1499 /checksum/SHA512/17 1179s ok 1500 /checksum/SHA512/18 1179s ok 1501 /checksum/SHA512/19 1179s ok 1502 /checksum/SHA512/20 1179s ok 1503 /checksum/SHA512/21 1179s ok 1504 /checksum/SHA512/22 1179s ok 1505 /checksum/SHA512/23 1179s ok 1506 /checksum/SHA512/24 1179s ok 1507 /checksum/SHA512/25 1179s ok 1508 /checksum/SHA512/26 1179s ok 1509 /checksum/SHA512/27 1179s ok 1510 /checksum/SHA512/28 1179s ok 1511 /checksum/SHA512/29 1179s ok 1512 /checksum/SHA512/30 1179s ok 1513 /checksum/SHA512/31 1179s ok 1514 /checksum/SHA512/32 1179s ok 1515 /checksum/SHA512/33 1179s ok 1516 /checksum/SHA512/34 1179s ok 1517 /checksum/SHA512/35 1179s ok 1518 /checksum/SHA512/36 1179s ok 1519 /checksum/SHA512/37 1179s ok 1520 /checksum/SHA512/38 1179s ok 1521 /checksum/SHA512/39 1179s ok 1522 /checksum/SHA512/40 1179s ok 1523 /checksum/SHA512/41 1179s ok 1524 /checksum/SHA512/42 1179s ok 1525 /checksum/SHA512/43 1179s ok 1526 /checksum/SHA512/44 1179s ok 1527 /checksum/SHA512/45 1179s ok 1528 /checksum/SHA512/46 1179s ok 1529 /checksum/SHA512/47 1179s ok 1530 /checksum/SHA512/48 1179s ok 1531 /checksum/SHA512/49 1179s ok 1532 /checksum/SHA512/50 1179s ok 1533 /checksum/SHA512/51 1179s ok 1534 /checksum/SHA512/52 1179s ok 1535 /checksum/SHA512/53 1179s ok 1536 /checksum/SHA512/54 1179s ok 1537 /checksum/SHA512/55 1179s ok 1538 /checksum/SHA512/56 1179s ok 1539 /checksum/SHA512/57 1179s ok 1540 /checksum/SHA512/58 1179s ok 1541 /checksum/SHA512/59 1179s ok 1542 /checksum/SHA512/60 1179s ok 1543 /checksum/SHA512/61 1179s ok 1544 /checksum/SHA512/62 1179s ok 1545 /checksum/SHA512/63 1179s ok 1546 /checksum/SHA512/64 1179s ok 1547 /checksum/SHA512/65 1179s ok 1548 /checksum/SHA512/66 1179s ok 1549 /checksum/SHA512/67 1179s ok 1550 /checksum/SHA512/68 1179s ok 1551 /checksum/SHA512/69 1179s ok 1552 /checksum/SHA512/70 1179s ok 1553 /checksum/SHA512/71 1179s ok 1554 /checksum/SHA512/72 1179s ok 1555 /checksum/SHA512/73 1179s ok 1556 /checksum/SHA512/74 1179s ok 1557 /checksum/SHA512/75 1179s ok 1558 /checksum/SHA512/76 1179s ok 1559 /checksum/SHA512/77 1179s ok 1560 /checksum/SHA512/78 1179s ok 1561 /checksum/SHA512/79 1179s ok 1562 /checksum/SHA512/80 1179s ok 1563 /checksum/SHA512/81 1179s ok 1564 /checksum/SHA512/82 1179s ok 1565 /checksum/SHA512/83 1179s ok 1566 /checksum/SHA512/84 1179s ok 1567 /checksum/SHA512/85 1179s ok 1568 /checksum/SHA512/86 1179s ok 1569 /checksum/SHA512/87 1179s ok 1570 /checksum/SHA512/88 1179s ok 1571 /checksum/SHA512/89 1179s ok 1572 /checksum/SHA512/90 1179s ok 1573 /checksum/SHA512/91 1179s ok 1574 /checksum/SHA512/92 1179s ok 1575 /checksum/SHA512/93 1179s ok 1576 /checksum/SHA512/94 1179s ok 1577 /checksum/SHA512/95 1179s ok 1578 /checksum/SHA512/96 1179s ok 1579 /checksum/SHA512/97 1179s ok 1580 /checksum/SHA512/98 1179s ok 1581 /checksum/SHA512/99 1179s ok 1582 /checksum/SHA512/100 1179s ok 1583 /checksum/SHA512/101 1179s ok 1584 /checksum/SHA512/102 1179s ok 1585 /checksum/SHA512/103 1179s ok 1586 /checksum/SHA512/104 1179s ok 1587 /checksum/SHA512/105 1179s ok 1588 /checksum/SHA512/106 1179s ok 1589 /checksum/SHA512/107 1179s ok 1590 /checksum/SHA512/108 1179s ok 1591 /checksum/SHA512/109 1179s ok 1592 /checksum/SHA512/110 1179s ok 1593 /checksum/SHA512/111 1179s ok 1594 /checksum/SHA512/112 1179s ok 1595 /checksum/SHA512/113 1179s ok 1596 /checksum/SHA512/114 1179s ok 1597 /checksum/SHA512/115 1179s ok 1598 /checksum/SHA512/116 1179s ok 1599 /checksum/SHA512/117 1179s ok 1600 /checksum/SHA512/118 1179s ok 1601 /checksum/SHA512/119 1179s ok 1602 /checksum/SHA512/120 1179s ok 1603 /checksum/SHA512/121 1179s ok 1604 /checksum/SHA512/122 1179s ok 1605 /checksum/SHA512/123 1179s ok 1606 /checksum/SHA512/124 1179s ok 1607 /checksum/SHA512/125 1179s ok 1608 /checksum/SHA512/126 1179s ok 1609 /checksum/SHA512/127 1179s ok 1610 /checksum/SHA512/128 1179s ok 1611 /checksum/SHA512/129 1179s ok 1612 /checksum/SHA512/130 1179s ok 1613 /checksum/SHA512/131 1179s ok 1614 /checksum/SHA512/132 1179s ok 1615 /checksum/SHA512/133 1179s ok 1616 /checksum/SHA512/134 1179s ok 1617 /checksum/SHA512/135 1179s ok 1618 /checksum/SHA512/136 1179s ok 1619 /checksum/SHA512/137 1179s ok 1620 /checksum/SHA512/138 1179s ok 1621 /checksum/SHA512/139 1179s ok 1622 /checksum/SHA512/140 1179s ok 1623 /checksum/SHA512/141 1179s ok 1624 /checksum/SHA512/142 1179s ok 1625 /checksum/SHA512/143 1179s ok 1626 /checksum/SHA512/144 1179s ok 1627 /checksum/SHA512/145 1179s ok 1628 /checksum/SHA512/146 1179s ok 1629 /checksum/SHA512/147 1179s ok 1630 /checksum/SHA512/148 1179s ok 1631 /checksum/SHA512/149 1179s ok 1632 /checksum/SHA512/150 1179s ok 1633 /checksum/SHA512/151 1179s ok 1634 /checksum/SHA512/152 1179s ok 1635 /checksum/SHA512/153 1179s ok 1636 /checksum/SHA512/154 1179s ok 1637 /checksum/SHA512/155 1179s ok 1638 /checksum/SHA512/156 1179s ok 1639 /checksum/SHA512/157 1179s ok 1640 /checksum/SHA512/158 1179s ok 1641 /checksum/SHA512/159 1179s ok 1642 /checksum/SHA512/160 1179s ok 1643 /checksum/SHA512/161 1179s ok 1644 /checksum/SHA512/162 1179s ok 1645 /checksum/SHA512/163 1179s ok 1646 /checksum/SHA512/164 1179s ok 1647 /checksum/SHA512/165 1179s ok 1648 /checksum/SHA512/166 1179s ok 1649 /checksum/SHA512/167 1179s ok 1650 /checksum/SHA512/168 1179s ok 1651 /checksum/SHA512/169 1179s ok 1652 /checksum/SHA512/170 1179s ok 1653 /checksum/SHA512/171 1179s ok 1654 /checksum/SHA512/172 1179s ok 1655 /checksum/SHA512/173 1179s ok 1656 /checksum/SHA512/174 1179s ok 1657 /checksum/SHA512/175 1179s ok 1658 /checksum/SHA512/176 1179s ok 1659 /checksum/SHA512/177 1179s ok 1660 /checksum/SHA512/178 1179s ok 1661 /checksum/SHA512/179 1179s ok 1662 /checksum/SHA512/180 1179s ok 1663 /checksum/SHA512/181 1179s ok 1664 /checksum/SHA512/182 1179s ok 1665 /checksum/SHA512/183 1179s ok 1666 /checksum/SHA512/string 1179s ok 1667 /checksum/SHA512/bytes 1179s # Start of reset tests 1179s ok 1668 /checksum/SHA512/reset/0 1179s ok 1669 /checksum/SHA512/reset/1 1179s ok 1670 /checksum/SHA512/reset/2 1179s ok 1671 /checksum/SHA512/reset/3 1179s ok 1672 /checksum/SHA512/reset/4 1179s ok 1673 /checksum/SHA512/reset/5 1179s ok 1674 /checksum/SHA512/reset/6 1179s ok 1675 /checksum/SHA512/reset/7 1179s ok 1676 /checksum/SHA512/reset/8 1179s ok 1677 /checksum/SHA512/reset/9 1179s ok 1678 /checksum/SHA512/reset/10 1179s ok 1679 /checksum/SHA512/reset/11 1179s ok 1680 /checksum/SHA512/reset/12 1179s ok 1681 /checksum/SHA512/reset/13 1179s ok 1682 /checksum/SHA512/reset/14 1179s ok 1683 /checksum/SHA512/reset/15 1179s ok 1684 /checksum/SHA512/reset/16 1179s ok 1685 /checksum/SHA512/reset/17 1179s ok 1686 /checksum/SHA512/reset/18 1179s ok 1687 /checksum/SHA512/reset/19 1179s ok 1688 /checksum/SHA512/reset/20 1179s ok 1689 /checksum/SHA512/reset/21 1179s ok 1690 /checksum/SHA512/reset/22 1179s ok 1691 /checksum/SHA512/reset/23 1179s ok 1692 /checksum/SHA512/reset/24 1179s ok 1693 /checksum/SHA512/reset/25 1179s ok 1694 /checksum/SHA512/reset/26 1179s ok 1695 /checksum/SHA512/reset/27 1179s ok 1696 /checksum/SHA512/reset/28 1179s ok 1697 /checksum/SHA512/reset/29 1179s ok 1698 /checksum/SHA512/reset/30 1179s ok 1699 /checksum/SHA512/reset/31 1179s ok 1700 /checksum/SHA512/reset/32 1179s ok 1701 /checksum/SHA512/reset/33 1179s ok 1702 /checksum/SHA512/reset/34 1179s ok 1703 /checksum/SHA512/reset/35 1179s ok 1704 /checksum/SHA512/reset/36 1179s ok 1705 /checksum/SHA512/reset/37 1179s ok 1706 /checksum/SHA512/reset/38 1179s ok 1707 /checksum/SHA512/reset/39 1179s ok 1708 /checksum/SHA512/reset/40 1179s ok 1709 /checksum/SHA512/reset/41 1179s ok 1710 /checksum/SHA512/reset/42 1179s ok 1711 /checksum/SHA512/reset/43 1179s ok 1712 /checksum/SHA512/reset/44 1179s ok 1713 /checksum/SHA512/reset/45 1179s ok 1714 /checksum/SHA512/reset/46 1179s ok 1715 /checksum/SHA512/reset/47 1179s ok 1716 /checksum/SHA512/reset/48 1179s ok 1717 /checksum/SHA512/reset/49 1179s ok 1718 /checksum/SHA512/reset/50 1179s ok 1719 /checksum/SHA512/reset/51 1179s ok 1720 /checksum/SHA512/reset/52 1179s ok 1721 /checksum/SHA512/reset/53 1179s ok 1722 /checksum/SHA512/reset/54 1179s ok 1723 /checksum/SHA512/reset/55 1179s ok 1724 /checksum/SHA512/reset/56 1179s ok 1725 /checksum/SHA512/reset/57 1179s ok 1726 /checksum/SHA512/reset/58 1179s ok 1727 /checksum/SHA512/reset/59 1179s ok 1728 /checksum/SHA512/reset/60 1179s ok 1729 /checksum/SHA512/reset/61 1179s ok 1730 /checksum/SHA512/reset/62 1179s ok 1731 /checksum/SHA512/reset/63 1179s ok 1732 /checksum/SHA512/reset/64 1179s ok 1733 /checksum/SHA512/reset/65 1179s ok 1734 /checksum/SHA512/reset/66 1179s ok 1735 /checksum/SHA512/reset/67 1179s ok 1736 /checksum/SHA512/reset/68 1179s ok 1737 /checksum/SHA512/reset/69 1179s ok 1738 /checksum/SHA512/reset/70 1179s ok 1739 /checksum/SHA512/reset/71 1179s ok 1740 /checksum/SHA512/reset/72 1179s ok 1741 /checksum/SHA512/reset/73 1179s ok 1742 /checksum/SHA512/reset/74 1179s ok 1743 /checksum/SHA512/reset/75 1179s ok 1744 /checksum/SHA512/reset/76 1179s ok 1745 /checksum/SHA512/reset/77 1179s ok 1746 /checksum/SHA512/reset/78 1179s ok 1747 /checksum/SHA512/reset/79 1179s ok 1748 /checksum/SHA512/reset/80 1179s ok 1749 /checksum/SHA512/reset/81 1179s ok 1750 /checksum/SHA512/reset/82 1179s ok 1751 /checksum/SHA512/reset/83 1179s ok 1752 /checksum/SHA512/reset/84 1179s ok 1753 /checksum/SHA512/reset/85 1179s ok 1754 /checksum/SHA512/reset/86 1179s ok 1755 /checksum/SHA512/reset/87 1179s ok 1756 /checksum/SHA512/reset/88 1179s ok 1757 /checksum/SHA512/reset/89 1179s ok 1758 /checksum/SHA512/reset/90 1179s ok 1759 /checksum/SHA512/reset/91 1179s ok 1760 /checksum/SHA512/reset/92 1179s ok 1761 /checksum/SHA512/reset/93 1179s ok 1762 /checksum/SHA512/reset/94 1179s ok 1763 /checksum/SHA512/reset/95 1179s ok 1764 /checksum/SHA512/reset/96 1179s ok 1765 /checksum/SHA512/reset/97 1179s ok 1766 /checksum/SHA512/reset/98 1179s ok 1767 /checksum/SHA512/reset/99 1179s ok 1768 /checksum/SHA512/reset/100 1179s ok 1769 /checksum/SHA512/reset/101 1179s ok 1770 /checksum/SHA512/reset/102 1179s ok 1771 /checksum/SHA512/reset/103 1179s ok 1772 /checksum/SHA512/reset/104 1179s ok 1773 /checksum/SHA512/reset/105 1179s ok 1774 /checksum/SHA512/reset/106 1179s ok 1775 /checksum/SHA512/reset/107 1179s ok 1776 /checksum/SHA512/reset/108 1179s ok 1777 /checksum/SHA512/reset/109 1179s ok 1778 /checksum/SHA512/reset/110 1179s ok 1779 /checksum/SHA512/reset/111 1179s ok 1780 /checksum/SHA512/reset/112 1179s ok 1781 /checksum/SHA512/reset/113 1179s ok 1782 /checksum/SHA512/reset/114 1179s ok 1783 /checksum/SHA512/reset/115 1179s ok 1784 /checksum/SHA512/reset/116 1179s ok 1785 /checksum/SHA512/reset/117 1179s ok 1786 /checksum/SHA512/reset/118 1179s ok 1787 /checksum/SHA512/reset/119 1179s ok 1788 /checksum/SHA512/reset/120 1179s ok 1789 /checksum/SHA512/reset/121 1179s ok 1790 /checksum/SHA512/reset/122 1179s ok 1791 /checksum/SHA512/reset/123 1179s ok 1792 /checksum/SHA512/reset/124 1179s ok 1793 /checksum/SHA512/reset/125 1179s ok 1794 /checksum/SHA512/reset/126 1179s ok 1795 /checksum/SHA512/reset/127 1179s ok 1796 /checksum/SHA512/reset/128 1179s ok 1797 /checksum/SHA512/reset/129 1179s ok 1798 /checksum/SHA512/reset/130 1179s ok 1799 /checksum/SHA512/reset/131 1179s ok 1800 /checksum/SHA512/reset/132 1179s ok 1801 /checksum/SHA512/reset/133 1179s ok 1802 /checksum/SHA512/reset/134 1179s ok 1803 /checksum/SHA512/reset/135 1179s ok 1804 /checksum/SHA512/reset/136 1179s ok 1805 /checksum/SHA512/reset/137 1179s ok 1806 /checksum/SHA512/reset/138 1179s ok 1807 /checksum/SHA512/reset/139 1179s ok 1808 /checksum/SHA512/reset/140 1179s ok 1809 /checksum/SHA512/reset/141 1179s ok 1810 /checksum/SHA512/reset/142 1179s ok 1811 /checksum/SHA512/reset/143 1179s ok 1812 /checksum/SHA512/reset/144 1179s ok 1813 /checksum/SHA512/reset/145 1179s ok 1814 /checksum/SHA512/reset/146 1179s ok 1815 /checksum/SHA512/reset/147 1179s ok 1816 /checksum/SHA512/reset/148 1179s ok 1817 /checksum/SHA512/reset/149 1179s ok 1818 /checksum/SHA512/reset/150 1179s ok 1819 /checksum/SHA512/reset/151 1179s ok 1820 /checksum/SHA512/reset/152 1179s ok 1821 /checksum/SHA512/reset/153 1179s ok 1822 /checksum/SHA512/reset/154 1179s ok 1823 /checksum/SHA512/reset/155 1179s ok 1824 /checksum/SHA512/reset/156 1179s ok 1825 /checksum/SHA512/reset/157 1179s ok 1826 /checksum/SHA512/reset/158 1179s ok 1827 /checksum/SHA512/reset/159 1179s ok 1828 /checksum/SHA512/reset/160 1179s ok 1829 /checksum/SHA512/reset/161 1179s ok 1830 /checksum/SHA512/reset/162 1179s ok 1831 /checksum/SHA512/reset/163 1179s ok 1832 /checksum/SHA512/reset/164 1179s ok 1833 /checksum/SHA512/reset/165 1179s ok 1834 /checksum/SHA512/reset/166 1179s ok 1835 /checksum/SHA512/reset/167 1179s ok 1836 /checksum/SHA512/reset/168 1179s ok 1837 /checksum/SHA512/reset/169 1179s ok 1838 /checksum/SHA512/reset/170 1179s ok 1839 /checksum/SHA512/reset/171 1179s ok 1840 /checksum/SHA512/reset/172 1179s ok 1841 /checksum/SHA512/reset/173 1179s ok 1842 /checksum/SHA512/reset/174 1179s ok 1843 /checksum/SHA512/reset/175 1179s ok 1844 /checksum/SHA512/reset/176 1179s ok 1845 /checksum/SHA512/reset/177 1179s ok 1846 /checksum/SHA512/reset/178 1179s ok 1847 /checksum/SHA512/reset/179 1179s ok 1848 /checksum/SHA512/reset/180 1179s ok 1849 /checksum/SHA512/reset/181 1179s ok 1850 /checksum/SHA512/reset/182 1179s ok 1851 /checksum/SHA512/reset/183 1179s # End of reset tests 1179s # End of SHA512 tests 1179s # End of checksum tests 1179s ok - glib/checksum.test 1179s # Running test: glib/permission.test 1179s TAP version 14 1179s # random seed: R02S7f21009718c78409ebb71462ed4e87c8 1179s 1..1 1179s # Start of permission tests 1179s ok 1 /permission/simple 1179s # End of permission tests 1179s ok - glib/permission.test 1179s # Running test: glib/markup.test 1179s TAP version 14 1179s # random seed: R02S9aae1dcc0a25c302deb654d33251edf1 1179s 1..1 1179s # Start of markup tests 1179s ok 1 /markup/stack 1179s # End of markup tests 1179s ok - glib/markup.test 1179s # Running test: glib/object.test 1179s ok - glib/object.test 1179s TAP version 14 1179s # random seed: R02S8e48964190e36305a98be4d83b537eaa 1179s 1..2 1179s # Start of object tests 1179s # Start of constructor tests 1179s ok 1 /object/constructor/singleton 1179s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 1179s # End of constructor tests 1179s # End of object tests 1179s # Running test: glib/gthash.test 1179s TAP version 14 1179s # random seed: R02S272e8f2c93a0be0274a6eebd23948888 1179s 1..1 1179s # Start of gthash tests 1179s ok 1 /gthash/build-retrieve 1179s # End of gthash tests 1179s ok - glib/gthash.test 1179s # Running test: glib/atomic-c-17.test 1179s TAP version 14 1179s # random seed: R02Scf3829bdaf704637524b0abe48000ead 1179s 1..2 1179s # Start of atomic tests 1179s ok 1 /atomic/types 1179s ok 2 /atomic/threaded 1179s # End of atomic tests 1179s ok - glib/atomic-c-17.test 1179s # Running test: glib/repository.test 1179s TAP version 14 1179s # random seed: R02Scdf22d1c77dc1e196cf7b386769dc306 1179s 1..24 1179s # Start of repository tests 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/basic/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/basic/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/basic/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/basic/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/basic/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/basic/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/basic/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/basic/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/basic/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/basic/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 1179s ok 1 /repository/basic 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/info/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/info/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/info/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/info/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/info/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/info/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/info/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/info/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/info/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/info/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/info summary: Test retrieving some basic info blobs from a typelib 1179s ok 2 /repository/info 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/dependencies/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/dependencies/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/dependencies/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/dependencies/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/dependencies/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/dependencies/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/dependencies/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/dependencies/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/dependencies/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/dependencies/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 1179s ok 3 /repository/dependencies 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/arg-info/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/arg-info/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/arg-info/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/arg-info/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/arg-info/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/arg-info/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/arg-info/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/arg-info/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/arg-info/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/arg-info/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 1179s ok 4 /repository/arg-info 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/callable-info/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/callable-info/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/callable-info/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/callable-info/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/callable-info/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/callable-info/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/callable-info/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/callable-info/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/callable-info/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/callable-info/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 1179s ok 5 /repository/callable-info 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/callback-info/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/callback-info/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/callback-info/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/callback-info/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/callback-info/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/callback-info/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/callback-info/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/callback-info/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/callback-info/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/callback-info/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 1179s ok 6 /repository/callback-info 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/char-types/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/char-types/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/char-types/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/char-types/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/char-types/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/char-types/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/char-types/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/char-types/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/char-types/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/char-types/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 1179s ok 7 /repository/char-types 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/constructor-return-type/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/constructor-return-type/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/constructor-return-type/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/constructor-return-type/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/constructor-return-type/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/constructor-return-type/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/constructor-return-type/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/constructor-return-type/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 1179s ok 8 /repository/constructor-return-type 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/enum-info-c-identifier/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/enum-info-c-identifier/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/enum-info-c-identifier/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/enum-info-c-identifier/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/enum-info-c-identifier/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/enum-info-c-identifier/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/enum-info-c-identifier/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/enum-info-c-identifier/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 1179s ok 9 /repository/enum-info-c-identifier 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/enum-info-static-methods/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/enum-info-static-methods/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/enum-info-static-methods/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/enum-info-static-methods/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/enum-info-static-methods/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/enum-info-static-methods/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/enum-info-static-methods/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/enum-info-static-methods/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/enum-info-static-methods summary: Test an enum with methods 1179s ok 10 /repository/enum-info-static-methods 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/error-quark/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/error-quark/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/error-quark/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/error-quark/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/error-quark/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/error-quark/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/error-quark/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/error-quark/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/error-quark/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/error-quark/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/error-quark summary: Test finding an error quark by error domain 1179s ok 11 /repository/error-quark 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/flags-info-c-identifier/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/flags-info-c-identifier/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/flags-info-c-identifier/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/flags-info-c-identifier/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/flags-info-c-identifier/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/flags-info-c-identifier/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/flags-info-c-identifier/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/flags-info-c-identifier/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 1179s ok 12 /repository/flags-info-c-identifier 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/fundamental-ref-func/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/fundamental-ref-func/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/fundamental-ref-func/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/fundamental-ref-func/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/fundamental-ref-func/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/fundamental-ref-func/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/fundamental-ref-func/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/fundamental-ref-func/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 1179s ok 13 /repository/fundamental-ref-func 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/instance-method-ownership-transfer/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/instance-method-ownership-transfer/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/instance-method-ownership-transfer/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/instance-method-ownership-transfer/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/instance-method-ownership-transfer/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/instance-method-ownership-transfer/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/instance-method-ownership-transfer/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/instance-method-ownership-transfer/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 1179s ok 14 /repository/instance-method-ownership-transfer 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/object-gtype-interfaces/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/object-gtype-interfaces/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/object-gtype-interfaces/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/object-gtype-interfaces/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/object-gtype-interfaces/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/object-gtype-interfaces/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/object-gtype-interfaces/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/object-gtype-interfaces/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 1179s ok 15 /repository/object-gtype-interfaces 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/signal-info-with-array-length-arg/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/signal-info-with-array-length-arg/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/signal-info-with-array-length-arg/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/signal-info-with-array-length-arg/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/signal-info-with-array-length-arg/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/signal-info-with-array-length-arg/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/signal-info-with-array-length-arg/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/signal-info-with-array-length-arg/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 1179s ok 16 /repository/signal-info-with-array-length-arg 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/type-info-name/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/type-info-name/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/type-info-name/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/type-info-name/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/type-info-name/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/type-info-name/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/type-info-name/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/type-info-name/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 1179s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 1179s ok 17 /repository/type-info-name 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-no-invoker/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-no-invoker/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/vfunc-info-with-no-invoker/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-no-invoker/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/vfunc-info-with-no-invoker/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-no-invoker/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-no-invoker/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-no-invoker/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 1179s ok 18 /repository/vfunc-info-with-no-invoker 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-interface/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-interface/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-interface/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-interface/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 1179s ok 19 /repository/vfunc-info-with-invoker-on-interface 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-object/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-object/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-object/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-object/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-object/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 1179s ok 20 /repository/vfunc-info-with-invoker-on-object 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/find-by-gtype/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/find-by-gtype/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/find-by-gtype/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/find-by-gtype/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/find-by-gtype/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/find-by-gtype/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/find-by-gtype/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/find-by-gtype/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/find-by-gtype summary: Test finding a GType 1179s ok 21 /repository/find-by-gtype 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/loaded-namespaces/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/loaded-namespaces/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/loaded-namespaces/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/loaded-namespaces/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/loaded-namespaces/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/loaded-namespaces/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/loaded-namespaces/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/loaded-namespaces/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/loaded-namespaces summary: Test listing loaded namespaces 1179s ok 22 /repository/loaded-namespaces 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/dup_default/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/dup_default/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/dup_default/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/dup_default/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/dup_default/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/dup_default/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/dup_default/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/dup_default/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/dup_default/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/dup_default/.dirs/runtime 1179s ok 23 /repository/dup_default 1179s # Start of base-info tests 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_5ZLLK3/repository/base-info/clear/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_5ZLLK3/repository/base-info/clear/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_5ZLLK3/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_5ZLLK3/repository/base-info/clear/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_5ZLLK3/repository/base-info/clear/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_5ZLLK3/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_5ZLLK3/repository/base-info/clear/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_5ZLLK3/repository/base-info/clear/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_5ZLLK3/repository/base-info/clear/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_5ZLLK3/repository/base-info/clear/.dirs/runtime 1179s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1179s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 1179s ok 24 /repository/base-info/clear 1179s # End of base-info tests 1179s # End of repository tests 1179s ok - glib/repository.test 1179s # Running test: glib/gdbus-peer-object-manager.test 1179s TAP version 14 1179s # random seed: R02Sba7af1f053f5c3955ac91176ad39ac19 1179s 1..2 1179s # Start of gdbus tests 1179s # Start of peer-object-manager tests 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/normal/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/normal/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/normal/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/normal/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/normal/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/normal/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/normal/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/normal/.dirs/runtime 1179s ok 1 /gdbus/peer-object-manager/normal 1179s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/root/.dirs/home 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/root/.dirs/cache 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/root/.dirs/system-config2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/root/.dirs/config 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/root/.dirs/system-data2 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/root/.dirs/data 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/root/.dirs/state 1179s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_BHDJK3/gdbus/peer-object-manager/root/.dirs/runtime 1179s ok 2 /gdbus/peer-object-manager/root 1179s # End of peer-object-manager tests 1179s # End of gdbus tests 1179s ok - glib/gdbus-peer-object-manager.test 1179s # Running test: glib/atomic-c-89.test 1179s TAP version 14 1179s # random seed: R02Sea09c3165617991f8bbc9cd138e7026b 1179s 1..2 1179s # Start of atomic tests 1179s ok 1 /atomic/types 1179s ok 2 /atomic/threaded 1179s # End of atomic tests 1179s ok - glib/atomic-c-89.test 1179s # Running test: glib/logging.test 1179s TAP version 14 1179s # random seed: R02S27d4dc65af0bdf825d1c73a858b2d731 1179s 1..20 1179s # Start of logging tests 1180s ok 1 /logging/default-handler 1180s # slow test /logging/default-handler executed in 0.88 secs 1180s ok 2 /logging/journald-handler 1180s ok 3 /logging/warnings 1180s ok 4 /logging/fatal-log-mask 1180s ok 5 /logging/always-fatal 1180s # bu-DEBUG: message 1180s # ba-DEBUG: message 1180s # ba-INFO: message 1180s ok 6 /logging/set-handler 1180s ok 7 /logging/print-handler 1180s ok 8 /logging/printerr-handler 1180s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 1180s # The Log Message Handler 1180s # 1180s # The Good Fail Message Handler 1180s # 1180s ok 9 /logging/653052 1180s ok 10 /logging/gibberish 1180s # Start of default-handler tests 1180s # Start of subprocess tests 1180s # End of subprocess tests 1180s # End of default-handler tests 1180s # End of logging tests 1180s # Start of structured-logging tests 1180s ok 11 /structured-logging/no-state 1180s ok 12 /structured-logging/some-state 1180s # /structured-logging/recursion-overflow summary: Test that g_log_structured always sets n_fields correctly. 1180s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3760 1180s ok 13 /structured-logging/recursion-overflow 1180s ok 14 /structured-logging/robustness 1180s ok 15 /structured-logging/roundtrip1 1180s ok 16 /structured-logging/roundtrip2 1180s ok 17 /structured-logging/roundtrip3 1180s ok 18 /structured-logging/variant1 1180s ok 19 /structured-logging/variant2 1180s ok 20 /structured-logging/set-writer-func-twice 1180s # End of structured-logging tests 1180s ok - glib/logging.test 1180s # Running test: glib/gdbus-serialization.test 1180s ok - glib/gdbus-serialization.test 1180s TAP version 14 1180s # random seed: R02S41b2d815c7ceccbd4647a37bc7a718fb 1180s 1..18 1180s # Start of gdbus tests 1180s # Start of message-serialize tests 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/basic/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/basic/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/basic/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/basic/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/basic/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/basic/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/basic/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/basic/.dirs/runtime 1180s ok 1 /gdbus/message-serialize/basic 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/complex/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/complex/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/complex/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/complex/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/complex/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/complex/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/complex/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/complex/.dirs/runtime 1180s # Running test: glib/module-test-library.test 1180s ok 2 /gdbus/message-serialize/complex 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/invalid/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/invalid/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/invalid/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/invalid/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/invalid/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/invalid/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/invalid/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/invalid/.dirs/runtime 1180s ok 3 /gdbus/message-serialize/invalid 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/.dirs/runtime 1180s ok 4 /gdbus/message-serialize/header-checks 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/double-array/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/double-array/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/double-array/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/double-array/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/double-array/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/double-array/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/double-array/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/double-array/.dirs/runtime 1180s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 1180s ok 5 /gdbus/message-serialize/double-array 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/empty-structure/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/empty-structure/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/empty-structure/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/empty-structure/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/empty-structure/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/empty-structure/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/empty-structure/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/empty-structure/.dirs/runtime 1180s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 1180s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1180s ok 6 /gdbus/message-serialize/empty-structure 1180s # Start of header-checks tests 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/valid/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/valid/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/valid/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/valid/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/valid/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-serialize/header-checks/valid/.dirs/runtime 1180s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 1180s ok 7 /gdbus/message-serialize/header-checks/valid 1180s # End of header-checks tests 1180s # End of message-serialize tests 1180s # Start of message-parse tests 1180s ok - glib/module-test-library.test 1180s # Running test: glib/thread-deprecated.test 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 1180s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 1180s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/non-signature-header/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/non-signature-header/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/non-signature-header/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/non-signature-header/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/non-signature-header/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/non-signature-header/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/non-signature-header/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/non-signature-header/.dirs/runtime 1180s ok 9 /gdbus/message-parse/non-signature-header 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-signature-header/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-signature-header/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-signature-header/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-signature-header/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-signature-header/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-signature-header/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-signature-header/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-signature-header/.dirs/runtime 1180s ok 10 /gdbus/message-parse/empty-signature-header 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/multiple-signature-header/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/multiple-signature-header/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/multiple-signature-header/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/multiple-signature-header/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/multiple-signature-header/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/multiple-signature-header/.dirs/runtime 1180s ok 11 /gdbus/message-parse/multiple-signature-header 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/over-long-signature-header/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/over-long-signature-header/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/over-long-signature-header/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/over-long-signature-header/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/over-long-signature-header/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/over-long-signature-header/.dirs/runtime 1180s ok 12 /gdbus/message-parse/over-long-signature-header 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-header-nesting/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-header-nesting/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-header-nesting/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-header-nesting/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-header-nesting/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-header-nesting/.dirs/runtime 1180s ok 13 /gdbus/message-parse/deep-header-nesting 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-body-nesting/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-body-nesting/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-body-nesting/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-body-nesting/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-body-nesting/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/deep-body-nesting/.dirs/runtime 1180s ok 14 /gdbus/message-parse/deep-body-nesting 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/truncated/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/truncated/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/truncated/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/truncated/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/truncated/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/truncated/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/truncated/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/truncated/.dirs/runtime 1180s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 1180s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 1180s ok 15 /gdbus/message-parse/truncated 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-structure/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-structure/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-structure/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-structure/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-structure/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-structure/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-structure/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/empty-structure/.dirs/runtime 1180s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 1180s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1180s ok 16 /gdbus/message-parse/empty-structure 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/missing-header/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/missing-header/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/missing-header/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/missing-header/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/missing-header/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/missing-header/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/missing-header/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/missing-header/.dirs/runtime 1180s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 1180s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1180s ok 17 /gdbus/message-parse/missing-header 1180s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/invalid-header-type/.dirs/home 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/invalid-header-type/.dirs/cache 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/invalid-header-type/.dirs/system-config2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/invalid-header-type/.dirs/config 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/invalid-header-type/.dirs/system-data2 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/invalid-header-type/.dirs/data 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/invalid-header-type/.dirs/state 1180s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_WXQJK3/gdbus/message-parse/invalid-header-type/.dirs/runtime 1180s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 1180s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1180s ok 18 /gdbus/message-parse/invalid-header-type 1180s # End of message-parse tests 1180s # End of gdbus tests 1180s TAP version 14 1180s # random seed: R02S614f81a09c334409147a96e80b081c79 1180s 1..3 1180s # Start of module tests 1180s ok 1 /module/basics 1180s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1180s ok 2 /module/invalid-libtool-archive 1180s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1180s ok 3 /module/local-binding 1180s # End of module tests 1180s TAP version 14 1180s # random seed: R02S9b8b067d2d8e67c6a891ad6427cd0ad9 1180s 1..6 1180s # Start of thread tests 1181s ok 1 /thread/mutex 1181s ok 2 /thread/static-rec-mutex 1182s # Executing: glib/thread-deprecated.test 1185s ok 3 /thread/static-private 1185s # slow test /thread/static-private executed in 4.41 secs 1187s # Executing: glib/thread-deprecated.test 1190s ok 4 /thread/static-rw-lock 1190s # slow test /thread/static-rw-lock executed in 5.00 secs 1190s ok 5 /thread/once 1192s # Executing: glib/thread-deprecated.test 1197s # Executing: glib/thread-deprecated.test 1200s ok 6 /thread/rerun-all 1200s # slow test /thread/rerun-all executed in 9.82 secs 1200s # End of thread tests 1200s ok - glib/thread-deprecated.test 1200s # Running test: glib/cmph-bdz.test 1200s TAP version 14 1200s # random seed: R02S5fd6c75ae6a401f1fa349500b75d5d8c 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/basics-gobject.test 1200s TAP version 14 1200s # random seed: R02S7f9c65c5151c3bca2acb921925c36749 1200s 1..1 1200s # Start of gobject tests 1200s # private data during initialization: 54321 == 54321 1200s # MAIN: emit test-signal: 1200s # ::test_signal default_handler called 1200s # ::test_signal default_handler called 1200s # ::test_signal default_handler called 1200s # signal return: "" 1200s # MAIN: call iface print-string on test and derived object: 1200s # Iface-FOO: "iface-string-from-test-type" from 0x24615d0 1200s # Iface-BAR: "iface-string-from-derived-type" from 0x24614a8 1200s # chaining: 1200s # Iface-FOO: "iface-string-from-derived-type" from 0x24614a8 1200s # private data after initialization: 54321 == 54321 1200s ok 1 /gobject/basics 1200s # End of gobject tests 1200s ok - glib/basics-gobject.test 1200s # Running test: glib/markup-escape.test 1200s TAP version 14 1200s # random seed: R02S4a27da37fb68162986d62c0c903f43af 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 - glib/markup-escape.test 1200s # Running test: glib/trash.test 1200s ok - glib/trash.test 1200s # Running test: glib/simple-async-result.test 1200s ok - glib/simple-async-result.test 1200s # Running test: glib/dbus-appinfo.test 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 TAP version 14 1200s # random seed: R02Sd22cc2ac325575e6b514b0bf69f8da46 1200s 1..3 1200s # Start of trash tests 1200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 1200s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1200s # File: /tmp/test-trashXZKKK3 (parent st_dev: 86) 1200s # Home: /home/ubuntu (st_dev: 86) 1200s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 1200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 1200s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 1200s ok 3 /trash/long-filename 1200s # End of trash tests 1200s TAP version 14 1200s # random seed: R02Se7762fafbc16498d70de9db400819cfa 1200s 1..2 1200s # Start of gio tests 1200s # Start of simple-async-result tests 1200s ok 1 /gio/simple-async-result/test 1200s # GLib-GIO-DEBUG: GTask 0x2d0fdd0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1200s ok 2 /gio/simple-async-result/valid 1200s # End of simple-async-result tests 1200s # End of gio tests 1200s TAP version 14 1200s # random seed: R02S588497025066b6867b13b7bbbbf6dd69 1200s 1..7 1200s # Start of appinfo tests 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/dbusappinfo/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/dbusappinfo/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/dbusappinfo/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/dbusappinfo/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/dbusappinfo/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/dbusappinfo/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/dbusappinfo/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_5BZKK3/appinfo/dbusappinfo/.dirs/runtime 1200s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1200s ok 1 /appinfo/dbusappinfo 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-doc-export/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-doc-export/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-doc-export/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-doc-export/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-doc-export/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-doc-export/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-doc-export/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-doc-export/.dirs/runtime 1200s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1200s # Acquired a message bus connection 1200s # Acquired the name org.freedesktop.portal.Documents 1200s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_5BZKK3/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-doc-export/.dirs/config 1200s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 1200s # fake-document-portal cancelled 1200s ok 2 /appinfo/flatpak-doc-export 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-missing-doc-export/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-missing-doc-export/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-missing-doc-export/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-missing-doc-export/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-missing-doc-export/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-missing-doc-export/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-missing-doc-export/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-missing-doc-export/.dirs/runtime 1200s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1200s # Acquired a message bus connection 1200s # Acquired the name org.freedesktop.portal.Documents 1200s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-missing-doc-export/.dirs/config 1200s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 1200s # fake-document-portal cancelled 1200s ok 3 /appinfo/flatpak-missing-doc-export 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file/.dirs/runtime 1200s # Acquired a message bus connection 1200s # Acquired the name org.freedesktop.portal.Desktop 1200s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_5BZKK3/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file/.dirs/config 1200s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1200s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 1200s # Response emitted 1200s # fake-desktop-portal cancelled 1200s ok 4 /appinfo/portal-open-file 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri/.dirs/runtime 1200s # Acquired a message bus connection 1200s ok - glib/dbus-appinfo.test 1200s # Running test: glib/utf8-misc.test 1200s ok - glib/utf8-misc.test 1200s # Running test: glib/gi-inspect-typelib.py.test 1200s # Acquired the name org.freedesktop.portal.Desktop 1200s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri/.dirs/config 1200s # Got open file request for http://example.com 1200s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 1200s # Response emitted 1200s # fake-desktop-portal cancelled 1200s ok 5 /appinfo/portal-open-uri 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file-async/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file-async/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file-async/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file-async/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file-async/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file-async/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file-async/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file-async/.dirs/runtime 1200s # Acquired a message bus connection 1200s # Acquired the name org.freedesktop.portal.Desktop 1200s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file-async/.dirs/config 1200s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1200s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio1383243365 1200s # Response emitted 1200s # fake-desktop-portal cancelled 1200s ok 6 /appinfo/portal-open-file-async 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri-async/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri-async/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri-async/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri-async/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri-async/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri-async/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri-async/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri-async/.dirs/runtime 1200s # Acquired a message bus connection 1200s # Acquired the name org.freedesktop.portal.Desktop 1200s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_5BZKK3/appinfo/portal-open-uri-async/.dirs/config 1200s # Got open file request for http://example.com 1200s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio1939783747 1200s # Response emitted 1200s # fake-desktop-portal cancelled 1200s ok 7 /appinfo/portal-open-uri-async 1200s # End of appinfo tests 1200s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1200s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1200s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1200s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1200s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1200s TAP version 14 1200s # random seed: R02S7d19a005af63f7b014bfb3722e634d68 1200s 1..7 1200s # Start of utf8 tests 1200s ok 1 /utf8/strlen 1200s ok 2 /utf8/strncpy 1200s ok 3 /utf8/strrchr 1200s ok 4 /utf8/reverse 1200s ok 5 /utf8/substring 1200s ok 6 /utf8/make-valid 1200s ok 7 /utf8/truncate-middle 1200s # End of utf8 tests 1200s TAP version 13 1200s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 1200s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1200s # tmpdir: /tmp/tmpvcph_roh 1200s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 1200s # Return code: 0 1200s # Output: 1200s # Usage: 1200s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 1200s # 1200s # Help Options: 1200s # -h, --help Show help options 1200s # 1200s # Application Options: 1200s # --typelib-version=VERSION Typelib version to inspect 1200s # --print-shlibs List the shared libraries the typelib requires 1200s # --print-typelibs List other typelibs the inspected typelib requires 1200s # Error: 1200s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 1200s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1200s # tmpdir: /tmp/tmp394lon3c 1200s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 1200s # Return code: 1 1200s # Output: 1200s # 1200s # Error: 1200s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 1200s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 1200s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1200s # tmpdir: /tmp/tmp8o7bzb92 1200s # Running: ['/usr/bin/gi-inspect-typelib'] 1200s # Return code: 1 1200s # Output: 1200s # 1200s # Error: 1200s # Please specify exactly one namespace 1200s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 1200s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1200s # tmpdir: /tmp/tmppiqjugga 1200s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1200s # Return code: 0 1200s # Output: 1200s # shlib: libgobject-2.0.so.0 1200s # shlib: libglib-2.0.so.0 1200s # Error: 1200s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 1200s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1200s # tmpdir: /tmp/tmpogfcozqq 1200s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 1200s # Return code: 0 1200s # Output: 1200s # 1200s # Error: 1200s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 1200s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1200s # tmpdir: /tmp/tmp47u8b6fi 1200s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1200s # Return code: 0 1200s # Output: 1200s # shlib: libgobject-2.0.so.0 1200s # shlib: libglib-2.0.so.0 1200s # Error: 1200s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 1200s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1200s # tmpdir: /tmp/tmp0hu9zrv_ 1200s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1200s # Return code: 0 1200s # Output: 1200s # shlib: libgobject-2.0.so.0 1200s # Error: 1200s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 1200s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1200s # tmpdir: /tmp/tmp0ocd6zc0 1200s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 1200s # Return code: 0 1200s # Output: 1200s # typelib: GLib-2.0 1200s # Error: 1200s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 1200s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1200s # tmpdir: /tmp/tmpebihjlc9 1200s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1200s # Return code: 0 1200s # Output: 1200s # shlib: libgobject-2.0.so.0 1200s # typelib: GLib-2.0 1200s # Error: 1200s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 1200s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1200s # tmpdir: /tmp/tmpw1qt4yps 1200s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1200s # Return code: 0 1200s # Output: 1200s # shlib: libgio-2.0.so.0 1200s # Error: 1200s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 1200s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1200s # tmpdir: /tmp/tmpwa3kij4w 1200s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 1200s # Return code: 0 1200s # Output: 1200s # typelib: GObject-2.0 1200s # typelib: GLib-2.0 1200s # typelib: GModule-2.0 1200s # Error: 1200s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 1200s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1200s # tmpdir: /tmp/tmpf3r3guij 1200s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1200s # Return code: 0 1200s # Output: 1200s # shlib: libgio-2.0.so.0 1200s # typelib: GObject-2.0 1200s # typelib: GLib-2.0 1200s # typelib: GModule-2.0 1200s # Error: 1200s 1..12 1200s ok - glib/gi-inspect-typelib.py.test 1200s # Running test: glib/qdata.test 1201s TAP version 14 1201s # random seed: R02S6a3932813b6681d3cc09dc3842e77ce9 1201s 1..2 1201s # Start of qdata tests 1201s ok 1 /qdata/threaded 1201s ok 2 /qdata/dup 1201s # End of qdata tests 1201s ok - glib/qdata.test 1201s # Running test: glib/unicode-normalize.test 1201s TAP version 14 1201s # random seed: R02S85f1bc831a02b3ba679842026c20a19e 1201s 1..3 1201s # Start of unicode tests 1201s # Processing Part0 # Specific cases 1201s # Processing Part1 # Character by character test 1201s # Processing Part2 # Canonical Order Test 1201s # Processing Part3 # PRI #29 Test 1201s # Processing Part4 # Canonical closures (excluding Hangul) 1201s # Processing Part5 # Chained primary composites 1201s ok 1 /unicode/normalize 1201s # Invalid UTF-8 vector 0 1201s # Invalid UTF-8 vector 1 1201s # Invalid UTF-8 vector 2 1201s # Invalid UTF-8 vector 3 1201s # Invalid UTF-8 vector 4 1201s # Invalid UTF-8 vector 5 1201s # Invalid UTF-8 vector 6 1201s # Invalid UTF-8 vector 7 1201s # Invalid UTF-8 vector 8 1201s # Invalid UTF-8 vector 9 1201s # Invalid UTF-8 vector 10 1201s # Invalid UTF-8 vector 11 1201s # Invalid UTF-8 vector 12 1201s ok 2 /unicode/normalize-invalid 1201s # Start of normalize tests 1201s ok 3 /unicode/normalize/bad-length 1201s # End of normalize tests 1201s # End of unicode tests 1201s ok - glib/unicode-normalize.test 1201s # Running test: glib/basic-signals.test 1201s TAP version 14 1201s # random seed: R02S96200b135d13c473b9ea471e8a016934 1201s 1..1 1201s # Start of gobject tests 1201s ok 1 /gobject/basic-signals 1201s # End of gobject tests 1201s ok - glib/basic-signals.test 1201s # Running test: glib/atomic-c-99.test 1201s TAP version 14 1201s # random seed: R02Sbfb92c965fe55dde9d68be7bdffff233 1201s 1..2 1201s # Start of atomic tests 1201s ok 1 /atomic/types 1201s ok 2 /atomic/threaded 1201s # End of atomic tests 1201s ok - glib/atomic-c-99.test 1201s # Running test: glib/list.test 1201s TAP version 14 1201s # random seed: R02Scf447266c12441d068b2bd363467b321 1201s 1..20 1201s # Start of list tests 1201s ok 1 /list/sort 1201s ok 2 /list/sort-with-data 1201s ok 3 /list/insert-before-link 1201s ok 4 /list/insert-sorted 1201s ok 5 /list/insert-sorted-with-data 1201s ok 6 /list/reverse 1201s ok 7 /list/nth 1201s ok 8 /list/concat 1201s ok 9 /list/remove 1201s ok 10 /list/remove-all 1201s ok 11 /list/first-last 1201s ok 12 /list/insert 1201s ok 13 /list/free-full 1201s ok 14 /list/copy 1201s ok 15 /list/copy-deep 1201s ok 16 /list/delete-link 1201s ok 17 /list/prepend 1201s ok 18 /list/position 1201s ok 19 /list/double-free 1201s # Start of sort tests 1201s ok 20 /list/sort/stable 1201s # End of sort tests 1201s # End of list tests 1201s ok - glib/list.test 1201s # Running test: glib/spawn-test.test 1201s TAP version 14 1201s # random seed: R02S67f1fa8efa61c0179c80e6686f9f4198 1201s 1..2 1201s # Start of spawn tests 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_VBKNK3/spawn/basics/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_VBKNK3/spawn/basics/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_VBKNK3/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_VBKNK3/spawn/basics/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_VBKNK3/spawn/basics/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_VBKNK3/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_VBKNK3/spawn/basics/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_VBKNK3/spawn/basics/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_VBKNK3/spawn/basics/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_VBKNK3/spawn/basics/.dirs/runtime 1201s ok 1 /spawn/basics 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_VBKNK3/spawn/stdio-overwrite/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_VBKNK3/spawn/stdio-overwrite/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_VBKNK3/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_VBKNK3/spawn/stdio-overwrite/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_VBKNK3/spawn/stdio-overwrite/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_VBKNK3/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_VBKNK3/spawn/stdio-overwrite/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_VBKNK3/spawn/stdio-overwrite/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_VBKNK3/spawn/stdio-overwrite/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_VBKNK3/spawn/stdio-overwrite/.dirs/runtime 1201s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 1201s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 1201s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 1201s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 1201s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 1201s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 1201s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 1201s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 1201s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 1201s # Fetching GSpawn result output with stdin open, stdout open, stderr open 1201s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 1201s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 1201s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 1201s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 1201s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 1201s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 1201s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 1201s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 1201s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 1201s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 1201s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 1201s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 1201s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 1201s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 1201s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 1201s # Fetching GSpawn result with stdin open, stdout open, stderr open 1201s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 1201s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 1201s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 1201s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 1201s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 1201s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 1201s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 1201s ok 2 /spawn/stdio-overwrite 1201s # End of spawn tests 1201s ok - glib/spawn-test.test 1201s # Running test: glib/tls-certificate.test 1201s TAP version 14 1201s # random seed: R02S54280486b1ed29ce2e19ee8bf7b69dbb 1201s 1..19 1201s # Start of tls-certificate tests 1201s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1201s ok 1 /tls-certificate/pem-parser 1201s ok 2 /tls-certificate/pem-parser-handles-chain 1201s ok 3 /tls-certificate/from_file 1201s ok 4 /tls-certificate/from_files 1201s ok 5 /tls-certificate/from_files_crlf 1201s ok 6 /tls-certificate/from_files_pkcs8 1201s ok 7 /tls-certificate/from_files_pkcs8enc 1201s ok 8 /tls-certificate/list_from_file 1201s ok 9 /tls-certificate/pkcs11-uri 1201s ok 10 /tls-certificate/pkcs11-uri-unsupported 1201s ok 11 /tls-certificate/from_pkcs12 1201s ok 12 /tls-certificate/from_pkcs12_file 1201s ok 13 /tls-certificate/not-valid-before 1201s ok 14 /tls-certificate/not-valid-after 1201s ok 15 /tls-certificate/subject-name 1201s ok 16 /tls-certificate/issuer-name 1201s ok 17 /tls-certificate/dns-names 1201s ok 18 /tls-certificate/ip-addresses 1201s ok 19 /tls-certificate/pem-parser-no-sentinel 1201s # End of tls-certificate tests 1201s ok - glib/tls-certificate.test 1201s # Running test: glib/deftype.test 1201s ok - glib/deftype.test 1201s # Running test: glib/gdbus-connection-loss.test 1201s TAP version 14 1201s # random seed: R02Sed9a2c4a9fd129a25de84cc6d67c60e5 1201s 1..1 1201s # Start of gdbus tests 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_RNLMK3/gdbus/connection-loss/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_RNLMK3/gdbus/connection-loss/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_RNLMK3/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_RNLMK3/gdbus/connection-loss/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_RNLMK3/gdbus/connection-loss/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_RNLMK3/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_RNLMK3/gdbus/connection-loss/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_RNLMK3/gdbus/connection-loss/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_RNLMK3/gdbus/connection-loss/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_RNLMK3/gdbus/connection-loss/.dirs/runtime 1201s ok 1 /gdbus/connection-loss 1201s # End of gdbus tests 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1201s ok - glib/gdbus-connection-loss.test 1201s # Running test: glib/unix-fd.test 1201s TAP version 14 1201s # random seed: R02Sbbc026ed093acdf3ffd92299d2b49065 1201s 1..2 1201s # Start of unix-fd tests 1201s ok 1 /unix-fd/fd-list 1201s ok 2 /unix-fd/scm 1201s # End of unix-fd tests 1201s ok - glib/unix-fd.test 1201s # Running test: glib/credentials.test 1201s TAP version 14 1201s # random seed: R02S7d32eb70241b5160be3d05e4e9db1528 1201s 1..1 1201s # Start of credentials tests 1201s # GCredentials:linux-ucred:pid=2500,uid=1000,gid=1000 1201s # GCredentials:linux-ucred:pid=2500,uid=0,gid=1000 1201s ok 1 /credentials/basic 1201s # End of credentials tests 1201s ok - glib/credentials.test 1201s # Running test: glib/mappedfile.test 1201s TAP version 14 1201s # random seed: R02Sceaaf84cb00e35236d65e772d4ede0fa 1201s 1..7 1201s # Start of mappedfile tests 1201s ok 1 /mappedfile/basic 1201s ok 2 /mappedfile/empty 1201s ok 3 /mappedfile/device 1201s ok 4 /mappedfile/nonexisting 1201s ok 5 /mappedfile/writable 1201s ok 6 /mappedfile/writable_fd 1201s ok 7 /mappedfile/gbytes 1201s # End of mappedfile tests 1201s ok - glib/mappedfile.test 1201s # Running test: glib/cxx-98.test 1201s TAP version 14 1201s # random seed: R02Sf488399899d9ca5563ab07dc77d91c09 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-98.test 1201s # Running test: glib/gdbus-connection-slow.test 1201s TAP version 14 1201s # random seed: R02Sd98fe9ed66c510b8573d0eba2ac24dfa 1201s 1..2 1201s # Start of gdbus tests 1201s # Start of connection tests 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/flush/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/flush/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/flush/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/flush/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/flush/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/flush/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/flush/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/flush/.dirs/runtime 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s ok 1 /gdbus/connection/flush 1202s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/large_message/.dirs/home 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/large_message/.dirs/cache 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/large_message/.dirs/system-config2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/large_message/.dirs/config 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/large_message/.dirs/system-data2 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/large_message/.dirs/data 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/large_message/.dirs/state 1202s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_XLPHK3/gdbus/connection/large_message/.dirs/runtime 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1202s ok 2 /gdbus/connection/large_message 1202s # End of connection tests 1202s # End of gdbus tests 1202s ok - glib/gdbus-connection-slow.test 1202s # Running test: glib/signals-refcount3.test 1202s TAP version 14 1202s # random seed: R02S3ebdae34c7b65b96710c841b4497307d 1202s 1..1 1202s # Start of gobject tests 1202s # Start of refcount tests 1202s # init 0x4507c90 1202s # 1202s # init 0x450e510 1202s # 1202s # Executing: glib/signals-refcount3.test 1207s ok - glib/signals-refcount3.test 1207s # Running test: glib/markup-collect.test 1207s # dispose 0x4507c90! 1207s # 1207s # dispose 0x450e510! 1207s # 1207s ok 1 /gobject/refcount/signals 1207s # slow test /gobject/refcount/signals executed in 5.00 secs 1207s # End of refcount tests 1207s # End of gobject tests 1207s ok - glib/markup-collect.test 1207s # Running test: glib/dataset.test 1207s TAP version 14 1207s # random seed: R02S79e6c0388356e318edf067191ce6584e 1207s 1..21 1207s # Start of markup tests 1207s # Start of collect tests 1207s ok 1 /markup/collect/0 1207s ok 2 /markup/collect/1 1207s ok 3 /markup/collect/2 1207s ok 4 /markup/collect/3 1207s ok 5 /markup/collect/4 1207s ok 6 /markup/collect/5 1207s ok 7 /markup/collect/6 1207s ok 8 /markup/collect/7 1207s ok 9 /markup/collect/8 1207s ok 10 /markup/collect/9 1207s ok 11 /markup/collect/10 1207s ok 12 /markup/collect/11 1207s ok 13 /markup/collect/12 1207s ok 14 /markup/collect/13 1207s ok 15 /markup/collect/14 1207s ok 16 /markup/collect/15 1207s ok 17 /markup/collect/16 1207s ok 18 /markup/collect/17 1207s ok 19 /markup/collect/18 1207s ok 20 /markup/collect/19 1207s ok 21 /markup/collect/cleanup 1207s # End of collect tests 1207s # End of markup tests 1207s ok - glib/dataset.test 1207s # Running test: glib/sort.test 1207s TAP version 14 1207s # random seed: R02S21f583cfa7dd02ef62a4dcf5b9da333b 1207s 1..15 1207s # Start of quark tests 1207s ok 1 /quark/basic 1207s ok 2 /quark/string 1207s # End of quark tests 1207s # Start of dataset tests 1207s ok 3 /dataset/basic 1207s ok 4 /dataset/id 1207s ok - glib/sort.test 1207s # Running test: glib/value.test 1207s ok - glib/value.test 1207s # Running test: glib/regex.test 1207s # Executing: glib/regex.test 1207s ok 5 /dataset/full 1207s ok 6 /dataset/foreach 1207s ok 7 /dataset/destroy 1207s # End of dataset tests 1207s # Start of datalist tests 1207s ok 8 /datalist/id 1207s ok 9 /datalist/recursive-clear 1207s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1207s ok 10 /datalist/id-remove-multiple 1207s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1207s ok 11 /datalist/id-remove-multiple-destroy-order 1207s ok 12 /datalist/update-atomic 1207s # Start of basic tests 1207s ok 13 /datalist/basic/few 1207s ok 14 /datalist/basic/many 1207s # End of basic tests 1207s # Start of id-remove-multiple tests 1207s ok 15 /datalist/id-remove-multiple/resize 1207s # End of id-remove-multiple tests 1207s # End of datalist tests 1207s TAP version 14 1207s # random seed: R02S7b8744d6da1ae7a78e913e45a9d0c313 1207s 1..5 1207s # Start of sort tests 1207s ok 1 /sort/basic 1207s ok 2 /sort/zero-elements 1207s ok 3 /sort/stable 1207s ok 4 /sort/big 1207s ok 5 /sort/deprecated 1207s # End of sort tests 1207s TAP version 14 1207s # random seed: R02Sbb3a088ac4420c77db531a536282811a 1207s 1..9 1207s # Start of value tests 1207s ok 1 /value/basic 1207s ok 2 /value/collection 1207s ok 3 /value/copying 1207s ok 4 /value/enum-transformation 1207s ok 5 /value/gtype 1207s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 1207s ok 6 /value/string 1207s # Next: GObject object in GValue of GObject to GValue of GObject 1207s # Next: GObject object in GValue of GObject to GValue of TestInterface 1207s # Next: GObject object in GValue of GObject to GValue of TestObjectA 1207s # Next: GObject object in GValue of GObject to GValue of TestObjectB 1207s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 1207s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 1207s # Next: TestObjectA object in GValue of GObject to GValue of GObject 1207s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 1207s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 1207s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 1207s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 1207s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 1207s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 1207s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 1207s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 1207s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 1207s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 1207s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 1207s # Next: TestObjectB object in GValue of GObject to GValue of GObject 1207s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 1207s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 1207s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 1207s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 1207s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 1207s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 1207s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 1207s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 1207s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 1207s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 1207s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 1207s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 1207s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 1207s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 1207s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 1207s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 1207s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 1207s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 1207s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 1207s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 1207s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 1207s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 1207s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 1207s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 1207s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 1207s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 1207s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 1207s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 1207s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 1207s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 1207s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 1207s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 1207s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 1207s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 1207s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 1207s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 1207s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 1207s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 1207s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 1207s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 1207s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 1207s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 1207s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 1207s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 1207s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 1207s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 1207s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 1207s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 1207s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 1207s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 1207s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 1207s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 1207s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 1207s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 1207s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 1207s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 1207s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 1207s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 1207s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 1207s ok 7 /value/transform-object 1207s # Start of array tests 1207s ok 8 /value/array/basic 1207s ok 9 /value/array/sort-with-data 1207s # End of array tests 1207s # End of value tests 1207s TAP version 14 1207s # random seed: R02Se1790f325706a61594091831f61136ab 1207s 1..849 1207s # Start of regex tests 1207s ok 1 /regex/properties 1207s ok 2 /regex/class 1207s ok 3 /regex/lookahead 1207s ok 4 /regex/lookbehind 1207s ok 5 /regex/subpattern 1207s ok 6 /regex/condition 1207s ok 7 /regex/recursion 1207s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 1207s ok 8 /regex/multiline 1207s ok 9 /regex/explicit-crlf 1207s ok 10 /regex/max-lookbehind 1207s ok 11 /regex/compile-errors 1207s ok 12 /regex/jit-unsupported-matching 1207s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 1207s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 1207s ok 13 /regex/unmatched-named-subpattern 1207s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 1207s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 1207s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1207s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1207s ok 14 /regex/compiled-regex-after-jit-failure 1207s # Start of new tests 1207s ok 15 /regex/new/1 1207s ok 16 /regex/new/2 1207s ok 17 /regex/new/3 1207s ok 18 /regex/new/4 1207s ok 19 /regex/new/5 1207s ok 20 /regex/new/6 1207s ok 21 /regex/new/7 1207s ok 22 /regex/new/8 1207s ok 23 /regex/new/9 1207s ok 24 /regex/new/10 1207s ok 25 /regex/new/11 1207s ok 26 /regex/new/12 1207s ok 27 /regex/new/13 1207s ok 28 /regex/new/14 1207s ok 29 /regex/new/15 1207s ok 30 /regex/new/16 1207s ok 31 /regex/new/17 1207s ok 32 /regex/new/18 1207s ok 33 /regex/new/19 1207s ok 34 /regex/new/71 1207s ok 35 /regex/new/81 1207s ok 36 /regex/new/83 1207s # End of new tests 1207s # Start of new-check-flags tests 1207s ok 37 /regex/new-check-flags/20 1207s ok 38 /regex/new-check-flags/21 1207s ok 39 /regex/new-check-flags/22 1207s ok 40 /regex/new-check-flags/23 1207s ok 41 /regex/new-check-flags/24 1207s ok 42 /regex/new-check-flags/25 1207s ok 43 /regex/new-check-flags/26 1207s ok 44 /regex/new-check-flags/27 1207s ok 45 /regex/new-check-flags/28 1207s ok 46 /regex/new-check-flags/29 1207s ok 47 /regex/new-check-flags/30 1207s ok 48 /regex/new-check-flags/31 1207s ok 49 /regex/new-check-flags/32 1207s ok 50 /regex/new-check-flags/33 1207s ok 51 /regex/new-check-flags/34 1207s ok 52 /regex/new-check-flags/35 1207s ok 53 /regex/new-check-flags/36 1207s # End of new-check-flags tests 1207s # Start of new-fail tests 1207s # Compiling pattern /(/ failed with error: Error while compiling regular expression ‘(’ at char 1: missing terminating ) 1207s ok 54 /regex/new-fail/37 1207s # Compiling pattern /)/ failed with error: Error while compiling regular expression ‘)’ at char 0: missing terminating ) 1207s ok 55 /regex/new-fail/38 1207s # Compiling pattern /[/ failed with error: Error while compiling regular expression ‘[’ at char 1: missing terminating ] for character class 1207s ok 56 /regex/new-fail/39 1207s # Compiling pattern /*/ failed with error: Error while compiling regular expression ‘*’ at char 0: nothing to repeat 1207s ok 57 /regex/new-fail/40 1207s # Compiling pattern /?/ failed with error: Error while compiling regular expression ‘?’ at char 0: nothing to repeat 1207s ok 58 /regex/new-fail/41 1207s # Compiling pattern /(?Px)|(?Py)/ failed with error: Error while compiling regular expression ‘(?Px)|(?Py)’ at char 15: two named subpatterns have the same name 1207s ok 59 /regex/new-fail/42 1207s # Compiling pattern /a\/ failed with error: Error while compiling regular expression ‘a\’ at char 2: \ at end of pattern 1207s ok 60 /regex/new-fail/43 1207s # Compiling pattern /a\c/ failed with error: Error while compiling regular expression ‘a\c’ at char 3: \c at end of pattern 1207s ok 61 /regex/new-fail/44 1207s # Compiling pattern /a\l/ failed with error: Error while compiling regular expression ‘a\l’ at char 3: unrecognized character following \ 1207s ok 62 /regex/new-fail/45 1207s # 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 1207s ok 63 /regex/new-fail/46 1207s # Compiling pattern /a{999999,}/ failed with error: Error while compiling regular expression ‘a{999999,}’ at char 8: number too big in {} quantifier 1207s ok 64 /regex/new-fail/47 1207s # Compiling pattern /[a-z/ failed with error: Error while compiling regular expression ‘[a-z’ at char 4: missing terminating ] for character class 1207s ok 65 /regex/new-fail/48 1207s # Compiling pattern /[\B]/ failed with error: Error while compiling regular expression ‘[\B]’ at char 2: invalid escape sequence in character class 1207s ok 66 /regex/new-fail/49 1207s # Compiling pattern /[z-a]/ failed with error: Error while compiling regular expression ‘[z-a]’ at char 3: range out of order in character class 1207s ok 67 /regex/new-fail/50 1207s # Compiling pattern /^[[:alnum:]-_.]+$/ failed with error: Error while compiling regular expression ‘^[[:alnum:]-_.]+$’ at char 12: invalid range in character class 1207s ok 68 /regex/new-fail/51 1207s # Compiling pattern /{2,4}/ failed with error: Error while compiling regular expression ‘{2,4}’ at char 4: nothing to repeat 1207s ok 69 /regex/new-fail/52 1207s # Compiling pattern /a(?u)/ failed with error: Error while compiling regular expression ‘a(?u)’ at char 3: unrecognized character after (? or (?- 1207s ok 70 /regex/new-fail/53 1207s # Compiling pattern /a(?<$foo)bar/ failed with error: Error while compiling regular expression ‘a(?<$foo)bar’ at char 4: missing subpattern name after (?& 1207s ok 71 /regex/new-fail/54 1207s # 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 1207s ok 72 /regex/new-fail/55 1207s # Compiling pattern /a(b/ failed with error: Error while compiling regular expression ‘a(b’ at char 3: missing terminating ) 1207s ok 73 /regex/new-fail/56 1207s # Compiling pattern /a)b/ failed with error: Error while compiling regular expression ‘a)b’ at char 1: missing terminating ) 1207s ok 74 /regex/new-fail/57 1207s # Compiling pattern /a(?R/ failed with error: Error while compiling regular expression ‘a(?R’ at char 4: missing terminating ) 1207s ok 75 /regex/new-fail/58 1207s # Compiling pattern /a(?-54/ failed with error: Error while compiling regular expression ‘a(?-54’ at char 6: reference to non-existent subpattern 1207s ok 76 /regex/new-fail/59 1207s # Compiling pattern /(ab\2)/ failed with error: Error while compiling regular expression ‘(ab\2)’ at char 4: reference to non-existent subpattern 1207s ok 77 /regex/new-fail/60 1207s # Compiling pattern /a(?#abc/ failed with error: Error while compiling regular expression ‘a(?#abc’ at char 7: missing ) after comment 1207s ok 78 /regex/new-fail/61 1207s # Compiling pattern /(?<=a+)b/ failed with error: Error while compiling regular expression ‘(?<=a+)b’ at char 0: lookbehind assertion is not fixed length 1207s ok 79 /regex/new-fail/62 1207s # Compiling pattern /(?(1?)a|b)/ failed with error: Error while compiling regular expression ‘(?(1?)a|b)’ at char 4: malformed number or name after (?( 1207s ok 80 /regex/new-fail/63 1207s # 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 1207s ok 81 /regex/new-fail/64 1207s # Compiling pattern /(?(?i))/ failed with error: Error while compiling regular expression ‘(?(?i))’ at char 2: assertion expected after (?( 1207s ok 82 /regex/new-fail/65 1207s # Compiling pattern /a[[:fubar:]]b/ failed with error: Error while compiling regular expression ‘a[[:fubar:]]b’ at char 11: unknown POSIX class name 1207s ok 83 /regex/new-fail/66 1207s # Compiling pattern /[[.ch.]]/ failed with error: Error while compiling regular expression ‘[[.ch.]]’ at char 7: POSIX collating elements are not supported 1207s ok 84 /regex/new-fail/67 1207s # 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 1207s ok 85 /regex/new-fail/68 1207s # 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 1207s ok 86 /regex/new-fail/69 1207s # Compiling pattern /(?<=\C)X/ failed with error: Error while compiling regular expression ‘(?<=\C)X’ at char 0: \C not allowed in lookbehind assertion 1207s ok 87 /regex/new-fail/70 1207s # 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 1207s ok 90 /regex/new-fail/74 1207s # Compiling pattern /\666/ failed with error: Error while compiling regular expression ‘\666’ at char 4: octal value is greater than \377 1207s ok 91 /regex/new-fail/75 1207s # 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 1207s ok 92 /regex/new-fail/76 1207s # Compiling pattern /a/ failed with error: Invalid newline flags 1207s ok 93 /regex/new-fail/77 1207s # 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 1207s ok 94 /regex/new-fail/78 1207s # 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 1207s ok 95 /regex/new-fail/79 1207s # Compiling pattern /^(a)\g{0}/ failed with error: Error while compiling regular expression ‘^(a)\g{0}’ at char 9: reference to non-existent subpattern 1207s ok 96 /regex/new-fail/80 1207s # Compiling pattern /a(*FOOBAR)b/ failed with error: Error while compiling regular expression ‘a(*FOOBAR)b’ at char 9: (*VERB) not recognized 1207s ok 97 /regex/new-fail/82 1207s # Compiling pattern /(?)(?&)/ failed with error: Error while compiling regular expression ‘(?)(?&)’ at char 9: missing subpattern name after (?& 1207s ok 98 /regex/new-fail/84 1207s # Compiling pattern /(?+-a)/ failed with error: Error while compiling regular expression ‘(?+-a)’ at char 2: a numbered reference must not be zero 1207s ok 99 /regex/new-fail/85 1207s # 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 1207s ok 100 /regex/new-fail/86 1207s # Compiling pattern /a(*MARK)b/ failed with error: Error while compiling regular expression ‘a(*MARK)b’ at char 7: (*MARK) must have an argument 1207s ok 101 /regex/new-fail/87 1207s # Compiling pattern /^\c€/ failed with error: Error while compiling regular expression ‘^\c€’ at char 3: \c must be followed by an ASCII character 1207s ok 102 /regex/new-fail/88 1207s # 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 1207s ok 103 /regex/new-fail/89 1207s # 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 1207s ok 104 /regex/new-fail/90 1207s # 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) 1207s ok 105 /regex/new-fail/91 1207s # 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 1207s ok 106 /regex/new-fail/92 1207s # End of new-fail tests 1207s # Start of match-simple tests 1207s ok 107 /regex/match-simple/93 1207s ok 108 /regex/match-simple/94 1207s ok 109 /regex/match-simple/95 1207s ok 110 /regex/match-simple/96 1207s ok 111 /regex/match-simple/97 1207s ok 112 /regex/match-simple/98 1207s ok 113 /regex/match-simple/99 1207s ok 114 /regex/match-simple/100 1207s ok 115 /regex/match-simple/101 1207s ok 116 /regex/match-simple/102 1207s ok 117 /regex/match-simple/103 1207s ok 118 /regex/match-simple/104 1207s ok 119 /regex/match-simple/105 1207s ok 120 /regex/match-simple/106 1207s ok 121 /regex/match-simple/107 1207s ok 122 /regex/match-simple/108 1207s ok 123 /regex/match-simple/109 1207s ok 124 /regex/match-simple/110 1207s ok 125 /regex/match-simple/111 1207s ok 126 /regex/match-simple/112 1207s ok 127 /regex/match-simple/113 1207s ok 128 /regex/match-simple/114 1207s ok 129 /regex/match-simple/115 1207s ok 130 /regex/match-simple/116 1207s ok 131 /regex/match-simple/117 1207s ok 132 /regex/match-simple/118 1207s ok 133 /regex/match-simple/119 1207s ok 134 /regex/match-simple/120 1207s ok 135 /regex/match-simple/121 1207s ok 136 /regex/match-simple/122 1207s ok 137 /regex/match-simple/123 1207s ok 138 /regex/match-simple/124 1207s ok 139 /regex/match-simple/125 1207s ok 140 /regex/match-simple/126 1207s ok 141 /regex/match-simple/127 1207s ok 142 /regex/match-simple/128 1207s ok 143 /regex/match-simple/129 1207s ok 144 /regex/match-simple/130 1207s ok 145 /regex/match-simple/131 1207s ok 146 /regex/match-simple/132 1207s ok 147 /regex/match-simple/133 1207s ok 148 /regex/match-simple/134 1207s ok 149 /regex/match-simple/135 1207s ok 150 /regex/match-simple/136 1207s ok 151 /regex/match-simple/137 1207s ok 152 /regex/match-simple/138 1207s ok 153 /regex/match-simple/139 1207s ok 154 /regex/match-simple/140 1207s ok 155 /regex/match-simple/141 1207s ok 156 /regex/match-simple/142 1207s ok 157 /regex/match-simple/143 1207s ok 158 /regex/match-simple/144 1207s ok 159 /regex/match-simple/145 1207s ok 160 /regex/match-simple/146 1207s ok 161 /regex/match-simple/147 1207s ok 162 /regex/match-simple/148 1207s ok 163 /regex/match-simple/149 1207s ok 164 /regex/match-simple/150 1207s ok 165 /regex/match-simple/151 1207s ok 166 /regex/match-simple/152 1207s ok 167 /regex/match-simple/153 1207s ok 168 /regex/match-simple/154 1207s ok 169 /regex/match-simple/155 1207s ok 170 /regex/match-simple/156 1207s ok 171 /regex/match-simple/157 1207s ok 172 /regex/match-simple/158 1207s ok 173 /regex/match-simple/159 1207s ok 174 /regex/match-simple/160 1207s ok 175 /regex/match-simple/161 1207s ok 176 /regex/match-simple/162 1207s ok 177 /regex/match-simple/163 1207s ok 178 /regex/match-simple/164 1207s ok 179 /regex/match-simple/165 1207s # End of match-simple tests 1207s # Start of match-simple-optimized tests 1207s ok 180 /regex/match-simple-optimized/93 1207s ok 181 /regex/match-simple-optimized/94 1207s ok 182 /regex/match-simple-optimized/95 1207s ok 183 /regex/match-simple-optimized/96 1207s ok 184 /regex/match-simple-optimized/97 1207s ok 185 /regex/match-simple-optimized/98 1207s ok 186 /regex/match-simple-optimized/99 1207s ok 187 /regex/match-simple-optimized/100 1207s ok 188 /regex/match-simple-optimized/101 1207s ok 189 /regex/match-simple-optimized/102 1207s ok 190 /regex/match-simple-optimized/103 1207s ok 191 /regex/match-simple-optimized/104 1207s ok 192 /regex/match-simple-optimized/105 1207s ok 193 /regex/match-simple-optimized/106 1207s ok 194 /regex/match-simple-optimized/107 1207s ok 195 /regex/match-simple-optimized/108 1207s ok 196 /regex/match-simple-optimized/109 1207s ok 197 /regex/match-simple-optimized/110 1207s ok 198 /regex/match-simple-optimized/111 1207s ok 199 /regex/match-simple-optimized/112 1207s ok 200 /regex/match-simple-optimized/113 1207s ok 201 /regex/match-simple-optimized/114 1207s ok 202 /regex/match-simple-optimized/115 1207s ok 203 /regex/match-simple-optimized/116 1207s ok 204 /regex/match-simple-optimized/117 1207s ok 205 /regex/match-simple-optimized/118 1207s ok 206 /regex/match-simple-optimized/119 1207s ok 207 /regex/match-simple-optimized/120 1207s ok 208 /regex/match-simple-optimized/121 1207s ok 209 /regex/match-simple-optimized/122 1207s ok 210 /regex/match-simple-optimized/123 1207s ok 211 /regex/match-simple-optimized/124 1207s ok 212 /regex/match-simple-optimized/125 1207s ok 213 /regex/match-simple-optimized/126 1207s ok 214 /regex/match-simple-optimized/127 1207s ok 215 /regex/match-simple-optimized/128 1207s ok 216 /regex/match-simple-optimized/129 1207s ok 217 /regex/match-simple-optimized/130 1207s ok 218 /regex/match-simple-optimized/131 1207s ok 219 /regex/match-simple-optimized/132 1207s ok 220 /regex/match-simple-optimized/133 1207s ok 221 /regex/match-simple-optimized/134 1207s ok 222 /regex/match-simple-optimized/135 1207s ok 223 /regex/match-simple-optimized/136 1207s ok 224 /regex/match-simple-optimized/137 1207s ok 225 /regex/match-simple-optimized/138 1207s ok 226 /regex/match-simple-optimized/139 1207s ok 227 /regex/match-simple-optimized/140 1207s ok 228 /regex/match-simple-optimized/141 1207s ok 229 /regex/match-simple-optimized/142 1207s ok 230 /regex/match-simple-optimized/143 1207s ok 231 /regex/match-simple-optimized/144 1207s ok 232 /regex/match-simple-optimized/145 1207s ok 233 /regex/match-simple-optimized/146 1207s ok 234 /regex/match-simple-optimized/147 1207s ok 235 /regex/match-simple-optimized/148 1207s ok 236 /regex/match-simple-optimized/149 1207s ok 237 /regex/match-simple-optimized/150 1207s ok 238 /regex/match-simple-optimized/151 1207s ok 239 /regex/match-simple-optimized/152 1207s ok 240 /regex/match-simple-optimized/153 1207s ok 241 /regex/match-simple-optimized/154 1207s ok 242 /regex/match-simple-optimized/155 1207s ok 243 /regex/match-simple-optimized/156 1207s ok 244 /regex/match-simple-optimized/157 1207s ok 245 /regex/match-simple-optimized/158 1207s ok 246 /regex/match-simple-optimized/159 1207s ok 247 /regex/match-simple-optimized/160 1207s ok 248 /regex/match-simple-optimized/161 1207s ok 249 /regex/match-simple-optimized/162 1207s ok 250 /regex/match-simple-optimized/163 1207s ok 251 /regex/match-simple-optimized/164 1207s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1207s ok 252 /regex/match-simple-optimized/165 1207s # End of match-simple-optimized tests 1207s # Start of match tests 1207s ok 253 /regex/match/166 1207s ok 254 /regex/match/167 1207s ok 255 /regex/match/168 1207s ok 256 /regex/match/169 1207s ok 257 /regex/match/170 1207s ok 258 /regex/match/171 1207s ok 259 /regex/match/172 1207s ok 260 /regex/match/173 1207s ok 261 /regex/match/174 1207s ok 262 /regex/match/175 1207s ok 263 /regex/match/176 1207s ok 264 /regex/match/177 1207s ok 265 /regex/match/178 1207s ok 266 /regex/match/179 1207s ok 267 /regex/match/180 1207s ok 268 /regex/match/181 1207s ok 269 /regex/match/182 1207s ok 270 /regex/match/183 1207s ok 271 /regex/match/184 1207s ok 272 /regex/match/185 1207s ok 273 /regex/match/186 1207s ok 274 /regex/match/187 1207s ok 275 /regex/match/188 1207s ok 276 /regex/match/189 1207s ok 277 /regex/match/190 1207s ok 278 /regex/match/191 1207s ok 279 /regex/match/192 1207s ok 280 /regex/match/193 1207s ok 281 /regex/match/194 1207s ok 282 /regex/match/195 1207s ok 283 /regex/match/196 1207s ok 284 /regex/match/197 1207s ok 285 /regex/match/198 1207s ok 286 /regex/match/199 1207s ok 287 /regex/match/200 1207s ok 288 /regex/match/201 1207s ok 289 /regex/match/202 1207s ok 290 /regex/match/203 1207s ok 291 /regex/match/204 1207s ok 292 /regex/match/205 1207s ok 293 /regex/match/206 1207s ok 294 /regex/match/207 1207s ok 295 /regex/match/208 1207s ok 296 /regex/match/209 1207s ok 297 /regex/match/210 1207s ok 298 /regex/match/211 1207s ok 299 /regex/match/212 1207s ok 300 /regex/match/213 1207s ok 301 /regex/match/214 1207s ok 302 /regex/match/215 1207s ok 303 /regex/match/216 1207s ok 304 /regex/match/217 1207s ok 305 /regex/match/218 1207s ok 306 /regex/match/219 1207s ok 307 /regex/match/220 1207s ok 308 /regex/match/221 1207s ok 309 /regex/match/222 1207s ok 310 /regex/match/223 1207s ok 311 /regex/match/224 1207s ok 312 /regex/match/225 1207s ok 313 /regex/match/226 1207s ok 314 /regex/match/227 1207s ok 315 /regex/match/228 1207s ok 316 /regex/match/229 1207s ok 317 /regex/match/230 1207s ok 318 /regex/match/231 1207s ok 319 /regex/match/232 1207s ok 320 /regex/match/233 1207s ok 321 /regex/match/234 1207s ok 322 /regex/match/235 1207s ok 323 /regex/match/236 1207s ok 324 /regex/match/237 1207s ok 325 /regex/match/238 1207s ok 326 /regex/match/239 1207s ok 327 /regex/match/240 1207s ok 328 /regex/match/241 1207s ok 329 /regex/match/242 1207s ok 330 /regex/match/243 1207s ok 331 /regex/match/244 1207s ok 332 /regex/match/245 1207s ok 333 /regex/match/246 1207s ok 334 /regex/match/247 1207s ok 335 /regex/match/partial282 1207s ok 336 /regex/match/partial283 1207s ok 337 /regex/match/partial284 1207s ok 338 /regex/match/partial285 1207s ok 339 /regex/match/partial286 1207s ok 340 /regex/match/partial287 1207s ok 341 /regex/match/partial288 1207s ok 342 /regex/match/partial289 1207s ok 343 /regex/match/partial290 1207s ok 344 /regex/match/partial291 1207s ok 345 /regex/match/partial292 1207s ok 346 /regex/match/partial293 1207s ok 347 /regex/match/partial294 1207s ok 348 /regex/match/partial295 1207s ok 349 /regex/match/partial296 1207s ok 350 /regex/match/partial297 1207s ok 351 /regex/match/partial298 1207s ok 352 /regex/match/partial299 1207s ok 353 /regex/match/partial300 1207s ok 354 /regex/match/partial301 1207s ok 355 /regex/match/partial302 1207s ok 356 /regex/match/partial303 1207s # Start of next0 tests 1207s ok 357 /regex/match/next0/248 1207s ok 358 /regex/match/next0/249 1207s ok 359 /regex/match/next0/250 1207s ok 360 /regex/match/next0/251 1207s # End of next0 tests 1207s # Start of next1 tests 1207s ok 361 /regex/match/next1/252 1207s ok - glib/regex.test 1208s # Running test: glib/macros.test 1208s ok - glib/macros.test 1208s # Running test: glib/closure-refcount.test 1208s ok 362 /regex/match/next1/253 1208s ok 363 /regex/match/next1/254 1208s ok 364 /regex/match/next1/255 1208s ok 365 /regex/match/next1/256 1208s # End of next1 tests 1208s # Start of next2 tests 1208s ok 366 /regex/match/next2/257 1208s ok 367 /regex/match/next2/258 1208s ok 368 /regex/match/next2/259 1208s ok 369 /regex/match/next2/260 1208s ok 370 /regex/match/next2/261 1208s ok 371 /regex/match/next2/262 1208s ok 372 /regex/match/next2/263 1208s ok 373 /regex/match/next2/264 1208s # End of next2 tests 1208s # Start of next3 tests 1208s ok 374 /regex/match/next3/265 1208s ok 375 /regex/match/next3/266 1208s ok 376 /regex/match/next3/267 1208s ok 377 /regex/match/next3/268 1208s ok 378 /regex/match/next3/269 1208s ok 379 /regex/match/next3/270 1208s # End of next3 tests 1208s # Start of next4 tests 1208s ok 380 /regex/match/next4/271 1208s # End of next4 tests 1208s # Start of count tests 1208s ok 381 /regex/match/count/272 1208s ok 382 /regex/match/count/273 1208s ok 383 /regex/match/count/274 1208s ok 384 /regex/match/count/275 1208s ok 385 /regex/match/count/276 1208s ok 386 /regex/match/count/277 1208s ok 387 /regex/match/count/278 1208s ok 388 /regex/match/count/279 1208s ok 389 /regex/match/count/280 1208s ok 390 /regex/match/count/281 1208s # End of count tests 1208s # Start of count-optimized tests 1208s ok 391 /regex/match/count-optimized/272 1208s ok 392 /regex/match/count-optimized/273 1208s ok 393 /regex/match/count-optimized/274 1208s ok 394 /regex/match/count-optimized/275 1208s ok 395 /regex/match/count-optimized/276 1208s ok 396 /regex/match/count-optimized/277 1208s ok 397 /regex/match/count-optimized/278 1208s ok 398 /regex/match/count-optimized/279 1208s ok 399 /regex/match/count-optimized/280 1208s ok 400 /regex/match/count-optimized/281 1208s # End of count-optimized tests 1208s # Start of partial-optimized tests 1208s ok 401 /regex/match/partial-optimized/282 1208s ok 402 /regex/match/partial-optimized/283 1208s ok 403 /regex/match/partial-optimized/284 1208s ok 404 /regex/match/partial-optimized/285 1208s ok 405 /regex/match/partial-optimized/286 1208s ok 406 /regex/match/partial-optimized/287 1208s ok 407 /regex/match/partial-optimized/288 1208s ok 408 /regex/match/partial-optimized/289 1208s ok 409 /regex/match/partial-optimized/290 1208s ok 410 /regex/match/partial-optimized/291 1208s ok 411 /regex/match/partial-optimized/292 1208s ok 412 /regex/match/partial-optimized/293 1208s ok 413 /regex/match/partial-optimized/294 1208s ok 414 /regex/match/partial-optimized/295 1208s ok 415 /regex/match/partial-optimized/296 1208s ok 416 /regex/match/partial-optimized/297 1208s ok 417 /regex/match/partial-optimized/298 1208s ok 418 /regex/match/partial-optimized/299 1208s ok 419 /regex/match/partial-optimized/300 1208s ok 420 /regex/match/partial-optimized/301 1208s ok 421 /regex/match/partial-optimized/302 1208s ok 422 /regex/match/partial-optimized/303 1208s # End of partial-optimized tests 1208s # Start of subpattern tests 1208s ok 423 /regex/match/subpattern/304 1208s ok 424 /regex/match/subpattern/305 1208s ok 425 /regex/match/subpattern/306 1208s ok 426 /regex/match/subpattern/307 1208s ok 427 /regex/match/subpattern/308 1208s ok 428 /regex/match/subpattern/309 1208s ok 429 /regex/match/subpattern/310 1208s ok 430 /regex/match/subpattern/311 1208s ok 431 /regex/match/subpattern/312 1208s ok 432 /regex/match/subpattern/313 1208s ok 433 /regex/match/subpattern/314 1208s ok 434 /regex/match/subpattern/315 1208s ok 435 /regex/match/subpattern/316 1208s # Start of named tests 1208s # Start of dupnames tests 1208s ok 436 /regex/match/subpattern/named/dupnames/326 1208s ok 437 /regex/match/subpattern/named/dupnames/327 1208s ok 438 /regex/match/subpattern/named/dupnames/328 1208s ok 439 /regex/match/subpattern/named/dupnames/329 1208s ok 440 /regex/match/subpattern/named/dupnames/330 1208s # End of dupnames tests 1208s # End of named tests 1208s # End of subpattern tests 1208s # Start of subpattern-optimized tests 1208s ok 441 /regex/match/subpattern-optimized/304 1208s ok 442 /regex/match/subpattern-optimized/305 1208s ok 443 /regex/match/subpattern-optimized/306 1208s ok 444 /regex/match/subpattern-optimized/307 1208s ok 445 /regex/match/subpattern-optimized/308 1208s ok 446 /regex/match/subpattern-optimized/309 1208s ok 447 /regex/match/subpattern-optimized/310 1208s ok 448 /regex/match/subpattern-optimized/311 1208s ok 449 /regex/match/subpattern-optimized/312 1208s ok 450 /regex/match/subpattern-optimized/313 1208s ok 451 /regex/match/subpattern-optimized/314 1208s ok 452 /regex/match/subpattern-optimized/315 1208s ok 453 /regex/match/subpattern-optimized/316 1208s # End of subpattern-optimized tests 1208s # Start of named tests 1208s # Start of subpattern tests 1208s ok 454 /regex/match/named/subpattern/317 1208s ok 455 /regex/match/named/subpattern/318 1208s ok 456 /regex/match/named/subpattern/319 1208s ok 457 /regex/match/named/subpattern/320 1208s ok 458 /regex/match/named/subpattern/321 1208s ok 459 /regex/match/named/subpattern/322 1208s ok 460 /regex/match/named/subpattern/323 1208s ok 461 /regex/match/named/subpattern/324 1208s ok 462 /regex/match/named/subpattern/325 1208s ok 463 /regex/match/named/subpattern/331 1208s ok 464 /regex/match/named/subpattern/332 1208s ok 465 /regex/match/named/subpattern/333 1208s ok 466 /regex/match/named/subpattern/334 1208s ok 467 /regex/match/named/subpattern/335 1208s # End of subpattern tests 1208s # End of named tests 1208s # End of match tests 1208s # Start of match-optimized tests 1208s ok 468 /regex/match-optimized/166 1208s ok 469 /regex/match-optimized/167 1208s ok 470 /regex/match-optimized/168 1208s ok 471 /regex/match-optimized/169 1208s ok 472 /regex/match-optimized/170 1208s ok 473 /regex/match-optimized/171 1208s ok 474 /regex/match-optimized/172 1208s ok 475 /regex/match-optimized/173 1208s ok 476 /regex/match-optimized/174 1208s ok 477 /regex/match-optimized/175 1208s ok 478 /regex/match-optimized/176 1208s ok 479 /regex/match-optimized/177 1208s ok 480 /regex/match-optimized/178 1208s ok 481 /regex/match-optimized/179 1208s ok 482 /regex/match-optimized/180 1208s ok 483 /regex/match-optimized/181 1208s ok 484 /regex/match-optimized/182 1208s ok 485 /regex/match-optimized/183 1208s ok 486 /regex/match-optimized/184 1208s ok 487 /regex/match-optimized/185 1208s ok 488 /regex/match-optimized/186 1208s ok 489 /regex/match-optimized/187 1208s ok 490 /regex/match-optimized/188 1208s ok 491 /regex/match-optimized/189 1208s ok 492 /regex/match-optimized/190 1208s ok 493 /regex/match-optimized/191 1208s ok 494 /regex/match-optimized/192 1208s ok 495 /regex/match-optimized/193 1208s ok 496 /regex/match-optimized/194 1208s ok 497 /regex/match-optimized/195 1208s ok 498 /regex/match-optimized/196 1208s ok 499 /regex/match-optimized/197 1208s ok 500 /regex/match-optimized/198 1208s ok 501 /regex/match-optimized/199 1208s ok 502 /regex/match-optimized/200 1208s ok 503 /regex/match-optimized/201 1208s ok 504 /regex/match-optimized/202 1208s ok 505 /regex/match-optimized/203 1208s ok 506 /regex/match-optimized/204 1208s ok 507 /regex/match-optimized/205 1208s ok 508 /regex/match-optimized/206 1208s ok 509 /regex/match-optimized/207 1208s ok 510 /regex/match-optimized/208 1208s ok 511 /regex/match-optimized/209 1208s ok 512 /regex/match-optimized/210 1208s ok 513 /regex/match-optimized/211 1208s ok 514 /regex/match-optimized/212 1208s ok 515 /regex/match-optimized/213 1208s ok 516 /regex/match-optimized/214 1208s ok 517 /regex/match-optimized/215 1208s ok 518 /regex/match-optimized/216 1208s ok 519 /regex/match-optimized/217 1208s ok 520 /regex/match-optimized/218 1208s ok 521 /regex/match-optimized/219 1208s ok 522 /regex/match-optimized/220 1208s ok 523 /regex/match-optimized/221 1208s ok 524 /regex/match-optimized/222 1208s ok 525 /regex/match-optimized/223 1208s ok 526 /regex/match-optimized/224 1208s ok 527 /regex/match-optimized/225 1208s ok 528 /regex/match-optimized/226 1208s ok 529 /regex/match-optimized/227 1208s ok 530 /regex/match-optimized/228 1208s ok 531 /regex/match-optimized/229 1208s ok 532 /regex/match-optimized/230 1208s ok 533 /regex/match-optimized/231 1208s ok 534 /regex/match-optimized/232 1208s ok 535 /regex/match-optimized/233 1208s ok 536 /regex/match-optimized/234 1208s ok 537 /regex/match-optimized/235 1208s ok 538 /regex/match-optimized/236 1208s ok 539 /regex/match-optimized/237 1208s ok 540 /regex/match-optimized/238 1208s ok 541 /regex/match-optimized/239 1208s ok 542 /regex/match-optimized/240 1208s ok 543 /regex/match-optimized/241 1208s ok 544 /regex/match-optimized/242 1208s ok 545 /regex/match-optimized/243 1208s ok 546 /regex/match-optimized/244 1208s ok 547 /regex/match-optimized/245 1208s ok 548 /regex/match-optimized/246 1208s ok 549 /regex/match-optimized/247 1208s # End of match-optimized tests 1208s # Start of fetch-all0 tests 1208s ok 550 /regex/fetch-all0/336 1208s ok 551 /regex/fetch-all0/337 1208s # End of fetch-all0 tests 1208s # Start of fetch-all1 tests 1208s ok 552 /regex/fetch-all1/338 1208s ok 553 /regex/fetch-all1/339 1208s ok 554 /regex/fetch-all1/340 1208s # End of fetch-all1 tests 1208s # Start of fetch-all2 tests 1208s ok 555 /regex/fetch-all2/341 1208s ok 556 /regex/fetch-all2/342 1208s ok 557 /regex/fetch-all2/343 1208s # End of fetch-all2 tests 1208s # Start of fetch-all3 tests 1208s ok 558 /regex/fetch-all3/344 1208s ok 559 /regex/fetch-all3/345 1208s ok 560 /regex/fetch-all3/346 1208s ok 561 /regex/fetch-all3/347 1208s ok 562 /regex/fetch-all3/348 1208s # End of fetch-all3 tests 1208s # Start of split tests 1208s # Start of simple0 tests 1208s ok 563 /regex/split/simple0/349 1208s ok 564 /regex/split/simple0/350 1208s ok 565 /regex/split/simple0/365 1208s ok 566 /regex/split/simple0/366 1208s # End of simple0 tests 1208s # Start of simple1 tests 1208s ok 567 /regex/split/simple1/351 1208s ok 568 /regex/split/simple1/352 1208s # End of simple1 tests 1208s # Start of simple2 tests 1208s ok 569 /regex/split/simple2/353 1208s ok 570 /regex/split/simple2/359 1208s ok 571 /regex/split/simple2/361 1208s # End of simple2 tests 1208s # Start of simple3 tests 1208s ok 572 /regex/split/simple3/354 1208s ok 573 /regex/split/simple3/355 1208s ok 574 /regex/split/simple3/356 1208s ok 575 /regex/split/simple3/357 1208s ok 576 /regex/split/simple3/358 1208s ok 577 /regex/split/simple3/360 1208s ok 578 /regex/split/simple3/362 1208s ok 579 /regex/split/simple3/363 1208s ok 580 /regex/split/simple3/364 1208s # End of simple3 tests 1208s # End of split tests 1208s # Start of split0 tests 1208s ok 581 /regex/split0/367 1208s ok 582 /regex/split0/369 1208s # End of split0 tests 1208s # Start of full-split0 tests 1208s ok 583 /regex/full-split0/368 1208s ok 584 /regex/full-split0/370 1208s ok 585 /regex/full-split0/371 1208s ok 586 /regex/full-split0/372 1208s ok 587 /regex/full-split0/373 1208s # End of full-split0 tests 1208s # Start of split1 tests 1208s ok 588 /regex/split1/374 1208s ok 589 /regex/split1/377 1208s # End of split1 tests 1208s # Start of full-split1 tests 1208s ok 590 /regex/full-split1/375 1208s ok 591 /regex/full-split1/376 1208s ok 592 /regex/full-split1/378 1208s ok 593 /regex/full-split1/379 1208s ok 594 /regex/full-split1/405 1208s # End of full-split1 tests 1208s # Start of split2 tests 1208s ok 595 /regex/split2/380 1208s ok 596 /regex/split2/384 1208s ok 597 /regex/split2/396 1208s # End of split2 tests 1208s # Start of full-split2 tests 1208s ok 598 /regex/full-split2/381 1208s ok 599 /regex/full-split2/382 1208s ok 600 /regex/full-split2/383 1208s ok 601 /regex/full-split2/385 1208s ok 602 /regex/full-split2/397 1208s ok 603 /regex/full-split2/400 1208s ok 604 /regex/full-split2/406 1208s # End of full-split2 tests 1208s # Start of split3 tests 1208s ok 605 /regex/split3/386 1208s ok 606 /regex/split3/388 1208s ok 607 /regex/split3/390 1208s ok 608 /regex/split3/392 1208s ok 609 /regex/split3/394 1208s ok 610 /regex/split3/398 1208s ok 611 /regex/split3/401 1208s ok 612 /regex/split3/403 1208s # End of split3 tests 1208s # Start of full-split3 tests 1208s ok 613 /regex/full-split3/387 1208s ok 614 /regex/full-split3/389 1208s ok 615 /regex/full-split3/391 1208s ok 616 /regex/full-split3/393 1208s ok 617 /regex/full-split3/395 1208s ok 618 /regex/full-split3/399 1208s ok 619 /regex/full-split3/402 1208s ok 620 /regex/full-split3/404 1208s ok 621 /regex/full-split3/407 1208s ok 622 /regex/full-split3/408 1208s # End of full-split3 tests 1208s # Start of check-repacement tests 1208s ok 623 /regex/check-repacement/409 1208s ok 624 /regex/check-repacement/410 1208s ok 625 /regex/check-repacement/411 1208s ok 626 /regex/check-repacement/412 1208s ok 627 /regex/check-repacement/413 1208s ok 628 /regex/check-repacement/414 1208s ok 629 /regex/check-repacement/415 1208s ok 630 /regex/check-repacement/416 1208s # End of check-repacement tests 1208s # Start of expand tests 1208s ok 631 /regex/expand/417 1208s ok 632 /regex/expand/418 1208s ok 633 /regex/expand/419 1208s ok 634 /regex/expand/420 1208s ok 635 /regex/expand/421 1208s ok 636 /regex/expand/422 1208s ok 637 /regex/expand/423 1208s ok 638 /regex/expand/424 1208s ok 639 /regex/expand/425 1208s ok 640 /regex/expand/426 1208s ok 641 /regex/expand/427 1208s ok 642 /regex/expand/428 1208s ok 643 /regex/expand/429 1208s ok 644 /regex/expand/430 1208s ok 645 /regex/expand/431 1208s ok 646 /regex/expand/432 1208s ok 647 /regex/expand/433 1208s ok 648 /regex/expand/434 1208s ok 649 /regex/expand/435 1208s ok 650 /regex/expand/436 1208s ok 651 /regex/expand/437 1208s ok 652 /regex/expand/438 1208s ok 653 /regex/expand/439 1208s ok 654 /regex/expand/440 1208s ok 655 /regex/expand/441 1208s ok 656 /regex/expand/442 1208s ok 657 /regex/expand/443 1208s ok 658 /regex/expand/444 1208s ok 659 /regex/expand/445 1208s ok 660 /regex/expand/446 1208s ok 661 /regex/expand/447 1208s ok 662 /regex/expand/448 1208s ok 663 /regex/expand/449 1208s ok 664 /regex/expand/450 1208s ok 665 /regex/expand/451 1208s ok 666 /regex/expand/452 1208s ok 667 /regex/expand/453 1208s ok 668 /regex/expand/454 1208s ok 669 /regex/expand/455 1208s ok 670 /regex/expand/456 1208s ok 671 /regex/expand/457 1208s ok 672 /regex/expand/458 1208s ok 673 /regex/expand/459 1208s ok 674 /regex/expand/460 1208s ok 675 /regex/expand/461 1208s ok 676 /regex/expand/462 1208s ok 677 /regex/expand/463 1208s ok 678 /regex/expand/464 1208s ok 679 /regex/expand/465 1208s ok 680 /regex/expand/466 1208s ok 681 /regex/expand/467 1208s ok 682 /regex/expand/468 1208s ok 683 /regex/expand/469 1208s ok 684 /regex/expand/470 1208s ok 685 /regex/expand/471 1208s ok 686 /regex/expand/472 1208s ok 687 /regex/expand/473 1208s ok 688 /regex/expand/474 1208s ok 689 /regex/expand/475 1208s ok 690 /regex/expand/476 1208s ok 691 /regex/expand/477 1208s ok 692 /regex/expand/478 1208s ok 693 /regex/expand/479 1208s ok 694 /regex/expand/480 1208s ok 695 /regex/expand/481 1208s ok 696 /regex/expand/482 1208s # End of expand tests 1208s # Start of replace tests 1208s ok 697 /regex/replace/483 1208s ok 698 /regex/replace/484 1208s ok 699 /regex/replace/485 1208s ok 700 /regex/replace/486 1208s ok 701 /regex/replace/487 1208s ok 702 /regex/replace/488 1208s ok 703 /regex/replace/489 1208s ok 704 /regex/replace/490 1208s ok 705 /regex/replace/491 1208s ok 706 /regex/replace/492 1208s ok 707 /regex/replace/493 1208s ok 708 /regex/replace/494 1208s ok 709 /regex/replace/495 1208s ok 710 /regex/replace/496 1208s ok 711 /regex/replace/497 1208s ok 712 /regex/replace/498 1208s ok 713 /regex/replace/499 1208s ok 714 /regex/replace/500 1208s ok 715 /regex/replace/501 1208s ok 716 /regex/replace/502 1208s ok 717 /regex/replace/503 1208s ok 718 /regex/replace/504 1208s ok 719 /regex/replace/505 1208s ok 720 /regex/replace/506 1208s ok 721 /regex/replace/507 1208s ok 722 /regex/replace/508 1208s ok 723 /regex/replace/509 1208s ok 724 /regex/replace/510 1208s # End of replace tests 1208s # Start of replace-optimized tests 1208s ok 725 /regex/replace-optimized/483 1208s ok 726 /regex/replace-optimized/484 1208s ok 727 /regex/replace-optimized/485 1208s ok 728 /regex/replace-optimized/486 1208s ok 729 /regex/replace-optimized/487 1208s ok 730 /regex/replace-optimized/488 1208s ok 731 /regex/replace-optimized/489 1208s ok 732 /regex/replace-optimized/490 1208s ok 733 /regex/replace-optimized/491 1208s ok 734 /regex/replace-optimized/492 1208s ok 735 /regex/replace-optimized/493 1208s ok 736 /regex/replace-optimized/494 1208s ok 737 /regex/replace-optimized/495 1208s ok 738 /regex/replace-optimized/496 1208s ok 739 /regex/replace-optimized/497 1208s ok 740 /regex/replace-optimized/498 1208s ok 741 /regex/replace-optimized/499 1208s ok 742 /regex/replace-optimized/500 1208s ok 743 /regex/replace-optimized/501 1208s ok 744 /regex/replace-optimized/502 1208s ok 745 /regex/replace-optimized/503 1208s ok 746 /regex/replace-optimized/504 1208s ok 747 /regex/replace-optimized/505 1208s ok 748 /regex/replace-optimized/506 1208s ok 749 /regex/replace-optimized/507 1208s ok 750 /regex/replace-optimized/508 1208s ok 751 /regex/replace-optimized/509 1208s ok 752 /regex/replace-optimized/510 1208s # End of replace-optimized tests 1208s # Start of replace-literally tests 1208s ok 753 /regex/replace-literally/511 1208s ok 754 /regex/replace-literally/512 1208s ok 755 /regex/replace-literally/513 1208s ok 756 /regex/replace-literally/514 1208s ok 757 /regex/replace-literally/515 1208s ok 758 /regex/replace-literally/516 1208s ok 759 /regex/replace-literally/517 1208s ok 760 /regex/replace-literally/518 1208s ok 761 /regex/replace-literally/519 1208s ok 762 /regex/replace-literally/520 1208s ok 763 /regex/replace-literally/521 1208s ok 764 /regex/replace-literally/522 1208s ok 765 /regex/replace-literally/523 1208s ok 766 /regex/replace-literally/524 1208s ok 767 /regex/replace-literally/525 1208s ok 768 /regex/replace-literally/526 1208s ok 769 /regex/replace-literally/527 1208s ok 770 /regex/replace-literally/528 1208s ok 771 /regex/replace-literally/529 1208s ok 772 /regex/replace-literally/530 1208s # End of replace-literally tests 1208s # Start of string-number tests 1208s ok 773 /regex/string-number/531 1208s ok 774 /regex/string-number/532 1208s ok 775 /regex/string-number/533 1208s ok 776 /regex/string-number/534 1208s ok 777 /regex/string-number/535 1208s ok 778 /regex/string-number/536 1208s ok 779 /regex/string-number/537 1208s ok 780 /regex/string-number/538 1208s ok 781 /regex/string-number/539 1208s ok 782 /regex/string-number/540 1208s ok 783 /regex/string-number/541 1208s ok 784 /regex/string-number/542 1208s ok 785 /regex/string-number/543 1208s ok 786 /regex/string-number/544 1208s ok 787 /regex/string-number/545 1208s # End of string-number tests 1208s # Start of escape_nul tests 1208s ok 788 /regex/escape_nul/546 1208s ok 789 /regex/escape_nul/547 1208s ok 790 /regex/escape_nul/548 1208s ok 791 /regex/escape_nul/549 1208s ok 792 /regex/escape_nul/550 1208s ok 793 /regex/escape_nul/551 1208s ok 794 /regex/escape_nul/552 1208s ok 795 /regex/escape_nul/553 1208s ok 796 /regex/escape_nul/554 1208s ok 797 /regex/escape_nul/555 1208s ok 798 /regex/escape_nul/556 1208s ok 799 /regex/escape_nul/557 1208s ok 800 /regex/escape_nul/558 1208s ok 801 /regex/escape_nul/559 1208s ok 802 /regex/escape_nul/560 1208s # End of escape_nul tests 1208s # Start of escape tests 1208s ok 803 /regex/escape/561 1208s ok 804 /regex/escape/562 1208s ok 805 /regex/escape/563 1208s ok 806 /regex/escape/564 1208s ok 807 /regex/escape/565 1208s ok 808 /regex/escape/566 1208s ok 809 /regex/escape/567 1208s ok 810 /regex/escape/568 1208s ok 811 /regex/escape/569 1208s ok 812 /regex/escape/570 1208s ok 813 /regex/escape/571 1208s ok 814 /regex/escape/572 1208s ok 815 /regex/escape/573 1208s ok 816 /regex/escape/574 1208s ok 817 /regex/escape/575 1208s ok 818 /regex/escape/576 1208s ok 819 /regex/escape/577 1208s ok 820 /regex/escape/578 1208s # End of escape tests 1208s # Start of match-all0 tests 1208s ok 821 /regex/match-all0/579 1208s ok 822 /regex/match-all0/581 1208s # End of match-all0 tests 1208s # Start of match-all-full0 tests 1208s ok 823 /regex/match-all-full0/580 1208s ok 824 /regex/match-all-full0/582 1208s ok 825 /regex/match-all-full0/583 1208s ok 826 /regex/match-all-full0/584 1208s # End of match-all-full0 tests 1208s # Start of match-all1 tests 1208s ok 827 /regex/match-all1/585 1208s ok 828 /regex/match-all1/587 1208s ok 829 /regex/match-all1/592 1208s # End of match-all1 tests 1208s # Start of match-all-full1 tests 1208s ok 830 /regex/match-all-full1/586 1208s ok 831 /regex/match-all-full1/588 1208s ok 832 /regex/match-all-full1/589 1208s ok 833 /regex/match-all-full1/590 1208s ok 834 /regex/match-all-full1/591 1208s ok 835 /regex/match-all-full1/593 1208s # End of match-all-full1 tests 1208s # Start of match-all2 tests 1208s ok 836 /regex/match-all2/594 1208s ok 837 /regex/match-all2/596 1208s ok 838 /regex/match-all2/598 1208s # End of match-all2 tests 1208s # Start of match-all-full2 tests 1208s ok 839 /regex/match-all-full2/595 1208s ok 840 /regex/match-all-full2/597 1208s ok 841 /regex/match-all-full2/599 1208s # End of match-all-full2 tests 1208s # Start of match-all3 tests 1208s ok 842 /regex/match-all3/600 1208s ok 843 /regex/match-all3/602 1208s # End of match-all3 tests 1208s # Start of match-all-full3 tests 1208s ok 844 /regex/match-all-full3/601 1208s ok 845 /regex/match-all-full3/603 1208s # End of match-all-full3 tests 1208s # Start of match-notempty tests 1208s ok 846 /regex/match-notempty/604 1208s # End of match-notempty tests 1208s # Start of match-notempty-optimized tests 1208s ok 847 /regex/match-notempty-optimized/604 1208s # End of match-notempty-optimized tests 1208s # Start of match-notempty-atstart tests 1208s ok 848 /regex/match-notempty-atstart/605 1208s # End of match-notempty-atstart tests 1208s # Start of match-notempty-atstart-optimized tests 1208s ok 849 /regex/match-notempty-atstart-optimized/605 1208s # End of match-notempty-atstart-optimized tests 1208s # End of regex tests 1208s TAP version 14 1208s # random seed: R02Sf3c65ad21bafa8d8d7fdd63ad0202324 1208s 1..3 1208s # Start of alignof tests 1208s ok 1 /alignof/fallback 1208s # End of alignof tests 1208s # Start of assert tests 1208s ok 2 /assert/static 1208s # End of assert tests 1208s # Start of struct tests 1208s ok 3 /struct/sizeof_member 1208s # End of struct tests 1208s TAP version 14 1208s # random seed: R02S1807cf5216488b02e8f4bf20a42a9481 1208s 1..1 1208s # Start of closure tests 1208s # Init 0x5bfcbf8 1208s # Yielding from thread1 1208s # Yielding from thread2 1208s # Yielding from thread1 1208s # Yielding from thread2 1208s # Yielding from thread1 1208s # Yielding from thread2 1208s # Yielding from main thread 1209s # Yielding from thread1 1209s # Yielding from thread2 1209s # Yielding from thread1 1209s # Yielding from thread2 1209s # Yielding from thread1 1209s # Yielding from thread2 1209s # Yielding from main thread 1209s # Yielding from thread1 1209s # Yielding from thread2 1210s # Yielding from thread1 1210s # Yielding from thread2 1210s # Yielding from thread1 1210s # Yielding from thread2 1210s # Yielding from thread1 1210s # Yielding from thread2 1210s # Yielding from main thread 1210s # Yielding from thread1 1211s # Yielding from thread2 1211s # Yielding from thread1 1211s # Yielding from thread2 1211s # Yielding from thread1 1211s # Yielding from thread2 1211s # Yielding from main thread 1211s # Yielding from thread1 1211s # Yielding from thread2 1212s # Yielding from thread1 1212s # Yielding from thread2 1212s # Yielding from thread1 1212s # Yielding from thread2 1212s # Yielding from thread1 1212s # Yielding from thread2 1212s # Yielding from main thread 1212s # Executing: glib/closure-refcount.test 1212s # Yielding from thread1 1212s # Yielding from thread2 1213s # Yielding from thread1 1213s # Yielding from thread2 1213s # Yielding from thread1 1213s # Yielding from thread2 1213s # Yielding from thread1 1213s # Yielding from thread2 1213s # Yielding from main thread 1213s # Yielding from thread1 1214s # Yielding from thread2 1214s # Yielding from thread2 1214s # Yielding from thread1 1214s # Yielding from thread2 1214s # Yielding from thread1 1214s # Yielding from main thread 1214s # Yielding from thread2 1214s # Yielding from thread1 1215s # Yielding from thread2 1215s # Yielding from thread1 1215s # Yielding from thread2 1215s # Yielding from thread1 1215s # Yielding from thread2 1215s # Yielding from thread1 1215s # Yielding from main thread 1215s # Yielding from thread2 1215s # Yielding from thread1 1216s # Yielding from thread2 1216s # Yielding from thread1 1216s # Yielding from thread2 1216s # Yielding from thread1 1216s # Yielding from main thread 1216s # Yielding from thread2 1216s # Yielding from thread1 1216s # Yielding from thread2 1217s # Yielding from thread1 1217s # Yielding from thread2 1217s # Yielding from thread1 1217s # Yielding from thread2 1217s # Yielding from thread1 1217s # Stopping 1217s # Stopped 1217s ok 1 /closure/refcount 1217s # slow test /closure/refcount executed in 9.60 secs 1217s # End of closure tests 1217s ok - glib/closure-refcount.test 1217s # Running test: glib/portal-support-flatpak-full.test 1217s TAP version 14 1217s # random seed: R02Saf71f65f96b2a05d8ff4d8c49c2bc486 1217s 1..1 1217s # Start of portal-support tests 1217s # Start of flatpak tests 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_5YLNK3/portal-support/flatpak/full/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_5YLNK3/portal-support/flatpak/full/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_5YLNK3/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_5YLNK3/portal-support/flatpak/full/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_5YLNK3/portal-support/flatpak/full/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_5YLNK3/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_5YLNK3/portal-support/flatpak/full/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_5YLNK3/portal-support/flatpak/full/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_5YLNK3/portal-support/flatpak/full/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_5YLNK3/portal-support/flatpak/full/.dirs/runtime 1217s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_5YLNK3/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 1217s ok 1 /portal-support/flatpak/full 1217s # End of flatpak tests 1217s # End of portal-support tests 1217s ok - glib/portal-support-flatpak-full.test 1217s # Running test: glib/fileattributematcher.test 1217s TAP version 14 1217s # random seed: R02Sf3ed9550e6b2de9d97cd2b2794d987e9 1217s 1..3 1217s # Start of fileattributematcher tests 1217s ok 1 /fileattributematcher/exact 1217s ok 2 /fileattributematcher/equality 1217s ok 3 /fileattributematcher/subtract 1217s # End of fileattributematcher tests 1217s ok - glib/fileattributematcher.test 1217s # Running test: glib/cxx-14.test 1217s TAP version 14 1217s # random seed: R02Sc089b817c0823f3f8227809138c9463f 1217s 1..2 1217s # Start of gtask tests 1217s # 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. 1217s ok 1 /gtask/name 1217s # Start of name tests 1217s # 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. 1217s ok 2 /gtask/name/macro-wrapper 1217s # End of name tests 1217s # End of gtask tests 1217s ok - glib/cxx-14.test 1217s # Running test: glib/hook.test 1217s TAP version 14 1217s # random seed: R02S7d01dd51b3e1199d50e323b64d098c3c 1217s 1..2 1217s # Start of hook tests 1217s ok 1 /hook/basics 1217s ok 2 /hook/corner-cases 1217s # End of hook tests 1217s ok - glib/hook.test 1217s # Running test: glib/g-file.test 1217s TAP version 14 1217s # random seed: R02Sd3226dfdb17a715dc123eb1352413630 1217s 1..8 1217s # Start of g-file tests 1217s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1217s ok 1 /g-file/test_g_file_new_null 1217s ok 2 /g-file/test_g_file_new_for_path 1217s ok 3 /g-file/test_g_file_new_for_uri 1217s ok 4 /g-file/test_g_file_dup 1217s ok 5 /g-file/test_g_file_get_parse_name_utf8 1217s file:///tmp/test-tmp-glib_g-file.test-AM0NK3 1217s file:///tmp 1217s file:///tmp 1217s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1217s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1217s ok 6 /g-file/test_g_file_new_for_commandline_arg 1217s /dir1 /dir1/dir2/dir3/ 1217s /dir1/ /dir1/dir2/dir3/ 1217s /dir1 /dir1/dir2/dir3 1217s /dir1/ /dir1/dir2/dir3 1217s /tmp/ /something/ 1217s /dir1/dir2 /dir1/ 1217s //dir1/new //dir1/new/dir2/dir3 1217s /dir/UTF-8 příliš žluťoučký kůň /dir/UTF-8 příliš žluťoučký kůň/dir2 1217s file:///dir1 file:///dir1/dir2/dir3/ 1217s file:///dir1/ file:///dir1/dir2/dir3/ 1217s file:///dir1 file:///dir1/dir2/dir3 1217s file:///dir1/ file:///dir1/dir2/dir3 1217s file:///tmp/ file:///something/ 1217s file:///dir1/dir2 file:///dir1/ 1217s file:////dir1/new file:////dir1/new/dir2/dir3 1217s 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 1217s ok 7 /g-file/test_g_file_has_prefix 1217s ok 8 /g-file/test_g_file_get_parent_child 1217s # End of g-file tests 1217s TAP version 14 1217s # random seed: R02S790414c97ebc9e903e60947e2e3c82ad 1217s 1..2 1217s # Start of atomic tests 1217s ok 1 /atomic/types 1217s ok - glib/g-file.test 1217s # Running test: glib/atomic-c-11.test 1217s ok 2 /atomic/threaded 1217s # End of atomic tests 1217s ok - glib/atomic-c-11.test 1217s TAP version 14 1217s # random seed: R02Sb2f6a32da60f7dd9ae2b7e61e83a7e1c 1217s 1..2 1217s # Start of glib tests 1217s # Start of 1bit-mutex tests 1217s # Running test: glib/1bit-mutex.test 1217s # Executing: glib/1bit-mutex.test 1219s ok 1 /glib/1bit-mutex/int 1219s # slow test /glib/1bit-mutex/int executed in 1.35 secs 1220s ok 2 /glib/1bit-mutex/pointer 1220s # slow test /glib/1bit-mutex/pointer executed in 1.39 secs 1220s # End of 1bit-mutex tests 1220s # End of glib tests 1220s ok - glib/1bit-mutex.test 1220s # Running test: glib/utils-c-17.test 1220s TAP version 14 1220s # random seed: R02S2e7612d87d47af5789dce6fc4a073c1a 1220s 1..41 1220s # Start of utils tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/language-names/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/language-names/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/language-names/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/language-names/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/language-names/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/language-names/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/language-names/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/language-names/.dirs/runtime 1220s ok 1 /utils/language-names 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/locale-variants/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/locale-variants/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/locale-variants/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/locale-variants/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/locale-variants/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/locale-variants/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/locale-variants/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/locale-variants/.dirs/runtime 1220s # Testing locale ‘en’ 1220s # Testing locale ‘sr@latin’ 1220s # Testing locale ‘fr_BE’ 1220s # Testing locale ‘sr_SR@latin’ 1220s # Testing locale ‘sr_SR@latin.UTF-8’ 1220s # Testing locale ‘sr@latin_invalid’ 1220s # Testing locale ‘sr.UTF-8@latin’ 1220s # Testing locale ‘sr.UTF-8_latin’ 1220s # Testing locale ‘sr.UTF-8@latin_invalid’ 1220s ok 2 /utils/locale-variants 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/version/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/version/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/version/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/version/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/version/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/version/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/version/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/version/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/version/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/version/.dirs/runtime 1220s ok 3 /utils/version 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/appname/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/appname/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/appname/.dirs/system-config2 1220s ok - glib/utils-c-17.test 1220s # Running test: glib/tls-database.test 1220s ok - glib/tls-database.test 1220s # Running test: glib/async-close-output-stream.test 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/appname/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/appname/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/appname/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/appname/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/appname/.dirs/runtime 1220s ok 4 /utils/appname 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/prgname-thread-safety/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/prgname-thread-safety/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/prgname-thread-safety/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/prgname-thread-safety/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/prgname-thread-safety/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/prgname-thread-safety/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/prgname-thread-safety/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/prgname-thread-safety/.dirs/runtime 1220s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1220s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1220s ok 5 /utils/prgname-thread-safety 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/tmpdir/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/tmpdir/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/tmpdir/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/tmpdir/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/tmpdir/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/tmpdir/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/tmpdir/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/tmpdir/.dirs/runtime 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1220s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1220s Unable to clean up temporary directory /tmp/test_utils-c-17_DPCPK3/utils/tmpdir: No such file or directory 1220s ok 6 /utils/tmpdir 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/basic_bits/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/basic_bits/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/basic_bits/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/basic_bits/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/basic_bits/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/basic_bits/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/basic_bits/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/basic_bits/.dirs/runtime 1220s ok 7 /utils/basic_bits 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/bits/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/bits/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/bits/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/bits/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/bits/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/bits/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/bits/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/bits/.dirs/runtime 1220s ok 8 /utils/bits 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/swap/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/swap/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/swap/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/swap/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/swap/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/swap/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/swap/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/swap/.dirs/runtime 1220s ok 9 /utils/swap 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/find-program/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/find-program/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/find-program/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/find-program/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/find-program/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/find-program/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/find-program/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/find-program/.dirs/runtime 1220s ok 10 /utils/find-program 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/find-program-for-path/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/find-program-for-path/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/find-program-for-path/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/find-program-for-path/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/find-program-for-path/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/find-program-for-path/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/find-program-for-path/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/find-program-for-path/.dirs/runtime 1220s ok 11 /utils/find-program-for-path 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/debug/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/debug/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/debug/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/debug/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/debug/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/debug/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/debug/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/debug/.dirs/runtime 1220s Unable to clean up temporary directory /tmp/test_utils-c-17_DPCPK3/utils/debug: No such file or directory 1220s ok 12 /utils/debug 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/codeset/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/codeset/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/codeset/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/codeset/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/codeset/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/codeset/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/codeset/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/codeset/.dirs/runtime 1220s ok 13 /utils/codeset 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/codeset2/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/codeset2/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/codeset2/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/codeset2/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/codeset2/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/codeset2/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/codeset2/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/codeset2/.dirs/runtime 1220s Unable to clean up temporary directory /tmp/test_utils-c-17_DPCPK3/utils/codeset2: No such file or directory 1220s ok 14 /utils/codeset2 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/console-charset/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/console-charset/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/console-charset/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/console-charset/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/console-charset/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/console-charset/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/console-charset/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/console-charset/.dirs/runtime 1220s ok 15 /utils/console-charset 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/gettext/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/gettext/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/gettext/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/gettext/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/gettext/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/gettext/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/gettext/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/gettext/.dirs/runtime 1220s ok 16 /utils/gettext 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/username/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/username/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/username/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/username/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/username/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/username/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/username/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/username/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/username/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/username/.dirs/runtime 1220s ok 17 /utils/username 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/realname/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/realname/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/realname/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/realname/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/realname/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/realname/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/realname/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/realname/.dirs/runtime 1220s ok 18 /utils/realname 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/hostname/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/hostname/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/hostname/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/hostname/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/hostname/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/hostname/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/hostname/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/hostname/.dirs/runtime 1220s ok 19 /utils/hostname 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/os-info/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/os-info/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/os-info/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/os-info/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/os-info/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/os-info/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/os-info/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/os-info/.dirs/runtime 1220s # NAME: Ubuntu 1220s ok 20 /utils/os-info 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/.dirs/runtime 1220s ok 21 /utils/clear-pointer 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer-cast/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer-cast/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/clear-pointer-cast/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer-cast/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/clear-pointer-cast/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer-cast/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer-cast/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer-cast/.dirs/runtime 1220s ok 22 /utils/clear-pointer-cast 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/take-pointer/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/take-pointer/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/take-pointer/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/take-pointer/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/take-pointer/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/take-pointer/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/take-pointer/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/take-pointer/.dirs/runtime 1220s ok 23 /utils/take-pointer 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-source/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-source/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/clear-source/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-source/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/clear-source/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-source/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-source/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/clear-source/.dirs/runtime 1220s ok 24 /utils/clear-source 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/misc-mem/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/misc-mem/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/misc-mem/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/misc-mem/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/misc-mem/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/misc-mem/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/misc-mem/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/misc-mem/.dirs/runtime 1220s ok 25 /utils/misc-mem 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/.dirs/runtime 1220s # /utils/aligned-mem summary: Aligned memory allocator 1220s # Alignment must not be zero 1220s # Alignment must be a power of two 1220s # Alignment must be a multiple of sizeof(void*) 1220s ok 26 /utils/aligned-mem 1220s ok - glib/async-close-output-stream.test 1220s # Running test: glib/giomodule.test 1220s ok - glib/giomodule.test 1220s # Running test: glib/gdbus-bz627724.test 1220s ok - glib/gdbus-bz627724.test 1220s # Running test: glib/ifaceproperties.test 1220s ok - glib/ifaceproperties.test 1220s # Running test: glib/io-channel.test 1220s ok - glib/io-channel.test 1220s # Running test: glib/signalgroup.test 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/free-sized/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/free-sized/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/free-sized/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/free-sized/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/free-sized/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/free-sized/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/free-sized/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/free-sized/.dirs/runtime 1220s # /utils/free-sized summary: Check that g_free_sized() works 1220s ok 27 /utils/free-sized 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/nullify/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/nullify/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/nullify/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/nullify/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/nullify/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/nullify/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/nullify/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/nullify/.dirs/runtime 1220s ok 28 /utils/nullify 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/atexit/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/atexit/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/atexit/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/atexit/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/atexit/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/atexit/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/atexit/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/atexit/.dirs/runtime 1220s Unable to clean up temporary directory /tmp/test_utils-c-17_DPCPK3/utils/atexit: No such file or directory 1220s ok 29 /utils/atexit 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/check-setuid/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/check-setuid/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/check-setuid/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/check-setuid/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/check-setuid/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/check-setuid/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/check-setuid/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/check-setuid/.dirs/runtime 1220s ok 30 /utils/check-setuid 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/int-limits/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/int-limits/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/int-limits/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/int-limits/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/int-limits/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/int-limits/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/int-limits/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/int-limits/.dirs/runtime 1220s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1220s ok 31 /utils/int-limits 1220s ok - glib/signalgroup.test 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-list/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-list/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/clear-list/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-list/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/clear-list/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-list/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-list/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/clear-list/.dirs/runtime 1220s ok 32 /utils/clear-list 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-slist/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-slist/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/clear-slist/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-slist/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/clear-slist/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-slist/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-slist/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/clear-slist/.dirs/runtime 1220s ok 33 /utils/clear-slist 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/steal-handle-id/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/steal-handle-id/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/steal-handle-id/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/steal-handle-id/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/steal-handle-id/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/steal-handle-id/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/steal-handle-id/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/steal-handle-id/.dirs/runtime 1220s ok 34 /utils/steal-handle-id 1220s # Start of user-special-dirs tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/desktop/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/desktop/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/desktop/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/desktop/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/desktop/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/desktop/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/desktop/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/desktop/.dirs/runtime 1220s ok 35 /utils/user-special-dirs/desktop 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/load-unlocked/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/load-unlocked/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/load-unlocked/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/load-unlocked/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1220s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1220s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1220s Unable to clean up temporary directory /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/load-unlocked: No such file or directory 1220s ok 36 /utils/user-special-dirs/load-unlocked 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/reload-leaks/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/reload-leaks/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/reload-leaks/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/reload-leaks/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1220s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1220s Unable to clean up temporary directory /tmp/test_utils-c-17_DPCPK3/utils/user-special-dirs/reload-leaks: No such file or directory 1220s ok 37 /utils/user-special-dirs/reload-leaks 1220s # End of user-special-dirs tests 1220s # Start of clear-pointer tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/side-effects/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/side-effects/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/side-effects/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/side-effects/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/side-effects/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/side-effects/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/side-effects/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/clear-pointer/side-effects/.dirs/runtime 1220s ok 38 /utils/clear-pointer/side-effects 1220s # End of clear-pointer tests 1220s # Start of aligned-mem tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/alignment/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/alignment/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/alignment/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/alignment/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/alignment/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/alignment/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/alignment/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/alignment/.dirs/runtime 1220s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1220s ok 39 /utils/aligned-mem/alignment 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/zeroed/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/zeroed/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/zeroed/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/zeroed/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/zeroed/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/zeroed/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/zeroed/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/zeroed/.dirs/runtime 1220s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1220s ok 40 /utils/aligned-mem/zeroed 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/free-sized/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/free-sized/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/free-sized/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/free-sized/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/free-sized/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/free-sized/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/free-sized/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_DPCPK3/utils/aligned-mem/free-sized/.dirs/runtime 1220s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1220s ok 41 /utils/aligned-mem/free-sized 1220s # Start of subprocess tests 1220s # End of subprocess tests 1220s # End of aligned-mem tests 1220s # End of utils tests 1220s TAP version 14 1220s # random seed: R02S6add50d56da1b5e16e5c50d4d2c87848 1220s 1..1 1220s # Start of tls-backend tests 1220s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1220s ok 1 /tls-backend/set-default-database 1220s # End of tls-backend tests 1220s TAP version 14 1220s # random seed: R02S5993ebb88e4d3639b44a9f603956d51c 1220s 1..3 1220s # Start of close-async tests 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1220s ok 1 /close-async/without-flush 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1220s ok 2 /close-async/with-flush 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1220s ok 3 /close-async/with-async-flush 1220s # End of close-async tests 1220s TAP version 14 1220s # random seed: R02S793601e42bd66ade6d48890d12e07950 1220s 1..3 1220s # Start of giomodule tests 1220s ok 1 /giomodule/extension-point 1220s ok 2 /giomodule/module-scan-all 1220s ok 3 /giomodule/module-scan-all-with-scope 1220s # End of giomodule tests 1220s TAP version 14 1220s # random seed: R02S5e7a0ad555c0116d76b871e79d7f7aa8 1220s 1..1 1220s # Start of gdbus tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_7LIOK3/gdbus/bz627724/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_7LIOK3/gdbus/bz627724/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_7LIOK3/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_7LIOK3/gdbus/bz627724/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_7LIOK3/gdbus/bz627724/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_7LIOK3/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_7LIOK3/gdbus/bz627724/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_7LIOK3/gdbus/bz627724/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_7LIOK3/gdbus/bz627724/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_7LIOK3/gdbus/bz627724/.dirs/runtime 1220s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1220s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1220s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1220s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1220s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1220s ok 1 /gdbus/bz627724 1220s # End of gdbus tests 1220s TAP version 14 1220s # random seed: R02S46c4e2864b3203060dbf8645799bcf34 1220s 1..7 1220s # Start of interface tests 1220s # Start of properties tests 1220s ok 1 /interface/properties/set 1220s ok 2 /interface/properties/notify 1220s ok 3 /interface/properties/find-overridden 1220s ok 4 /interface/properties/list-overridden 1220s ok 5 /interface/properties/find-interface 1220s ok 6 /interface/properties/list-interface 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 1220s ok 7 /interface/properties/not-overridden 1220s # End of properties tests 1220s # End of interface tests 1220s TAP version 14 1220s # random seed: R02Sb63a3438d60f6c806669f946bd169b4f 1220s 1..2 1220s # Start of io-channel tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_UI7LK3/io-channel/read-write/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_UI7LK3/io-channel/read-write/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_UI7LK3/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_UI7LK3/io-channel/read-write/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_UI7LK3/io-channel/read-write/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_UI7LK3/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_UI7LK3/io-channel/read-write/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_UI7LK3/io-channel/read-write/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_UI7LK3/io-channel/read-write/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_UI7LK3/io-channel/read-write/.dirs/runtime 1220s # Line one 1220s # 1220s # Line two 1220s # 1220s # Line three 1220s # 1220s # /* Hello */ 1220s # 1220s # \x1234\x567890\x6666 1220s # 1220s # read 62 bytes, wrote 62 bytes 1220s ok 1 /io-channel/read-write 1220s # Start of read-line tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_UI7LK3/io-channel/read-line/embedded-nuls/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_UI7LK3/io-channel/read-line/embedded-nuls/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_UI7LK3/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_UI7LK3/io-channel/read-line/embedded-nuls/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_UI7LK3/io-channel/read-line/embedded-nuls/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_UI7LK3/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_UI7LK3/io-channel/read-line/embedded-nuls/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_UI7LK3/io-channel/read-line/embedded-nuls/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_UI7LK3/io-channel/read-line/embedded-nuls/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_UI7LK3/io-channel/read-line/embedded-nuls/.dirs/runtime 1220s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 1220s ok 2 /io-channel/read-line/embedded-nuls 1220s # End of read-line tests 1220s # End of io-channel tests 1220s TAP version 14 1220s # random seed: R02S0b671ed7c63b8dee887ac530731517c1 1220s 1..9 1220s # Start of GObject tests 1220s # Start of SignalGroup tests 1220s ok 1 /GObject/SignalGroup/invalid 1220s ok 2 /GObject/SignalGroup/simple 1220s ok 3 /GObject/SignalGroup/changing-target 1220s ok 4 /GObject/SignalGroup/blocking 1220s ok 5 /GObject/SignalGroup/weak-ref-target 1220s ok 6 /GObject/SignalGroup/connect-object 1220s ok 7 /GObject/SignalGroup/signal-parsing 1220s ok 8 /GObject/SignalGroup/properties 1220s ok 9 /GObject/SignalGroup/interface 1220s # Start of signal-parsing tests 1220s # End of signal-parsing tests 1220s # End of SignalGroup tests 1220s # End of GObject tests 1220s # Running test: glib/utils-c-99.test 1220s TAP version 14 1220s # random seed: R02Sf31e8d3e313481ec6e3727d63a60cb2b 1220s 1..41 1220s # Start of utils tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/language-names/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/language-names/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/language-names/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/language-names/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/language-names/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/language-names/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/language-names/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/language-names/.dirs/runtime 1220s ok 1 /utils/language-names 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/locale-variants/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/locale-variants/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/locale-variants/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/locale-variants/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/locale-variants/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/locale-variants/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/locale-variants/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/locale-variants/.dirs/runtime 1220s # Testing locale ‘en’ 1220s # Testing locale ‘sr@latin’ 1220s # Testing locale ‘fr_BE’ 1220s # Testing locale ‘sr_SR@latin’ 1220s # Testing locale ‘sr_SR@latin.UTF-8’ 1220s # Testing locale ‘sr@latin_invalid’ 1220s # Testing locale ‘sr.UTF-8@latin’ 1220s # Testing locale ‘sr.UTF-8_latin’ 1220s # Testing locale ‘sr.UTF-8@latin_invalid’ 1220s ok 2 /utils/locale-variants 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/version/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/version/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/version/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/version/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/version/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/version/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/version/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/version/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/version/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/version/.dirs/runtime 1220s ok 3 /utils/version 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/appname/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/appname/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/appname/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/appname/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/appname/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/appname/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/appname/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/appname/.dirs/runtime 1220s ok 4 /utils/appname 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/prgname-thread-safety/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/prgname-thread-safety/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/prgname-thread-safety/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/prgname-thread-safety/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/prgname-thread-safety/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/prgname-thread-safety/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/prgname-thread-safety/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/prgname-thread-safety/.dirs/runtime 1220s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1220s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1220s ok 5 /utils/prgname-thread-safety 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/tmpdir/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/tmpdir/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/tmpdir/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/tmpdir/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/tmpdir/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/tmpdir/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/tmpdir/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/tmpdir/.dirs/runtime 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1220s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1220s Unable to clean up temporary directory /tmp/test_utils-c-99_LIFMK3/utils/tmpdir: No such file or directory 1220s ok 6 /utils/tmpdir 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/basic_bits/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/basic_bits/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/basic_bits/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/basic_bits/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/basic_bits/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/basic_bits/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/basic_bits/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/basic_bits/.dirs/runtime 1220s ok 7 /utils/basic_bits 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/bits/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/bits/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/bits/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/bits/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/bits/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/bits/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/bits/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/bits/.dirs/runtime 1220s ok - glib/utils-c-99.test 1220s # Running test: glib/queue.test 1220s ok 8 /utils/bits 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/swap/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/swap/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/swap/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/swap/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/swap/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/swap/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/swap/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/swap/.dirs/runtime 1220s ok 9 /utils/swap 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/find-program/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/find-program/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/find-program/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/find-program/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/find-program/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/find-program/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/find-program/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/find-program/.dirs/runtime 1220s ok 10 /utils/find-program 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/find-program-for-path/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/find-program-for-path/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/find-program-for-path/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/find-program-for-path/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/find-program-for-path/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/find-program-for-path/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/find-program-for-path/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/find-program-for-path/.dirs/runtime 1220s ok 11 /utils/find-program-for-path 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/debug/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/debug/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/debug/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/debug/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/debug/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/debug/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/debug/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/debug/.dirs/runtime 1220s Unable to clean up temporary directory /tmp/test_utils-c-99_LIFMK3/utils/debug: No such file or directory 1220s ok 12 /utils/debug 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/codeset/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/codeset/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/codeset/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/codeset/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/codeset/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/codeset/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/codeset/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/codeset/.dirs/runtime 1220s ok 13 /utils/codeset 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/codeset2/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/codeset2/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/codeset2/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/codeset2/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/codeset2/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/codeset2/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/codeset2/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/codeset2/.dirs/runtime 1220s Unable to clean up temporary directory /tmp/test_utils-c-99_LIFMK3/utils/codeset2: No such file or directory 1220s ok 14 /utils/codeset2 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/console-charset/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/console-charset/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/console-charset/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/console-charset/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/console-charset/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/console-charset/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/console-charset/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/console-charset/.dirs/runtime 1220s ok 15 /utils/console-charset 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/gettext/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/gettext/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/gettext/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/gettext/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/gettext/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/gettext/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/gettext/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/gettext/.dirs/runtime 1220s ok 16 /utils/gettext 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/username/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/username/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/username/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/username/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/username/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/username/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/username/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/username/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/username/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/username/.dirs/runtime 1220s ok 17 /utils/username 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/realname/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/realname/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/realname/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/realname/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/realname/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/realname/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/realname/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/realname/.dirs/runtime 1220s ok 18 /utils/realname 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/hostname/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/hostname/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/hostname/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/hostname/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/hostname/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/hostname/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/hostname/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/hostname/.dirs/runtime 1220s ok 19 /utils/hostname 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/os-info/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/os-info/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/os-info/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/os-info/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/os-info/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/os-info/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/os-info/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/os-info/.dirs/runtime 1220s # NAME: Ubuntu 1220s ok 20 /utils/os-info 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/.dirs/runtime 1220s ok 21 /utils/clear-pointer 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer-cast/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer-cast/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/clear-pointer-cast/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer-cast/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/clear-pointer-cast/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer-cast/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer-cast/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer-cast/.dirs/runtime 1220s ok 22 /utils/clear-pointer-cast 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/take-pointer/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/take-pointer/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/take-pointer/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/take-pointer/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/take-pointer/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/take-pointer/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/take-pointer/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/take-pointer/.dirs/runtime 1220s ok 23 /utils/take-pointer 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-source/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-source/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/clear-source/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-source/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/clear-source/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-source/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-source/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/clear-source/.dirs/runtime 1220s ok 24 /utils/clear-source 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/misc-mem/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/misc-mem/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/misc-mem/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/misc-mem/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/misc-mem/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/misc-mem/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/misc-mem/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/misc-mem/.dirs/runtime 1220s ok 25 /utils/misc-mem 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/.dirs/runtime 1220s # /utils/aligned-mem summary: Aligned memory allocator 1220s # Alignment must not be zero 1220s # Alignment must be a power of two 1220s # Alignment must be a multiple of sizeof(void*) 1220s ok 26 /utils/aligned-mem 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/free-sized/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/free-sized/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/free-sized/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/free-sized/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/free-sized/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/free-sized/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/free-sized/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/free-sized/.dirs/runtime 1220s # /utils/free-sized summary: Check that g_free_sized() works 1220s ok 27 /utils/free-sized 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/nullify/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/nullify/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/nullify/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/nullify/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/nullify/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/nullify/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/nullify/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/nullify/.dirs/runtime 1220s ok 28 /utils/nullify 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/atexit/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/atexit/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/atexit/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/atexit/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/atexit/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/atexit/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/atexit/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/atexit/.dirs/runtime 1220s Unable to clean up temporary directory /tmp/test_utils-c-99_LIFMK3/utils/atexit: No such file or directory 1220s ok 29 /utils/atexit 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/check-setuid/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/check-setuid/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/check-setuid/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/check-setuid/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/check-setuid/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/check-setuid/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/check-setuid/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/check-setuid/.dirs/runtime 1220s ok 30 /utils/check-setuid 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/int-limits/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/int-limits/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/int-limits/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/int-limits/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/int-limits/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/int-limits/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/int-limits/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/int-limits/.dirs/runtime 1220s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1220s ok 31 /utils/int-limits 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-list/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-list/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/clear-list/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-list/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/clear-list/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-list/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-list/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/clear-list/.dirs/runtime 1220s ok 32 /utils/clear-list 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-slist/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-slist/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/clear-slist/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-slist/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/clear-slist/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-slist/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-slist/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/clear-slist/.dirs/runtime 1220s ok 33 /utils/clear-slist 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/steal-handle-id/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/steal-handle-id/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/steal-handle-id/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/steal-handle-id/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/steal-handle-id/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/steal-handle-id/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/steal-handle-id/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/steal-handle-id/.dirs/runtime 1220s ok 34 /utils/steal-handle-id 1220s # Start of user-special-dirs tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/desktop/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/desktop/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/desktop/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/desktop/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/desktop/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/desktop/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/desktop/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/desktop/.dirs/runtime 1220s ok 35 /utils/user-special-dirs/desktop 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/load-unlocked/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/load-unlocked/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/load-unlocked/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/load-unlocked/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1220s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1220s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1220s Unable to clean up temporary directory /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/load-unlocked: No such file or directory 1220s ok 36 /utils/user-special-dirs/load-unlocked 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/reload-leaks/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/reload-leaks/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/reload-leaks/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/reload-leaks/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1220s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1220s Unable to clean up temporary directory /tmp/test_utils-c-99_LIFMK3/utils/user-special-dirs/reload-leaks: No such file or directory 1220s ok 37 /utils/user-special-dirs/reload-leaks 1220s # End of user-special-dirs tests 1220s # Start of clear-pointer tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/side-effects/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/side-effects/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/side-effects/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/side-effects/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/side-effects/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/side-effects/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/side-effects/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/clear-pointer/side-effects/.dirs/runtime 1220s ok 38 /utils/clear-pointer/side-effects 1220s # End of clear-pointer tests 1220s # Start of aligned-mem tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/alignment/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/alignment/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/alignment/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/alignment/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/alignment/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/alignment/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/alignment/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/alignment/.dirs/runtime 1220s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1220s ok 39 /utils/aligned-mem/alignment 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/zeroed/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/zeroed/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/zeroed/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/zeroed/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/zeroed/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/zeroed/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/zeroed/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/zeroed/.dirs/runtime 1220s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1220s ok 40 /utils/aligned-mem/zeroed 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/free-sized/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/free-sized/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/free-sized/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/free-sized/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/free-sized/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/free-sized/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/free-sized/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_LIFMK3/utils/aligned-mem/free-sized/.dirs/runtime 1220s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1220s ok 41 /utils/aligned-mem/free-sized 1220s # Start of subprocess tests 1220s # End of subprocess tests 1220s # End of aligned-mem tests 1220s # End of utils tests 1220s TAP version 14 1220s # random seed: R02Sa29d8cb9827a9504f1e93bfb86028cc4 1220s 1..12 1220s # Start of queue tests 1220s ok 1 /queue/basic 1220s ok 2 /queue/copy 1220s ok 3 /queue/off-by-one 1220s ok 4 /queue/find-custom 1220s ok 5 /queue/static 1220s ok 6 /queue/clear 1220s ok 7 /queue/free-full 1220s ok 8 /queue/clear-full 1220s ok 9 /queue/insert-sibling-link 1220s ok 10 /queue/push-nth-link 1220s # Start of clear-full tests 1220s ok 11 /queue/clear-full/noop 1220s # End of clear-full tests 1220s # Start of random tests 1220s ok 12 /queue/random/seed:1149846611 1220s # End of random tests 1220s # End of queue tests 1220s ok - glib/queue.test 1220s # Running test: glib/notify-init2.test 1220s TAP version 14 1220s # random seed: R02Sf07cceb83bc77db90b8777606ad550e6 1220s 1..1 1220s # Start of properties tests 1220s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 1220s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1220s ok 1 /properties/notify-in-init2 1220s # End of properties tests 1220s ok - glib/notify-init2.test 1220s # Running test: glib/portal-support-snap-classic.test 1220s TAP version 14 1220s # random seed: R02S3b6124ed4c469f7f0f1800531a44a6fd 1220s 1..3 1220s # Start of portal-support tests 1220s # Start of snap-classic tests 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/no-snapctl/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/no-snapctl/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/no-snapctl/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/no-snapctl/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/no-snapctl/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/no-snapctl/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/no-snapctl/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/no-snapctl/.dirs/runtime 1220s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/no-snapctl: No such file or directory 1220s ok 1 /portal-support/snap-classic/no-snapctl 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/none/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/none/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/none/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/none/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/none/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/none/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/none/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/none/.dirs/runtime 1220s # Created snap.yaml in /tmp/test_portal-support-snap-classic_AUCGK3/meta/snap.yaml 1220s # Created snapctl in /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/none/.dirs/runtime/snapctl 1220s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/none: No such file or directory 1220s ok 2 /portal-support/snap-classic/none 1220s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/all/.dirs/home 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/all/.dirs/cache 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/all/.dirs/system-config2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/all/.dirs/config 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/all/.dirs/system-data2 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/all/.dirs/data 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/all/.dirs/state 1220s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/all/.dirs/runtime 1220s # Created snap.yaml in /tmp/test_portal-support-snap-classic_AUCGK3/meta/snap.yaml 1220s # Created snapctl in /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/all/.dirs/runtime/snapctl 1220s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_AUCGK3/portal-support/snap-classic/all: No such file or directory 1220s ok 3 /portal-support/snap-classic/all 1220s # End of snap-classic tests 1220s # End of portal-support tests 1220s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_AUCGK3: No such file or directory 1220s ok - glib/portal-support-snap-classic.test 1220s # Running test: glib/option-context.test 1220s TAP version 14 1220s # random seed: R02Sda7b861d6068a45faa4ee830c062f6ab 1220s 1..61 1220s # Start of option tests 1220s ok 1 /option/basic 1220s ok 2 /option/translate 1220s ok 3 /option/strict-posix 1220s # Testing command: program --double abc 1220s # Testing command: program --double 2e309 1220s # Testing command: program --int abc 1220s # Testing command: program --int 99999999999999999999999999999999999 1220s # Testing command: program --int64 abc 1220s # Testing command: program --int64 99999999999999999999999999999999999 1220s ok 4 /option/parsing-errors 1220s # Start of help tests 1220s ok 5 /option/help/options 1220s ok 6 /option/help/no-options 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 1220s ok 7 /option/help/no-help-options 1220s # Usage: 1220s # /usr/libexec/installed-tests/glib/option-context [OPTION…] blabla 1220s # 1220s # Summary 1220s # 1220s # Help Options: 1220s # -h, --help Show help options 1220s # 1220s # Application Options: 1220s # -t, --test=Argument to use in test (deprecated) Test tests 1220s # --test2 Tests also 1220s # 1220s # Description 1220s # 1220s ok 8 /option/help/deprecated 1220s ok 9 /option/help/main-get_help-format 1220s ok 10 /option/help/group-get_help-format 1220s # End of help tests 1220s # Start of group tests 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 1220s ok 11 /option/group/captions 1220s ok 12 /option/group/main 1220s ok 13 /option/group/error-hook 1220s ok 14 /option/group/parse 1220s # Start of captions tests 1220s # Start of subprocess tests 1220s # End of subprocess tests 1220s # End of captions tests 1220s # End of group tests 1220s # Start of restoration tests 1220s ok 15 /option/restoration/int 1220s ok 16 /option/restoration/string 1220s ok 17 /option/restoration/boolean 1220s # End of restoration tests 1220s # Start of arg tests 1220s ok 18 /option/arg/reverse-string 1220s ok 19 /option/arg/optional-int 1220s # Start of repetition tests 1220s ok 20 /option/arg/repetition/int 1220s ok 21 /option/arg/repetition/string 1220s ok 22 /option/arg/repetition/filename 1220s ok 23 /option/arg/repetition/double 1220s ok 24 /option/arg/repetition/locale 1220s ok 25 /option/arg/repetition/int64 1220s # End of repetition tests 1220s # Start of array tests 1220s ok 26 /option/arg/array/string 1220s # End of array tests 1220s # Start of callback tests 1220s ok 27 /option/arg/callback/string 1220s ok 28 /option/arg/callback/count 1220s ok 29 /option/arg/callback/optional1 1220s ok 30 /option/arg/callback/optional2 1220s ok 31 /option/arg/callback/optional3 1220s ok 32 /option/arg/callback/optional4 1220s ok 33 /option/arg/callback/optional5 1220s ok 34 /option/arg/callback/optional6 1220s ok 35 /option/arg/callback/optional7 1220s ok 36 /option/arg/callback/optional8 1220s # End of callback tests 1220s # Start of remaining tests 1220s ok 37 /option/arg/remaining/callback 1220s ok 38 /option/arg/remaining/callback-false 1220s ok 39 /option/arg/remaining/non-option 1220s ok 40 /option/arg/remaining/separator 1220s ok 41 /option/arg/remaining/array 1220s # End of remaining tests 1220s # Start of ignore tests 1220s ok 42 /option/arg/ignore/long 1220s ok 43 /option/arg/ignore/short 1220s ok 44 /option/arg/ignore/arg 1220s # End of ignore tests 1220s # Start of rest tests 1220s ok 45 /option/arg/rest/non-option 1220s ok 46 /option/arg/rest/separator1 1220s ok 47 /option/arg/rest/separator2 1220s ok 48 /option/arg/rest/separator3 1220s ok 49 /option/arg/rest/separator4 1220s ok 50 /option/arg/rest/separator5 1220s # End of rest tests 1220s # End of arg tests 1220s # Start of context tests 1220s ok 51 /option/context/add 1220s ok 52 /option/context/empty2 1220s ok 53 /option/context/empty3 1220s # End of context tests 1220s # Start of bug tests 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 1220s ok 54 /option/bug/unknown-short 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 1220s ok 55 /option/bug/lonely-dash 1220s ok 56 /option/bug/triple-dash 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 1220s ok 57 /option/bug/missing-arg 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 1220s ok 58 /option/bug/dash-arg 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 1220s ok 59 /option/bug/short-remaining 1220s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 1220s ok 60 /option/bug/double-free 1220s ok 61 /option/bug/double-zero 1220s # End of bug tests 1220s # End of option tests 1220s ok - glib/option-context.test 1220s # Running test: glib/module-test-plugin.test 1220s TAP version 14 1220s # random seed: R02S09022fc885299d963b4f78200c44507e 1220s 1..3 1220s # Start of module tests 1220s ok 1 /module/basics 1220s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1220s ok 2 /module/invalid-libtool-archive 1220s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1220s ok 3 /module/local-binding 1220s # End of module tests 1220s ok - glib/module-test-plugin.test 1220s # Running test: glib/mapping.test 1221s TAP version 14 1221s # random seed: R02S73f3d41f3689173652970f3056b56629 1221s 1..3 1221s # Start of mapping tests 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_QZSEK3/mapping/flags/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_QZSEK3/mapping/flags/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_QZSEK3/mapping/flags/.dirs/system-config1:/tmp/test_mapping_QZSEK3/mapping/flags/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_QZSEK3/mapping/flags/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_QZSEK3/mapping/flags/.dirs/system-data1:/tmp/test_mapping_QZSEK3/mapping/flags/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_QZSEK3/mapping/flags/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_QZSEK3/mapping/flags/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_QZSEK3/mapping/flags/.dirs/runtime 1221s # test_mapping: ok 1221s ok 1 /mapping/flags 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_QZSEK3/mapping/private/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_QZSEK3/mapping/private/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_QZSEK3/mapping/private/.dirs/system-config1:/tmp/test_mapping_QZSEK3/mapping/private/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_QZSEK3/mapping/private/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_QZSEK3/mapping/private/.dirs/system-data1:/tmp/test_mapping_QZSEK3/mapping/private/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_QZSEK3/mapping/private/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_QZSEK3/mapping/private/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_QZSEK3/mapping/private/.dirs/runtime 1221s ok 2 /mapping/private 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_QZSEK3/mapping/private-child/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_QZSEK3/mapping/private-child/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_QZSEK3/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_QZSEK3/mapping/private-child/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_QZSEK3/mapping/private-child/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_QZSEK3/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_QZSEK3/mapping/private-child/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_QZSEK3/mapping/private-child/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_QZSEK3/mapping/private-child/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_QZSEK3/mapping/private-child/.dirs/runtime 1221s # test_child_private: child spawned 1221s # Subtest: /usr/libexec/installed-tests/glib/mapping 1221s # random seed: R02Sd936565712c323f4d2cde52935f4ebc0 1221s # test_child_private: received first child signal 1221s # test_child_private: received parent signal 1221s # Child exited with status 0 1221s # test_child_private: received second child signal 1221s ok 3 /mapping/private-child 1221s # End of mapping tests 1221s ok - glib/mapping.test 1221s # Running test: glib/file-thumbnail.test 1221s TAP version 14 1221s # random seed: R02S7e629b3a85fff29a0a1906ce97c12eb7 1221s 1..7 1221s # Start of file-thumbnail tests 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/fail/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/fail/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/fail/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/fail/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/fail/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/fail/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/fail/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/fail/.dirs/runtime 1221s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1221s # Created test thumbnail at /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1221s ok 1 /file-thumbnail/fail 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/runtime 1221s # Created test thumbnail at /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1221s # Created test thumbnail at /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1221s # Created test thumbnail at /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1221s # Created test thumbnail at /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1221s # Created test thumbnail at /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1221s ok 2 /file-thumbnail/size-priority 1221s # Start of valid tests 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/normal/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/normal/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/normal/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/normal/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/normal/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/normal/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/normal/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/normal/.dirs/runtime 1221s # Created test thumbnail at /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1221s ok 3 /file-thumbnail/valid/normal 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/large/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/large/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/large/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/large/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/large/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/large/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/large/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/large/.dirs/runtime 1221s # Created test thumbnail at /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1221s ok 4 /file-thumbnail/valid/large 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/x-large/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/x-large/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/x-large/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/x-large/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/x-large/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/x-large/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/x-large/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/x-large/.dirs/runtime 1221s # Created test thumbnail at /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1221s ok 5 /file-thumbnail/valid/x-large 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/xx-large/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/xx-large/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/xx-large/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/xx-large/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/xx-large/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/xx-large/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/xx-large/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/xx-large/.dirs/runtime 1221s # Created test thumbnail at /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1221s ok 6 /file-thumbnail/valid/xx-large 1221s # End of valid tests 1221s # Start of unknown tests 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/unknown/super-large/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/unknown/super-large/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/unknown/super-large/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/unknown/super-large/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_8GWEK3/file-thumbnail/unknown/super-large/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/unknown/super-large/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/unknown/super-large/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/unknown/super-large/.dirs/runtime 1221s # Created test thumbnail at /tmp/test_file-thumbnail_8GWEK3/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 1221s ok 7 /file-thumbnail/unknown/super-large 1221s # End of unknown tests 1221s # End of file-thumbnail tests 1221s ok - glib/file-thumbnail.test 1221s # Running test: glib/unix-streams.test 1221s TAP version 14 1221s # random seed: R02S53788e940c93b1ec6655d4ad7164ae6c 1221s 1..9 1221s # Start of unix-streams tests 1221s ok 1 /unix-streams/basic 1221s ok 2 /unix-streams/pipe-io-test 1221s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 1222s ok 3 /unix-streams/nonblocking-io-test 1222s # slow test /unix-streams/nonblocking-io-test executed in 0.50 secs 1222s ok 4 /unix-streams/read_write 1222s ok 5 /unix-streams/read_writev 1222s ok 6 /unix-streams/write-wouldblock 1222s ok 7 /unix-streams/writev-wouldblock 1222s ok 8 /unix-streams/write-async-wouldblock 1222s ok 9 /unix-streams/writev-async-wouldblock 1222s # End of unix-streams tests 1222s ok - glib/unix-streams.test 1222s # Running test: glib/portal-support-none.test 1222s ok - glib/portal-support-none.test 1222s TAP version 14 1222s # random seed: R02S027d9f363fb500394299ac9827920ba2 1222s 1..1 1222s # Start of portal-support tests 1222s ok 1 /portal-support/none 1222s # End of portal-support tests 1222s # Running test: glib/date.test 1222s TAP version 14 1222s # random seed: R02Sf854b00a31c24c01f40a1d2eb1025c8c 1222s 1..122 1222s # Start of date tests 1222s ok 1 /date/basic 1222s ok 2 /date/empty 1222s ok 3 /date/dmy 1222s ok 4 /date/julian 1222s ok 5 /date/compare 1222s ok 6 /date/dates 1222s ok 7 /date/strftime 1222s ok 8 /date/two-digit-years 1222s ok 9 /date/parse 1222s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 1222s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 1222s ok 11 /date/month_substring 1222s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 1222s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 1222s ok 13 /date/clamp 1222s ok 14 /date/order 1222s ok 15 /date/copy 1222s # Vector 0: 0000-00-00, invalid 1222s # Vector 1: 0001-01-01, valid 1222s # Vector 2: 0000-01-01, invalid 1222s # Vector 3: 2000-02-30, invalid 1222s # Vector 4: 2000-02-29, valid 1222s # Vector 5: 2001-02-29, invalid 1222s # Vector 6: 65535-01-01, valid 1222s ok 16 /date/valid-dmy 1222s # Considering 2000-01-01 1222s # Considering 2000-01-07 1222s # Considering 2000-01-08 1222s # Considering 2001-01-01 1222s # Considering 2001-01-07 1222s # Considering 2001-01-08 1222s # Considering 2002-01-01 1222s # Considering 2002-01-07 1222s # Considering 2002-01-08 1222s # Considering 2003-01-01 1222s # Considering 2003-01-07 1222s # Considering 2003-01-08 1222s # Considering 2004-01-01 1222s # Considering 2004-01-07 1222s # Considering 2004-01-08 1222s # Considering 2006-01-01 1222s # Considering 2006-01-07 1222s # Considering 2006-01-08 1222s # Considering 2010-01-01 1222s # Considering 2010-01-07 1222s # Considering 2010-01-08 1222s ok 17 /date/week-of-year 1222s # Start of parse tests 1222s # Test 0 1222s # Test 1 1222s ok 18 /date/parse/invalid 1222s # End of parse tests 1222s # Start of year tests 1222s ok 19 /date/year/1 1222s ok 20 /date/year/2 1222s ok 21 /date/year/3 1222s ok 22 /date/year/4 1222s ok 23 /date/year/5 1222s ok 24 /date/year/6 1222s ok 25 /date/year/7 1222s ok 26 /date/year/8 1222s ok 27 /date/year/9 1222s ok 28 /date/year/10 1222s ok 29 /date/year/11 1222s ok 30 /date/year/12 1222s ok 31 /date/year/13 1222s ok 32 /date/year/14 1222s ok 33 /date/year/98 1222s ok 34 /date/year/99 1222s ok 35 /date/year/100 1222s ok 36 /date/year/101 1222s ok 37 /date/year/102 1222s ok 38 /date/year/103 1222s ok 39 /date/year/397 1222s ok 40 /date/year/398 1222s ok 41 /date/year/399 1222s ok 42 /date/year/400 1222s ok 43 /date/year/401 1222s ok 44 /date/year/402 1222s ok 45 /date/year/403 1222s ok 46 /date/year/404 1222s ok 47 /date/year/405 1222s ok 48 /date/year/406 1222s ok 49 /date/year/1598 1222s ok 50 /date/year/1599 1222s ok 51 /date/year/1600 1222s ok 52 /date/year/1601 1222s ok 53 /date/year/1602 1222s ok 54 /date/year/1650 1222s ok 55 /date/year/1651 1222s ok 56 /date/year/1897 1222s ok 57 /date/year/1898 1222s ok 58 /date/year/1899 1222s ok 59 /date/year/1900 1222s ok 60 /date/year/1901 1222s ok 61 /date/year/1902 1222s ok 62 /date/year/1903 1222s ok 63 /date/year/1961 1222s ok 64 /date/year/1962 1222s ok 65 /date/year/1963 1222s ok 66 /date/year/1964 1222s ok 67 /date/year/1965 1222s ok 68 /date/year/1967 1222s ok 69 /date/year/1968 1222s ok 70 /date/year/1969 1222s ok 71 /date/year/1970 1222s ok 72 /date/year/1971 1222s ok 73 /date/year/1972 1222s ok 74 /date/year/1973 1222s ok 75 /date/year/1974 1222s ok 76 /date/year/1975 1222s ok 77 /date/year/1976 1222s ok 78 /date/year/1977 1222s ok 79 /date/year/1978 1222s ok 80 /date/year/1979 1222s ok 81 /date/year/1980 1222s ok 82 /date/year/1981 1222s ok 83 /date/year/1982 1222s ok 84 /date/year/1983 1222s ok 85 /date/year/1984 1222s ok 86 /date/year/1985 1222s ok 87 /date/year/1986 1222s ok 88 /date/year/1987 1222s ok 89 /date/year/1988 1222s ok 90 /date/year/1989 1222s ok 91 /date/year/1990 1222s ok 92 /date/year/1991 1222s ok 93 /date/year/1992 1222s ok 94 /date/year/1993 1222s ok 95 /date/year/1994 1222s ok 96 /date/year/1995 1222s ok 97 /date/year/1996 1222s ok 98 /date/year/1997 1222s ok 99 /date/year/1998 1222s ok 100 /date/year/1999 1222s ok 101 /date/year/2000 1222s ok 102 /date/year/2001 1222s ok 103 /date/year/2002 1222s ok 104 /date/year/2003 1222s ok 105 /date/year/2004 1222s ok 106 /date/year/2005 1222s ok 107 /date/year/2006 1222s ok 108 /date/year/2007 1222s ok 109 /date/year/2008 1222s ok 110 /date/year/2009 1222s ok 111 /date/year/2010 1222s ok 112 /date/year/2011 1222s ok 113 /date/year/2012 1222s ok 114 /date/year/3000 1222s ok 115 /date/year/3001 1222s ok 116 /date/year/3002 1222s ok 117 /date/year/3998 1222s ok 118 /date/year/3999 1222s ok 119 /date/year/4000 1222s ok 120 /date/year/4001 1222s ok 121 /date/year/4002 1222s ok - glib/date.test 1222s ok 122 /date/year/4003 1222s # End of year tests 1222s # End of date tests 1222s # Running test: glib/hash.test 1222s TAP version 14 1222s # random seed: R02Sf83acb1a2bda4a54559b23ddddd8b224 1222s 1..34 1222s # Start of hash tests 1222s ok 1 /hash/misc 1222s ok 2 /hash/one 1222s ok 3 /hash/honeyman 1222s ok 4 /hash/direct 1222s ok 5 /hash/direct2 1222s ok 6 /hash/int 1222s ok 7 /hash/int64 1222s ok 8 /hash/double 1222s ok 9 /hash/string 1222s ok 10 /hash/set 1222s ok 11 /hash/set-ref 1222s ok 12 /hash/ref 1222s ok 13 /hash/remove-all 1222s ok - glib/hash.test 1222s ok 14 /hash/recursive-remove-all 1222s ok 15 /hash/find 1222s ok 16 /hash/foreach 1222s ok 17 /hash/foreach-steal 1222s ok 18 /hash/steal-extended 1222s ok 19 /hash/steal-all-keys 1222s ok 20 /hash/steal-all-values 1222s ok 21 /hash/lookup-extended 1222s ok 22 /hash/new-similar 1222s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 1222s ok 23 /hash/lookup-null-key 1222s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 1222s ok 24 /hash/destroy-modify 1222s ok 25 /hash/consistency 1222s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 1222s ok 26 /hash/iter-replace 1222s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 1222s ok 27 /hash/set-insert-corruption 1222s ok 28 /hash/set-to-strv 1222s ok 29 /hash/get-keys-as-ptr-array 1222s ok 30 /hash/get-values-as-ptr-array 1222s ok 31 /hash/primes 1222s # Start of int64 tests 1222s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 1222s ok 32 /hash/int64/collisions 1222s # End of int64 tests 1222s # Start of double tests 1222s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 1222s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 1222s ok 33 /hash/double/collisions 1222s # End of double tests 1222s # Start of recursive-remove-all tests 1222s # End of recursive-remove-all tests 1222s # Start of steal-extended tests 1222s ok 34 /hash/steal-extended/optional 1222s # End of steal-extended tests 1222s # End of hash tests 1222s # Running test: glib/dynamictype.test 1222s ok - glib/dynamictype.test 1222s # Running test: glib/references.test 1222s TAP version 14 1222s # random seed: R02S30acdffd97ca80450f79fd97b1e433c9 1222s 1..2 1222s # Start of gobject tests 1222s ok 1 /gobject/dynamic-type 1222s # Start of dynamic-type tests 1222s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 1222s ok 2 /gobject/dynamic-type/query 1222s # End of dynamic-type tests 1222s # End of gobject tests 1222s TAP version 14 1222s # random seed: R02S4cff329462c719a96c2fc64eabdb71e2 1222s 1..4 1222s # Start of gobject tests 1222s ok 1 /gobject/references 1222s ok 2 /gobject/references-many 1222s ok 3 /gobject/references_two 1222s ok 4 /gobject/references_run_dispose 1222s # End of gobject tests 1222s ok - glib/references.test 1222s # Running test: glib/gdbus-proxy-well-known-name.test 1222s TAP version 14 1222s # random seed: R02Sd5eb9f386b960ccbdcef3aa6e9c9792c 1222s 1..1 1222s # Start of gdbus tests 1222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_F5N3J3/gdbus/proxy-well-known-name/.dirs/home 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_F5N3J3/gdbus/proxy-well-known-name/.dirs/cache 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_F5N3J3/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_F5N3J3/gdbus/proxy-well-known-name/.dirs/system-config2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_F5N3J3/gdbus/proxy-well-known-name/.dirs/config 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_F5N3J3/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_F5N3J3/gdbus/proxy-well-known-name/.dirs/system-data2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_F5N3J3/gdbus/proxy-well-known-name/.dirs/data 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_F5N3J3/gdbus/proxy-well-known-name/.dirs/state 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_F5N3J3/gdbus/proxy-well-known-name/.dirs/runtime 1222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1222s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1222s ok 1 /gdbus/proxy-well-known-name 1222s # End of gdbus tests 1222s ok - glib/gdbus-proxy-well-known-name.test 1222s # Running test: glib/gdbus-export.test 1222s TAP version 14 1222s # random seed: R02S74b02ff99a41003c5dedd9137e512467 1222s 1..7 1222s # Start of gdbus tests 1222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration/.dirs/home 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration/.dirs/cache 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_4UMOK3/gdbus/object-registration/.dirs/system-config2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration/.dirs/config 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_4UMOK3/gdbus/object-registration/.dirs/system-data2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration/.dirs/data 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration/.dirs/state 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration/.dirs/runtime 1222s ok 1 /gdbus/object-registration 1222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures/.dirs/home 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures/.dirs/cache 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures/.dirs/system-config2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures/.dirs/config 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures/.dirs/system-data2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures/.dirs/data 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures/.dirs/state 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures/.dirs/runtime 1222s ok 2 /gdbus/object-registration-with-closures 1222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures2/.dirs/home 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures2/.dirs/cache 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures2/.dirs/system-config2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures2/.dirs/config 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures2/.dirs/system-data2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures2/.dirs/data 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures2/.dirs/state 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_4UMOK3/gdbus/object-registration-with-closures2/.dirs/runtime 1222s ok 3 /gdbus/object-registration-with-closures2 1222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/registered-interfaces/.dirs/home 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/registered-interfaces/.dirs/cache 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_4UMOK3/gdbus/registered-interfaces/.dirs/system-config2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/registered-interfaces/.dirs/config 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_4UMOK3/gdbus/registered-interfaces/.dirs/system-data2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/registered-interfaces/.dirs/data 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/registered-interfaces/.dirs/state 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_4UMOK3/gdbus/registered-interfaces/.dirs/runtime 1222s ok 4 /gdbus/registered-interfaces 1222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/async-properties/.dirs/home 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/async-properties/.dirs/cache 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_4UMOK3/gdbus/async-properties/.dirs/system-config2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/async-properties/.dirs/config 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_4UMOK3/gdbus/async-properties/.dirs/system-data2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/async-properties/.dirs/data 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/async-properties/.dirs/state 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_4UMOK3/gdbus/async-properties/.dirs/runtime 1222s ok 5 /gdbus/async-properties 1222s # Start of threaded-unregistration tests 1222s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/object/.dirs/home 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/object/.dirs/cache 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/object/.dirs/system-config2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/object/.dirs/config 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/object/.dirs/system-data2 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/object/.dirs/data 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/object/.dirs/state 1222s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/object/.dirs/runtime 1222s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1222s # /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 1222s # Executing: glib/gdbus-export.test 1224s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (3 iterations with unregistration first, 997 with call first); skipping test 1224s # slow test /gdbus/threaded-unregistration/object executed in 1.65 secs 1224s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/subtree/.dirs/home 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/subtree/.dirs/cache 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/subtree/.dirs/system-config2 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/subtree/.dirs/config 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/subtree/.dirs/system-data2 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/subtree/.dirs/data 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/subtree/.dirs/state 1224s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_4UMOK3/gdbus/threaded-unregistration/subtree/.dirs/runtime 1224s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1224s # /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 1225s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (5 iterations with unregistration first, 995 with call first); skipping test 1225s # slow test /gdbus/threaded-unregistration/subtree executed in 1.65 secs 1225s # End of threaded-unregistration tests 1225s # End of gdbus tests 1225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1225s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1225s ok - glib/gdbus-export.test 1225s # Running test: glib/signal-handler.test 1225s TAP version 14 1225s # random seed: R02Sca7d2cd9927954ef82cb4a76675bb423 1225s 1..7 1225s # Start of signal tests 1225s # Start of handler tests 1225s # min perf: connected 1 handlers in 0.000 seconds 1225s ok 1 /signal/handler/connect-many 1225s # min perf: disconnected 1 handlers in 0.000 seconds 1225s ok 2 /signal/handler/disconnect-many-ordered 1225s # min perf: disconnected 1 handlers in 0.000 seconds 1225s ok 3 /signal/handler/disconnect-many-inverse 1225s # min perf: disconnected 1 handlers in 0.000 seconds 1225s ok 4 /signal/handler/disconnect-many-random 1225s # min perf: disconnected 1 handlers in 0.000 seconds 1225s ok 5 /signal/handler/disconnect-2-signals 1225s # min perf: disconnected 1 handlers in 0.000 seconds 1225s ok 6 /signal/handler/disconnect-2-objects 1225s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 1225s ok 7 /signal/handler/block-many 1225s # End of handler tests 1225s # End of signal tests 1225s ok - glib/signal-handler.test 1225s # Running test: glib/glistmodel.test 1225s TAP version 14 1225s # random seed: R02Sa493ed381a5beead75dcbc599e7fd9a5 1225s 1..18 1225s # Start of glistmodel tests 1225s # Start of store tests 1225s ok 1 /glistmodel/store/properties 1225s ok 2 /glistmodel/store/non-gobjects 1225s ok 3 /glistmodel/store/boundaries 1225s ok 4 /glistmodel/store/refcounts 1225s ok 5 /glistmodel/store/sorted 1225s ok - glib/glistmodel.test 1225s # Running test: glib/static-link.test 1225s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1225s ok 6 /glistmodel/store/splice-replace-middle 1225s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1225s ok 7 /glistmodel/store/splice-replace-all 1225s ok 8 /glistmodel/store/splice-noop 1225s ok 9 /glistmodel/store/splice-remove-multiple 1225s ok 10 /glistmodel/store/splice-add-multiple 1225s ok 11 /glistmodel/store/splice-wrong-type 1225s ok 12 /glistmodel/store/item-type 1225s ok 13 /glistmodel/store/remove-all 1225s ok 14 /glistmodel/store/sort 1225s ok 15 /glistmodel/store/get-item-cache 1225s ok 16 /glistmodel/store/items-changed 1225s ok 17 /glistmodel/store/past-end 1225s ok 18 /glistmodel/store/find 1225s # End of store tests 1225s # End of glistmodel tests 1225s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 1225s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 1225s and make sure you have glib build dependencies installed, including 1225s meson. 1225s ok # SKIP - glib/static-link.test 1225s # Running test: glib/properties.test 1225s TAP version 14 1225s # random seed: R02Sf0702a3e7c4afcf68b6b58aefdab9671 1225s 1..14 1225s # Start of properties tests 1225s ok 1 /properties/install 1225s ok 2 /properties/install-many 1225s ok 3 /properties/notify 1225s ok 4 /properties/notify-queue 1225s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 1225s ok 5 /properties/construct 1225s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 1225s # Test g_object_get_property with an initialized value 1225s # Test g_object_get_property with an uninitialized value 1225s # Test g_object_get_property with a transformable value 1225s ok 6 /properties/get-property 1225s ok 7 /properties/testv_with_no_properties 1225s ok 8 /properties/testv_with_valid_properties 1225s ok 9 /properties/testv_with_invalid_property_type 1225s ok 10 /properties/testv_with_invalid_property_names 1225s ok 11 /properties/testv_getv 1225s ok 12 /properties/testv_notify_queue 1225s # Start of notify tests 1226s ok 13 /properties/notify/too-many-freezes 1226s # End of notify tests 1226s # Start of set-property tests 1226s # Start of variant tests 1226s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 1226s ok 14 /properties/set-property/variant/floating 1226s # End of variant tests 1226s # End of set-property tests 1226s # End of properties tests 1226s ok - glib/properties.test 1226s # Running test: glib/overflow-fallback.test 1226s TAP version 14 1226s # random seed: R02Sc72b0e6bdc81ea111c22b12efe5b40d8 1226s 1..6 1226s # Start of glib tests 1226s # Start of checked-math tests 1226s ok 1 /glib/checked-math/guint-add 1226s ok 2 /glib/checked-math/guint-mul 1226s ok 3 /glib/checked-math/guint64-add 1226s ok 4 /glib/checked-math/guint64-mul 1226s ok 5 /glib/checked-math/gsize-add 1226s ok 6 /glib/checked-math/gsize-mul 1226s # End of checked-math tests 1226s # End of glib tests 1226s ok - glib/overflow-fallback.test 1226s # Running test: glib/cond.test 1226s TAP version 14 1226s # random seed: R02S9d588c601c3b918d6abf581b6806f742 1226s 1..4 1226s # Start of thread tests 1226s ok 1 /thread/cond1 1226s ok 2 /thread/cond2 1226s # Start of cond tests 1227s ok 3 /thread/cond/wait-until 1227s # slow test /thread/cond/wait-until executed in 1.02 secs 1227s # Start of wait-until tests 1227s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 1227s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 1227s # Executing: glib/cond.test 1228s ok 4 /thread/cond/wait-until/contended-and-interrupted 1228s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.10 secs 1228s # End of wait-until tests 1228s # End of cond tests 1228s # End of thread tests 1228s ok - glib/cond.test 1228s # Running test: glib/shell.test 1228s TAP version 14 1228s # random seed: R02Seb0218434d4497fe59893bc6960cfb90 1228s 1..52 1228s # Start of shell tests 1228s # Start of cmdline tests 1228s test cmdline: foo bar 1228s ok 1 /shell/cmdline/0 1228s test cmdline: foo 'bar' 1228s ok 2 /shell/cmdline/1 1228s test cmdline: foo "bar" 1228s ok 3 /shell/cmdline/2 1228s test cmdline: foo '' 'bar' 1228s ok 4 /shell/cmdline/3 1228s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 1228s ok 5 /shell/cmdline/4 1228s test cmdline: foo blah foo bar baz 1228s ok 6 /shell/cmdline/5 1228s test cmdline: foo ' spaces more spaces lots of spaces in this ' 1228s ok 7 /shell/cmdline/6 1228s test cmdline: foo \ 1228s bar 1228s ok 8 /shell/cmdline/7 1228s test cmdline: foo '' '' 1228s ok 9 /shell/cmdline/8 1228s test cmdline: foo \" la la la 1228s ok 10 /shell/cmdline/9 1228s test cmdline: foo \ foo woo woo\ 1228s ok 11 /shell/cmdline/10 1228s test cmdline: foo "yada yada \$\"" 1228s ok 12 /shell/cmdline/11 1228s test cmdline: foo "c:\\" 1228s ok 13 /shell/cmdline/12 1228s test cmdline: foo # bla bla bla 1228s bar 1228s ok 14 /shell/cmdline/13 1228s test cmdline: foo a#b 1228s ok 15 /shell/cmdline/14 1228s test cmdline: #foo 1228s ok 16 /shell/cmdline/15 1228s test cmdline: foo bar \ 1228s ok 17 /shell/cmdline/16 1228s test cmdline: foo 'bar baz 1228s ok 18 /shell/cmdline/17 1228s test cmdline: foo '"bar" baz 1228s ok 19 /shell/cmdline/18 1228s test cmdline: 1228s ok 20 /shell/cmdline/19 1228s test cmdline: 1228s ok 21 /shell/cmdline/20 1228s test cmdline: # foo bar 1228s ok 22 /shell/cmdline/21 1228s test cmdline: # 1228s ok 23 /shell/cmdline/22 1228s test cmdline: foo '/bar/summer'\''09 tours.pdf' 1228s ok 24 /shell/cmdline/23 1228s # End of cmdline tests 1228s # Start of quote tests 1228s ok 25 /shell/quote/0 1228s ok 26 /shell/quote/1 1228s ok 27 /shell/quote/2 1228s ok 28 /shell/quote/3 1228s ok 29 /shell/quote/4 1228s ok 30 /shell/quote/5 1228s ok 31 /shell/quote/6 1228s # End of quote tests 1228s # Start of unquote tests 1228s ok 32 /shell/unquote/0 1228s ok 33 /shell/unquote/1 1228s ok 34 /shell/unquote/2 1228s ok 35 /shell/unquote/3 1228s ok 36 /shell/unquote/4 1228s ok 37 /shell/unquote/5 1228s ok 38 /shell/unquote/6 1228s ok 39 /shell/unquote/7 1228s ok 40 /shell/unquote/8 1228s ok 41 /shell/unquote/9 1228s ok 42 /shell/unquote/10 1228s ok 43 /shell/unquote/11 1228s ok 44 /shell/unquote/12 1228s ok 45 /shell/unquote/13 1228s ok 46 /shell/unquote/14 1228s ok 47 /shell/unquote/15 1228s ok 48 /shell/unquote/16 1228s ok 49 /shell/unquote/17 1228s ok 50 /shell/unquote/18 1228s ok 51 /shell/unquote/19 1228s ok 52 /shell/unquote/20 1228s # End of unquote tests 1228s # End of shell tests 1228s ok - glib/shell.test 1228s # Running test: glib/thumbnail-verification.test 1228s TAP version 14 1228s # random seed: R02Se0c8c76ed9ea6e4a8f7fe8bd1c10dba1 1228s 1..1 1228s # Start of png-thumbs tests 1228s ok - glib/thumbnail-verification.test 1228s ok 1 /png-thumbs/validity 1228s # End of png-thumbs tests 1228s # Running test: glib/union-info.test 1228s TAP version 14 1228s # random seed: R02Scec29e72af20d160c2af096c343421ba 1228s 1..2 1228s # Start of union-info tests 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_VNPBK3/union-info/basic/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_VNPBK3/union-info/basic/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_VNPBK3/union-info/basic/.dirs/system-config1:/tmp/test_union-info_VNPBK3/union-info/basic/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_VNPBK3/union-info/basic/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_VNPBK3/union-info/basic/.dirs/system-data1:/tmp/test_union-info_VNPBK3/union-info/basic/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_VNPBK3/union-info/basic/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_VNPBK3/union-info/basic/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_VNPBK3/union-info/basic/.dirs/runtime 1228s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1228s # /union-info/basic summary: Test basic properties of GIUnionInfo 1228s ok 1 /union-info/basic 1228s ok - glib/union-info.test 1228s # Running test: glib/signals-refcount4.test 1228s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_VNPBK3/union-info/methods/.dirs/home 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_VNPBK3/union-info/methods/.dirs/cache 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_VNPBK3/union-info/methods/.dirs/system-config1:/tmp/test_union-info_VNPBK3/union-info/methods/.dirs/system-config2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_VNPBK3/union-info/methods/.dirs/config 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_VNPBK3/union-info/methods/.dirs/system-data1:/tmp/test_union-info_VNPBK3/union-info/methods/.dirs/system-data2 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_VNPBK3/union-info/methods/.dirs/data 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_VNPBK3/union-info/methods/.dirs/state 1228s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_VNPBK3/union-info/methods/.dirs/runtime 1228s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1228s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 1228s ok 2 /union-info/methods 1228s # End of union-info tests 1228s TAP version 14 1228s # random seed: R02Se5c22e3f117b5cb194098e8aabaa8a08 1228s 1..1 1228s # Start of gobject tests 1228s # Start of refcount tests 1228s # init 0xf40fc90 1228s # 1228s # init 0xf416510 1228s # 1232s # Executing: glib/signals-refcount4.test 1233s # dispose 0xf40fc90! 1233s # 1233s # dispose 0xf416510! 1233s # 1233s ok 1 /gobject/refcount/signals 1233s # slow test /gobject/refcount/signals executed in 5.00 secs 1233s # End of refcount tests 1233s # End of gobject tests 1233s ok - glib/signals-refcount4.test 1233s # Running test: glib/pollable.test 1233s TAP version 14 1233s # random seed: R02S34faf7a1ec170cbf21126bb39fc1461d 1233s 1..6 1233s # Start of pollable tests 1233s ok 1 /pollable/converter 1233s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x10cf618 and GSocketClientAsyncConnectData 0x10cc870 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1233s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x10d31f0 for GSocketClientAsyncConnectData 0x10cc870 1233s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1233s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1233s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1233s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1233s ok 2 /pollable/socket 1233s # Start of unix tests 1233s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 1233s ok 3 /pollable/unix/pipe 1233s # /pollable/unix/pty summary: Test that PTYs are considered pollable 1233s ok - glib/pollable.test 1233s # Running test: glib/mem-overflow.test 1233s ok 4 /pollable/unix/pty 1233s # /pollable/unix/file summary: Test that regular files are not considered pollable 1233s ok 5 /pollable/unix/file 1233s # /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 1233s ok 6 /pollable/unix/nulldev 1233s # End of unix tests 1233s # End of pollable tests 1233s TAP version 14 1233s # random seed: R02S5fe14ee7141d3732a639c71171c7ebdd 1233s 1..2 1233s # Start of mem tests 1233s ok 1 /mem/overflow 1233s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 1233s ok 2 /mem/empty-alloc 1233s # Start of overflow tests 1233s # Start of subprocess tests 1233s # End of subprocess tests 1233s # End of overflow tests 1233s # Start of empty-alloc tests 1233s # End of empty-alloc tests 1233s # End of mem tests 1233s ok - glib/mem-overflow.test 1233s # Running test: glib/singleton.test 1233s TAP version 14 1233s # random seed: R02S8988b7445e0d060f46e2d0e9cc7e2148 1233s 1..2 1233s # Start of gobject tests 1233s # Start of singleton tests 1233s ok 1 /gobject/singleton/construction 1233s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 1233s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 1233s ok 2 /gobject/singleton/construct-property 1233s # End of singleton tests 1233s # End of gobject tests 1233s ok - glib/singleton.test 1233s # Running test: glib/proxy-test.test 1233s TAP version 14 1233s # random seed: R02Sd0ca3f64abe7211ba33236f9aa622104 1233s 1..11 1233s # Start of proxy tests 1233s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ‘gio-proxy-resolver’ 1233s ok 1 /proxy/direct_sync 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f708d8 and GSocketClientAsyncConnectData 0x3f6f288 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1233s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x3f71640 for GSocketClientAsyncConnectData 0x3f6f288 1233s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1233s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1233s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1233s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1233s ok 2 /proxy/direct_async 1233s ok 3 /proxy/single_sync 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f711b8 and GSocketClientAsyncConnectData 0x3f6f288 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1233s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x3f72308 for GSocketClientAsyncConnectData 0x3f6f288 1233s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1233s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1233s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1233s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1233s ok - glib/proxy-test.test 1233s # Running test: glib/mount-operation.test 1233s ok - glib/mount-operation.test 1233s # Running test: glib/contexts.test 1233s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1233s ok 4 /proxy/single_async 1233s ok 5 /proxy/multiple_sync 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f713c8 and GSocketClientAsyncConnectData 0x3f714d8 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1233s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x3f72308 for GSocketClientAsyncConnectData 0x3f714d8 1233s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1233s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1233s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1233s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1233s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x3f71488 for GSocketClientAsyncConnectData 0x3f714d8 1233s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1233s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1233s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1233s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1233s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1233s ok 6 /proxy/multiple_async 1233s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1233s ok 7 /proxy/invalid-uris-sync 1233s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f71120 and GSocketClientAsyncConnectData 0x3f71258 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1233s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f711b8 and GSocketClientAsyncConnectData 0x3f72530 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1233s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f71120 and GSocketClientAsyncConnectData 0x3f71258 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1233s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x3f72308 for GSocketClientAsyncConnectData 0x3f71258 1233s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1233s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1233s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1233s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f711b8 and GSocketClientAsyncConnectData 0x3f6f288 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1233s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x3f72308 for GSocketClientAsyncConnectData 0x3f6f288 1233s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1233s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1233s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1233s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1233s ok 8 /proxy/invalid-uris-async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f708d8 and GSocketClientAsyncConnectData 0x3f71448 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 1233s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 1233s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f727d0 and GSocketClientAsyncConnectData 0x3f71258 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1233s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x3f723d0 for GSocketClientAsyncConnectData 0x3f71258 1233s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1233s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1233s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1233s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1233s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f71120 and GSocketClientAsyncConnectData 0x3f71448 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1233s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x3f723d0 for GSocketClientAsyncConnectData 0x3f71448 1233s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1233s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1233s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1233s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1233s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1233s ok 9 /proxy/dns 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f71120 and GSocketClientAsyncConnectData 0x3f71448 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1233s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x3f72308 for GSocketClientAsyncConnectData 0x3f71448 1233s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1233s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1233s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1233s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1233s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f727d0 and GSocketClientAsyncConnectData 0x3f6f288 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1233s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x3f72308 for GSocketClientAsyncConnectData 0x3f6f288 1233s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1233s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1233s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1233s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1233s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1233s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1233s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x3f71120 and GSocketClientAsyncConnectData 0x3f6f288 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1233s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x3f72308 for GSocketClientAsyncConnectData 0x3f6f288 1233s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1233s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1233s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1233s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1233s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1233s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1233s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1233s ok 10 /proxy/override 1233s ok 11 /proxy/enumerator-ports 1233s # End of proxy tests 1233s TAP version 14 1233s # random seed: R02Sb33f30bf16fd7b3dcaf30e4e7b75d721 1233s 1..2 1233s # Start of mount-operation tests 1233s ok 1 /mount-operation/construction 1233s ok 2 /mount-operation/properties 1233s # End of mount-operation tests 1233s TAP version 14 1233s # random seed: R02S8601d4680861e54c4ed3c3427a500ea3 1233s 1..5 1233s # Start of gio tests 1233s # Start of contexts tests 1233s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1233s ok 1 /gio/contexts/thread-independence 1233s ok 2 /gio/contexts/context-independence 1233s # Start of context-specific tests 1233s ok 3 /gio/contexts/context-specific/identity 1233s ok 4 /gio/contexts/context-specific/emit 1233s ok 5 /gio/contexts/context-specific/emit-and-unref 1233s # End of context-specific tests 1233s # End of contexts tests 1233s # End of gio tests 1233s ok - glib/contexts.test 1233s # Running test: glib/cxx-2b.test 1233s TAP version 14 1233s # random seed: R02S55e87c66cffd514acdf55b8cf3b86091 1233s 1..2 1233s # Start of gtask tests 1233s # 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. 1233s ok 1 /gtask/name 1233s # Start of name tests 1233s # 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. 1233s ok 2 /gtask/name/macro-wrapper 1233s # End of name tests 1233s # End of gtask tests 1233s ok - glib/cxx-2b.test 1233s # Running test: glib/sleepy-stream.test 1233s TAP version 14 1233s # random seed: R02Se8df83d129c529a203f461f39bb70235 1233s 1..2 1233s # Start of filter-stream tests 1233s ok 1 /filter-stream/input 1233s ok 2 /filter-stream/async 1233s # End of filter-stream tests 1233s ok - glib/sleepy-stream.test 1233s # Running test: glib/codegen.py.test 1233s TAP version 13 1233s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 1233s # gdbus-codegen: /usr/bin/gdbus-codegen 1233s # tmpdir: /tmp/tmpwmk5k89i 1233s # /tmp/tmpwmk5k89i/tmpxs12edqo.xml: 1233s # 1233s # 1233s # 1233s # 1233s # 1233s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwmk5k89i/tmpxs12edqo.xml', '--output', '-', '--header'] 1233s # Return code: 0 1233s # Output: 1233s # /* 1233s # * This file is generated by gdbus-codegen, do not modify it. 1233s # * 1233s # * The license of this code is the same as for the D-Bus interface description 1233s # * it was derived from. Note that it links to GLib, so must comply with the 1233s # * LGPL linking clauses. 1233s # */ 1233s # 1233s # #ifndef __STDOUT__ 1233s # #define __STDOUT__ 1233s # 1233s # #include 1233s # 1233s # G_BEGIN_DECLS 1233s # 1233s # 1233s # /* ------------------------------------------------------------------------ */ 1233s # /* Declarations for org.project.UsefulInterface */ 1233s # 1233s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1233s # 1233s # struct _OrgProjectUsefulInterface; 1233s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1233s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1233s # 1233s # struct _OrgProjectUsefulInterfaceIface 1233s # { 1233s # GTypeInterface parent_iface; 1233s # 1233s # gboolean (*handle_useful_method) ( 1233s # OrgProjectUsefulInterface *object, 1233s # GDBusMethodInvocation *invocation); 1233s # 1233s # }; 1233s # 1233s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1233s # 1233s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1233s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1233s # 1233s # 1233s # /* D-Bus method call completion functions: */ 1233s # void org_project_useful_interface_complete_useful_method ( 1233s # OrgProjectUsefulInterface *object, 1233s # GDBusMethodInvocation *invocation); 1233s # 1233s # 1233s # 1233s # /* D-Bus method calls: */ 1233s # void org_project_useful_interface_call_useful_method ( 1233s # OrgProjectUsefulInterface *proxy, 1233s # GCancellable *cancellable, 1233s # GAsyncReadyCallback callback, 1233s # gpointer user_data); 1233s # 1233s # gboolean org_project_useful_interface_call_useful_method_finish ( 1233s # OrgProjectUsefulInterface *proxy, 1233s # GAsyncResult *res, 1233s # GError **error); 1233s # 1233s # gboolean org_project_useful_interface_call_useful_method_sync ( 1233s # OrgProjectUsefulInterface *proxy, 1233s # GCancellable *cancellable, 1233s # GError **error); 1233s # 1233s # 1233s # 1233s # /* ---- */ 1233s # 1233s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1233s # 1233s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1233s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1233s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1233s # 1233s # struct _OrgProjectUsefulInterfaceProxy 1233s # { 1233s # /*< private >*/ 1233s # GDBusProxy parent_instance; 1233s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1233s # }; 1233s # 1233s # struct _OrgProjectUsefulInterfaceProxyClass 1233s # { 1233s # GDBusProxyClass parent_class; 1233s # }; 1233s # 1233s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1233s # 1233s # #if GLIB_CHECK_VERSION(2, 44, 0) 1233s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1233s # #endif 1233s # 1233s # void org_project_useful_interface_proxy_new ( 1233s # GDBusConnection *connection, 1233s # GDBusProxyFlags flags, 1233s # const gchar *name, 1233s # const gchar *object_path, 1233s # GCancellable *cancellable, 1233s # GAsyncReadyCallback callback, 1233s # gpointer user_data); 1233s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1233s # GAsyncResult *res, 1233s # GError **error); 1233s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1233s # GDBusConnection *connection, 1233s # GDBusProxyFlags flags, 1233s # const gchar *name, 1233s # const gchar *object_path, 1233s # GCancellable *cancellable, 1233s # GError **error); 1233s # 1233s # void org_project_useful_interface_proxy_new_for_bus ( 1233s # GBusType bus_type, 1233s # GDBusProxyFlags flags, 1233s # const gchar *name, 1233s # const gchar *object_path, 1233s # GCancellable *cancellable, 1233s # GAsyncReadyCallback callback, 1233s # gpointer user_data); 1233s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1233s # GAsyncResult *res, 1233s # GError **error); 1233s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1233s # GBusType bus_type, 1233s # GDBusProxyFlags flags, 1233s # const gchar *name, 1233s # const gchar *object_path, 1233s # GCancellable *cancellable, 1233s # GError **error); 1233s # 1233s # 1233s # /* ---- */ 1233s # 1233s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1233s # 1233s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1233s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1233s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1233s # 1233s # struct _OrgProjectUsefulInterfaceSkeleton 1233s # { 1233s # /*< private >*/ 1233s # GDBusInterfaceSkeleton parent_instance; 1233s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1233s # }; 1233s # 1233s # struct _OrgProjectUsefulInterfaceSkeletonClass 1233s # { 1233s # GDBusInterfaceSkeletonClass parent_class; 1233s # }; 1233s # 1233s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1233s # 1233s # #if GLIB_CHECK_VERSION(2, 44, 0) 1233s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1233s # #endif 1233s # 1233s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1233s # 1233s # 1233s # G_END_DECLS 1233s # 1233s # #endif /* __STDOUT__ */ 1233s # Error: 1233s # 1233s # /tmp/tmpwmk5k89i/tmpgtwjnh25.xml: 1233s # 1233s # 1233s # 1233s # 1233s # 1233s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwmk5k89i/tmpgtwjnh25.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1233s # Return code: 0 1233s # Output: 1233s # /* 1233s # * This file is generated by gdbus-codegen, do not modify it. 1233s # * 1233s # * The license of this code is the same as for the D-Bus interface description 1233s # * it was derived from. Note that it links to GLib, so must comply with the 1233s # * LGPL linking clauses. 1233s # */ 1233s # 1233s # #ifndef __STDOUT__ 1233s # #define __STDOUT__ 1233s # 1233s # #include 1233s # 1233s # G_BEGIN_DECLS 1233s # 1233s # 1233s # /* ------------------------------------------------------------------------ */ 1233s # /* Declarations for org.project.UsefulInterface */ 1233s # 1233s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1233s # 1233s # struct _OrgProjectUsefulInterface; 1233s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1233s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1233s # 1233s # struct _OrgProjectUsefulInterfaceIface 1233s # { 1233s # GTypeInterface parent_iface; 1233s # 1233s # gboolean (*handle_useful_method) ( 1233s # OrgProjectUsefulInterface *object, 1233s # GDBusMethodInvocation *invocation); 1233s # 1233s # }; 1233s # 1233s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1233s # 1233s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1233s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1233s # 1233s # 1233s # /* D-Bus method call completion functions: */ 1233s # void org_project_useful_interface_complete_useful_method ( 1233s # OrgProjectUsefulInterface *object, 1233s # GDBusMethodInvocation *invocation); 1233s # 1233s # 1233s # 1233s # /* D-Bus method calls: */ 1233s # void org_project_useful_interface_call_useful_method ( 1233s # OrgProjectUsefulInterface *proxy, 1233s # GCancellable *cancellable, 1233s # GAsyncReadyCallback callback, 1233s # gpointer user_data); 1233s # 1233s # gboolean org_project_useful_interface_call_useful_method_finish ( 1233s # OrgProjectUsefulInterface *proxy, 1233s # GAsyncResult *res, 1233s # GError **error); 1233s # 1233s # gboolean org_project_useful_interface_call_useful_method_sync ( 1233s # OrgProjectUsefulInterface *proxy, 1233s # GCancellable *cancellable, 1233s # GError **error); 1233s # 1233s # 1233s # 1233s # /* ---- */ 1233s # 1233s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1233s # 1233s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1233s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1233s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1233s # 1233s # struct _OrgProjectUsefulInterfaceProxy 1233s # { 1233s # /*< private >*/ 1233s # GDBusProxy parent_instance; 1233s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1233s # }; 1233s # 1233s # struct _OrgProjectUsefulInterfaceProxyClass 1233s # { 1233s # GDBusProxyClass parent_class; 1233s # }; 1233s # 1233s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1233s # 1233s # #if GLIB_CHECK_VERSION(2, 44, 0) 1233s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1233s # #endif 1233s # 1233s # void org_project_useful_interface_proxy_new ( 1233s # GDBusConnection *connection, 1233s # GDBusProxyFlags flags, 1233s # const gchar *name, 1233s # const gchar *object_path, 1233s # GCancellable *cancellable, 1233s # GAsyncReadyCallback callback, 1233s # gpointer user_data); 1233s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1233s # GAsyncResult *res, 1233s # GError **error); 1233s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1233s # GDBusConnection *connection, 1233s # GDBusProxyFlags flags, 1233s # const gchar *name, 1233s # const gchar *object_path, 1233s # GCancellable *cancellable, 1233s # GError **error); 1233s # 1233s # void org_project_useful_interface_proxy_new_for_bus ( 1233s # GBusType bus_type, 1233s # GDBusProxyFlags flags, 1233s # const gchar *name, 1233s # const gchar *object_path, 1233s # GCancellable *cancellable, 1233s # GAsyncReadyCallback callback, 1233s # gpointer user_data); 1233s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1233s # GAsyncResult *res, 1233s # GError **error); 1233s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1233s # GBusType bus_type, 1233s # GDBusProxyFlags flags, 1233s # const gchar *name, 1233s # const gchar *object_path, 1233s # GCancellable *cancellable, 1233s # GError **error); 1233s # 1233s # 1233s # /* ---- */ 1233s # 1233s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1233s # 1233s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1233s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1233s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1233s # 1233s # struct _OrgProjectUsefulInterfaceSkeleton 1233s # { 1233s # /*< private >*/ 1233s # GDBusInterfaceSkeleton parent_instance; 1233s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1233s # }; 1233s # 1233s # struct _OrgProjectUsefulInterfaceSkeletonClass 1233s # { 1233s # GDBusInterfaceSkeletonClass parent_class; 1233s # }; 1233s # 1233s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1233s # 1233s # #if GLIB_CHECK_VERSION(2, 44, 0) 1233s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1233s # #endif 1233s # 1233s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1233s # 1233s # 1233s # G_END_DECLS 1233s # 1233s # #endif /* __STDOUT__ */ 1233s # Error: 1233s # 1233s # /tmp/tmpwmk5k89i/tmps4oe0dyn.xml: 1233s # 1233s # 1233s # 1233s # 1233s # 1233s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwmk5k89i/tmps4oe0dyn.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1233s # Return code: 0 1233s # Output: 1233s # /* 1233s # * This file is generated by gdbus-codegen, do not modify it. 1233s # * 1233s # * The license of this code is the same as for the D-Bus interface description 1233s # * it was derived from. Note that it links to GLib, so must comply with the 1233s # * LGPL linking clauses. 1233s # */ 1233s # 1233s # #ifndef __STDOUT__ 1233s # #define __STDOUT__ 1233s # 1233s # #include 1233s # 1233s # G_BEGIN_DECLS 1233s # 1233s # 1233s # /* ------------------------------------------------------------------------ */ 1233s # /* Declarations for org.project.UsefulInterface */ 1233s # 1233s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1233s # 1233s # struct _OrgProjectUsefulInterface; 1233s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1233s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1233s # 1233s # struct _OrgProjectUsefulInterfaceIface 1233s # { 1233s # GTypeInterface parent_iface; 1233s # 1233s # gboolean (*handle_useful_method) ( 1233s # OrgProjectUsefulInterface *object, 1233s # GDBusMethodInvocation *invocation); 1233s # 1233s # }; 1233s # 1233s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1233s # 1233s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1233s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1233s # 1233s # 1233s # /* D-Bus method call completion functions: */ 1233s # void org_project_useful_interface_complete_useful_method ( 1233s # OrgProjectUsefulInterface *object, 1233s # GDBusMethodInvocation *invocation); 1233s # 1233s # 1233s # 1233s # /* D-Bus method calls: */ 1233s # void org_project_useful_interface_call_useful_method ( 1233s # OrgProjectUsefulInterface *proxy, 1233s # GDBusCallFlags call_flags, 1233s # gint timeout_msec, 1233s # GCancellable *cancellable, 1233s # GAsyncReadyCallback callback, 1233s # gpointer user_data); 1233s # 1233s # gboolean org_project_useful_interface_call_useful_method_finish ( 1233s # OrgProjectUsefulInterface *proxy, 1233s # GAsyncResult *res, 1233s # GError **error); 1233s # 1233s # gboolean org_project_useful_interface_call_useful_method_sync ( 1233s # OrgProjectUsefulInterface *proxy, 1233s # GDBusCallFlags call_flags, 1233s # gint timeout_msec, 1233s # GCancellable *cancellable, 1233s # GError **error); 1233s # 1233s # 1233s # 1233s # /* ---- */ 1233s # 1233s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1233s # 1233s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1233s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1233s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1233s # 1233s # struct _OrgProjectUsefulInterfaceProxy 1233s # { 1233s # /*< private >*/ 1233s # GDBusProxy parent_instance; 1233s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1233s # }; 1233s # 1233s # struct _OrgProjectUsefulInterfaceProxyClass 1233s # { 1233s # GDBusProxyClass parent_class; 1233s # }; 1233s # 1233s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1233s # 1233s # #if GLIB_CHECK_VERSION(2, 44, 0) 1233s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1233s # #endif 1233s # 1233s # void org_project_useful_interface_proxy_new ( 1233s # GDBusConnection *connection, 1233s # GDBusProxyFlags flags, 1233s # const gchar *name, 1233s # const gchar *object_path, 1233s # GCancellable *cancellable, 1233s # GAsyncReadyCallback callback, 1233s # gpointer user_data); 1233s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1233s # GAsyncResult *res, 1233s # GError **error); 1233s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1233s # GDBusConnection *connection, 1233s # GDBusProxyFlags flags, 1233s # const gchar *name, 1233s # const gchar *object_path, 1233s # GCancellable *cancellable, 1233s # GError **error); 1233s # 1233s # void org_project_useful_interface_proxy_new_for_bus ( 1233s # GBusType bus_type, 1233s # GDBusProxyFlags flags, 1233s # const gchar *name, 1233s # const gchar *object_path, 1233s # GCancellable *cancellable, 1233s # GAsyncReadyCallback callback, 1233s # gpointer user_data); 1233s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1233s # GAsyncResult *res, 1233s # GError **error); 1233s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1233s # GBusType bus_type, 1233s # GDBusProxyFlags flags, 1233s # const gchar *name, 1233s # const gchar *object_path, 1233s # GCancellable *cancellable, 1233s # GError **error); 1233s # 1233s # 1233s # /* ---- */ 1233s # 1233s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1233s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1233s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1233s # 1233s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1233s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1233s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1233s # 1233s # struct _OrgProjectUsefulInterfaceSkeleton 1233s # { 1233s # /*< private >*/ 1233s # GDBusInterfaceSkeleton parent_instance; 1233s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1233s # }; 1233s # 1233s # struct _OrgProjectUsefulInterfaceSkeletonClass 1233s # { 1233s # GDBusInterfaceSkeletonClass parent_class; 1233s # }; 1233s # 1233s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1233s # 1233s # #if GLIB_CHECK_VERSION(2, 44, 0) 1233s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1233s # #endif 1233s # 1233s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1233s # 1233s # 1233s # G_END_DECLS 1233s # 1233s # #endif /* __STDOUT__ */ 1233s # Error: 1234s ok 2 __main__.TestCodegen.test_dbus_types 1234s # gdbus-codegen: /usr/bin/gdbus-codegen 1234s # tmpdir: /tmp/tmp94326_st 1234s # /tmp/tmp94326_st/tmp6_isjn16.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmp6_isjn16.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 1234s # /tmp/tmp94326_st/tmpn_5wqt5q.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmpn_5wqt5q.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 1234s # /tmp/tmp94326_st/tmpygcd_jgi.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmpygcd_jgi.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 1234s # /tmp/tmp94326_st/tmpncehmd6q.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmpncehmd6q.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 1234s # /tmp/tmp94326_st/tmpb0st0blf.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmpb0st0blf.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 1234s # /tmp/tmp94326_st/tmp219u0z88.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmp219u0z88.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 1234s # /tmp/tmp94326_st/tmp94bacb8e.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmp94bacb8e.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 1234s # /tmp/tmp94326_st/tmpnns766xh.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmpnns766xh.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 1234s # /tmp/tmp94326_st/tmp7ycn83r4.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmp7ycn83r4.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 1234s # /tmp/tmp94326_st/tmpv2_v23kg.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmpv2_v23kg.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: D-Bus maximum signature length of 255 exceeded. 1234s # /tmp/tmp94326_st/tmpb3mueuja.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmpb3mueuja.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: D-Bus maximum signature length of 255 exceeded. 1234s # /tmp/tmp94326_st/tmpcd_plaud.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmpcd_plaud.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 1234s # /tmp/tmp94326_st/tmpaun3h0f3.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmpaun3h0f3.xml', '--output', '-', '--body'] 1234s # Return code: 1 1234s # Output: 1234s # 1234s # Error: 1234s # ERROR: D-Bus maximum signature length of 255 exceeded. 1234s # /tmp/tmp94326_st/tmpk48f6x7r.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmpk48f6x7r.xml', '--output', '-', '--body'] 1234s # Return code: 0 1234s # Output: 1234s # /* 1234s # * This file is generated by gdbus-codegen, do not modify it. 1234s # * 1234s # * The license of this code is the same as for the D-Bus interface description 1234s # * it was derived from. Note that it links to GLib, so must comply with the 1234s # * LGPL linking clauses. 1234s # */ 1234s # 1234s # #ifdef HAVE_CONFIG_H 1234s # # include "config.h" 1234s # #endif 1234s # 1234s # #include 1234s # #ifdef G_OS_UNIX 1234s # # include 1234s # #endif 1234s # 1234s # #ifdef G_ENABLE_DEBUG 1234s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1234s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1234s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1234s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1234s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1234s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1234s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1234s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1234s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1234s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1234s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1234s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1234s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1234s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1234s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1234s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1234s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1234s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1234s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1234s # #else /* !G_ENABLE_DEBUG */ 1234s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1234s # * Do not access GValues directly in your code. Instead, use the 1234s # * g_value_get_*() functions 1234s # */ 1234s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1234s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1234s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1234s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1234s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1234s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1234s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1234s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1234s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1234s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1234s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1234s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1234s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1234s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1234s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1234s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1234s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1234s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1234s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1234s # #endif /* !G_ENABLE_DEBUG */ 1234s # 1234s # typedef struct 1234s # { 1234s # GDBusArgInfo parent_struct; 1234s # gboolean use_gvariant; 1234s # } _ExtendedGDBusArgInfo; 1234s # 1234s # typedef struct 1234s # { 1234s # GDBusMethodInfo parent_struct; 1234s # const gchar *signal_name; 1234s # gboolean pass_fdlist; 1234s # } _ExtendedGDBusMethodInfo; 1234s # 1234s # typedef struct 1234s # { 1234s # GDBusSignalInfo parent_struct; 1234s # const gchar *signal_name; 1234s # } _ExtendedGDBusSignalInfo; 1234s # 1234s # typedef struct 1234s # { 1234s # GDBusPropertyInfo parent_struct; 1234s # const gchar *hyphen_name; 1234s # guint use_gvariant : 1; 1234s # guint emits_changed_signal : 1; 1234s # } _ExtendedGDBusPropertyInfo; 1234s # 1234s # typedef struct 1234s # { 1234s # GDBusInterfaceInfo parent_struct; 1234s # const gchar *hyphen_name; 1234s # } _ExtendedGDBusInterfaceInfo; 1234s # 1234s # typedef struct 1234s # { 1234s # const _ExtendedGDBusPropertyInfo *info; 1234s # guint prop_id; 1234s # GValue orig_value; /* the value before the change */ 1234s # } ChangedProperty; 1234s # 1234s # static void 1234s # _changed_property_free (ChangedProperty *data) 1234s # { 1234s # g_value_unset (&data->orig_value); 1234s # g_free (data); 1234s # } 1234s # 1234s # static gboolean 1234s # _g_strv_equal0 (gchar **a, gchar **b) 1234s # { 1234s # gboolean ret = FALSE; 1234s # guint n; 1234s # if (a == NULL && b == NULL) 1234s # { 1234s # ret = TRUE; 1234s # goto out; 1234s # } 1234s # if (a == NULL || b == NULL) 1234s # goto out; 1234s # if (g_strv_length (a) != g_strv_length (b)) 1234s # goto out; 1234s # for (n = 0; a[n] != NULL; n++) 1234s # if (g_strcmp0 (a[n], b[n]) != 0) 1234s # goto out; 1234s # ret = TRUE; 1234s # out: 1234s # return ret; 1234s # } 1234s # 1234s # static gboolean 1234s # _g_variant_equal0 (GVariant *a, GVariant *b) 1234s # { 1234s # gboolean ret = FALSE; 1234s # if (a == NULL && b == NULL) 1234s # { 1234s # ret = TRUE; 1234s # goto out; 1234s # } 1234s # if (a == NULL || b == NULL) 1234s # goto out; 1234s # ret = g_variant_equal (a, b); 1234s # out: 1234s # return ret; 1234s # } 1234s # 1234s # G_GNUC_UNUSED static gboolean 1234s # _g_value_equal (const GValue *a, const GValue *b) 1234s # { 1234s # gboolean ret = FALSE; 1234s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1234s # switch (G_VALUE_TYPE (a)) 1234s # { 1234s # case G_TYPE_BOOLEAN: 1234s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1234s # break; 1234s # case G_TYPE_UCHAR: 1234s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1234s # break; 1234s # case G_TYPE_INT: 1234s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1234s # break; 1234s # case G_TYPE_UINT: 1234s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1234s # break; 1234s # case G_TYPE_INT64: 1234s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1234s # break; 1234s # case G_TYPE_UINT64: 1234s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1234s # break; 1234s # case G_TYPE_DOUBLE: 1234s # { 1234s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1234s # gdouble da = g_value_get_double (a); 1234s # gdouble db = g_value_get_double (b); 1234s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1234s # } 1234s # break; 1234s # case G_TYPE_STRING: 1234s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1234s # break; 1234s # case G_TYPE_VARIANT: 1234s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1234s # break; 1234s # default: 1234s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1234s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1234s # else 1234s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1234s # break; 1234s # } 1234s # return ret; 1234s # } 1234s # 1234s # /* ------------------------------------------------------------------------ 1234s # * Code for interface GoodTypes 1234s # * ------------------------------------------------------------------------ 1234s # */ 1234s # 1234s # /** 1234s # * SECTION:GoodTypes 1234s # * @title: GoodTypes 1234s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1234s # * 1234s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1234s # */ 1234s # 1234s # /* ---- Introspection data for GoodTypes ---- */ 1234s # 1234s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1234s # { 1234s # { 1234s # -1, 1234s # (gchar *) "GoodPropertyType", 1234s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 1234s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1234s # NULL 1234s # }, 1234s # "good-property-type", 1234s # FALSE, 1234s # TRUE 1234s # }; 1234s # 1234s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1234s # { 1234s # &_good_types_property_info_good_property_type.parent_struct, 1234s # NULL 1234s # }; 1234s # 1234s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1234s # { 1234s # { 1234s # -1, 1234s # (gchar *) "GoodTypes", 1234s # NULL, 1234s # NULL, 1234s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1234s # NULL 1234s # }, 1234s # "good-types", 1234s # }; 1234s # 1234s # 1234s # /** 1234s # * good_types_interface_info: 1234s # * 1234s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1234s # * 1234s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1234s # */ 1234s # GDBusInterfaceInfo * 1234s # good_types_interface_info (void) 1234s # { 1234s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1234s # } 1234s # 1234s # /** 1234s # * good_types_override_properties: 1234s # * @klass: The class structure for a #GObject derived class. 1234s # * @property_id_begin: The property id to assign to the first overridden property. 1234s # * 1234s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1234s # * The properties are overridden in the order they are defined. 1234s # * 1234s # * Returns: The last property id. 1234s # */ 1234s # guint 1234s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1234s # { 1234s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1234s # return property_id_begin - 1; 1234s # } 1234s # 1234s # 1234s # 1234s # /** 1234s # * GoodTypes: 1234s # * 1234s # * Abstract interface type for the D-Bus interface GoodTypes. 1234s # */ 1234s # 1234s # /** 1234s # * GoodTypesIface: 1234s # * @parent_iface: The parent interface. 1234s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1234s # * 1234s # * Virtual table for the D-Bus interface GoodTypes. 1234s # */ 1234s # 1234s # typedef GoodTypesIface GoodTypesInterface; 1234s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1234s # 1234s # static void 1234s # good_types_default_init (GoodTypesIface *iface) 1234s # { 1234s # /* GObject properties for D-Bus properties: */ 1234s # /** 1234s # * GoodTypes:good-property-type: 1234s # * 1234s # * Represents the D-Bus property "GoodPropertyType". 1234s # * 1234s # * 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. 1234s # */ 1234s # g_object_interface_install_property (iface, 1234s # 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)); 1234s # } 1234s # 1234s # /** 1234s # * good_types_get_good_property_type: (skip) 1234s # * @object: A GoodTypes. 1234s # * 1234s # * Gets the value of the "GoodPropertyType" D-Bus property. 1234s # * 1234s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1234s # * 1234s # * 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. 1234s # * 1234s # * 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. 1234s # */ 1234s # GVariant * 1234s # good_types_get_good_property_type (GoodTypes *object) 1234s # { 1234s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1234s # 1234s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1234s # } 1234s # 1234s # /** 1234s # * good_types_dup_good_property_type: (skip) 1234s # * @object: A GoodTypes. 1234s # * 1234s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1234s # * 1234s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1234s # * 1234s # * 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(). 1234s # */ 1234s # GVariant * 1234s # good_types_dup_good_property_type (GoodTypes *object) 1234s # { 1234s # GVariant *value; 1234s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1234s # return value; 1234s # } 1234s # 1234s # /** 1234s # * good_types_set_good_property_type: (skip) 1234s # * @object: A GoodTypes. 1234s # * @value: The value to set. 1234s # * 1234s # * Sets the "GoodPropertyType" D-Bus property to @value. 1234s # * 1234s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1234s # */ 1234s # void 1234s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1234s # { 1234s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1234s # } 1234s # 1234s # /* ------------------------------------------------------------------------ */ 1234s # 1234s # /** 1234s # * GoodTypesProxy: 1234s # * 1234s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1234s # */ 1234s # 1234s # /** 1234s # * GoodTypesProxyClass: 1234s # * @parent_class: The parent class. 1234s # * 1234s # * Class structure for GoodTypesProxy. 1234s # */ 1234s # 1234s # struct _GoodTypesProxyPrivate 1234s # { 1234s # GData *qdata; 1234s # }; 1234s # 1234s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1234s # 1234s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1234s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1234s # G_ADD_PRIVATE (GoodTypesProxy) 1234s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1234s # 1234s # #else 1234s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1234s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1234s # 1234s # #endif 1234s # static void 1234s # good_types_proxy_finalize (GObject *object) 1234s # { 1234s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1234s # g_datalist_clear (&proxy->priv->qdata); 1234s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_get_property (GObject *object, 1234s # guint prop_id, 1234s # GValue *value, 1234s # GParamSpec *pspec G_GNUC_UNUSED) 1234s # { 1234s # const _ExtendedGDBusPropertyInfo *info; 1234s # GVariant *variant; 1234s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1234s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1234s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1234s # if (info->use_gvariant) 1234s # { 1234s # g_value_set_variant (value, variant); 1234s # } 1234s # else 1234s # { 1234s # if (variant != NULL) 1234s # g_dbus_gvariant_to_gvalue (variant, value); 1234s # } 1234s # if (variant != NULL) 1234s # g_variant_unref (variant); 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1234s # GAsyncResult *res, 1234s # gpointer user_data) 1234s # { 1234s # const _ExtendedGDBusPropertyInfo *info = user_data; 1234s # GError *error; 1234s # GVariant *_ret; 1234s # error = NULL; 1234s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1234s # if (!_ret) 1234s # { 1234s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1234s # info->parent_struct.name, 1234s # error->message, g_quark_to_string (error->domain), error->code); 1234s # g_error_free (error); 1234s # } 1234s # else 1234s # { 1234s # g_variant_unref (_ret); 1234s # } 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_set_property (GObject *object, 1234s # guint prop_id, 1234s # const GValue *value, 1234s # GParamSpec *pspec G_GNUC_UNUSED) 1234s # { 1234s # const _ExtendedGDBusPropertyInfo *info; 1234s # GVariant *variant; 1234s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1234s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1234s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1234s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1234s # "org.freedesktop.DBus.Properties.Set", 1234s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1234s # G_DBUS_CALL_FLAGS_NONE, 1234s # -1, 1234s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1234s # g_variant_unref (variant); 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_g_signal (GDBusProxy *proxy, 1234s # const gchar *sender_name G_GNUC_UNUSED, 1234s # const gchar *signal_name, 1234s # GVariant *parameters) 1234s # { 1234s # _ExtendedGDBusSignalInfo *info; 1234s # GVariantIter iter; 1234s # GVariant *child; 1234s # GValue *paramv; 1234s # gsize num_params; 1234s # gsize n; 1234s # guint signal_id; 1234s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1234s # if (info == NULL) 1234s # return; 1234s # num_params = g_variant_n_children (parameters); 1234s # paramv = g_new0 (GValue, num_params + 1); 1234s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1234s # g_value_set_object (¶mv[0], proxy); 1234s # g_variant_iter_init (&iter, parameters); 1234s # n = 1; 1234s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1234s # { 1234s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1234s # if (arg_info->use_gvariant) 1234s # { 1234s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1234s # g_value_set_variant (¶mv[n], child); 1234s # n++; 1234s # } 1234s # else 1234s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1234s # g_variant_unref (child); 1234s # } 1234s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1234s # g_signal_emitv (paramv, signal_id, 0, NULL); 1234s # for (n = 0; n < num_params + 1; n++) 1234s # g_value_unset (¶mv[n]); 1234s # g_free (paramv); 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1234s # GVariant *changed_properties, 1234s # const gchar *const *invalidated_properties) 1234s # { 1234s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1234s # guint n; 1234s # const gchar *key; 1234s # GVariantIter *iter; 1234s # _ExtendedGDBusPropertyInfo *info; 1234s # g_variant_get (changed_properties, "a{sv}", &iter); 1234s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1234s # { 1234s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1234s # g_datalist_remove_data (&proxy->priv->qdata, key); 1234s # if (info != NULL) 1234s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1234s # } 1234s # g_variant_iter_free (iter); 1234s # for (n = 0; invalidated_properties[n] != NULL; n++) 1234s # { 1234s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1234s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1234s # if (info != NULL) 1234s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1234s # } 1234s # } 1234s # 1234s # static GVariant * 1234s # good_types_proxy_get_good_property_type (GoodTypes *object) 1234s # { 1234s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1234s # GVariant *variant; 1234s # GVariant *value = NULL; 1234s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1234s # value = variant; 1234s # if (variant != NULL) 1234s # g_variant_unref (variant); 1234s # return value; 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_init (GoodTypesProxy *proxy) 1234s # { 1234s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1234s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1234s # #else 1234s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1234s # #endif 1234s # 1234s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1234s # { 1234s # GObjectClass *gobject_class; 1234s # GDBusProxyClass *proxy_class; 1234s # 1234s # gobject_class = G_OBJECT_CLASS (klass); 1234s # gobject_class->finalize = good_types_proxy_finalize; 1234s # gobject_class->get_property = good_types_proxy_get_property; 1234s # gobject_class->set_property = good_types_proxy_set_property; 1234s # 1234s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1234s # proxy_class->g_signal = good_types_proxy_g_signal; 1234s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1234s # 1234s # good_types_override_properties (gobject_class, 1); 1234s # 1234s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1234s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1234s # #endif 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_iface_init (GoodTypesIface *iface) 1234s # { 1234s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1234s # } 1234s # 1234s # /** 1234s # * good_types_proxy_new: 1234s # * @connection: A #GDBusConnection. 1234s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1234s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1234s # * @object_path: An object path. 1234s # * @cancellable: (nullable): A #GCancellable or %NULL. 1234s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1234s # * @user_data: User data to pass to @callback. 1234s # * 1234s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1234s # * 1234s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1234s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1234s # * 1234s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1234s # */ 1234s # void 1234s # good_types_proxy_new ( 1234s # GDBusConnection *connection, 1234s # GDBusProxyFlags flags, 1234s # const gchar *name, 1234s # const gchar *object_path, 1234s # GCancellable *cancellable, 1234s # GAsyncReadyCallback callback, 1234s # gpointer user_data) 1234s # { 1234s # 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); 1234s # } 1234s # 1234s # /** 1234s # * good_types_proxy_new_finish: 1234s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1234s # * @error: Return location for error or %NULL 1234s # * 1234s # * Finishes an operation started with good_types_proxy_new(). 1234s # * 1234s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1234s # */ 1234s # GoodTypes * 1234s # good_types_proxy_new_finish ( 1234s # GAsyncResult *res, 1234s # GError **error) 1234s # { 1234s # GObject *ret; 1234s # GObject *source_object; 1234s # source_object = g_async_result_get_source_object (res); 1234s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1234s # g_object_unref (source_object); 1234s # if (ret != NULL) 1234s # return GOOD_TYPES (ret); 1234s # else 1234s # return NULL; 1234s # } 1234s # 1234s # /** 1234s # * good_types_proxy_new_sync: 1234s # * @connection: A #GDBusConnection. 1234s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1234s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1234s # * @object_path: An object path. 1234s # * @cancellable: (nullable): A #GCancellable or %NULL. 1234s # * @error: Return location for error or %NULL 1234s # * 1234s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1234s # * 1234s # * The calling thread is blocked until a reply is received. 1234s # * 1234s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1234s # * 1234s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1234s # */ 1234s # GoodTypes * 1234s # good_types_proxy_new_sync ( 1234s # GDBusConnection *connection, 1234s # GDBusProxyFlags flags, 1234s # const gchar *name, 1234s # const gchar *object_path, 1234s # GCancellable *cancellable, 1234s # GError **error) 1234s # { 1234s # GInitable *ret; 1234s # 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); 1234s # if (ret != NULL) 1234s # return GOOD_TYPES (ret); 1234s # else 1234s # return NULL; 1234s # } 1234s # 1234s # 1234s # /** 1234s # * good_types_proxy_new_for_bus: 1234s # * @bus_type: A #GBusType. 1234s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1234s # * @name: A bus name (well-known or unique). 1234s # * @object_path: An object path. 1234s # * @cancellable: (nullable): A #GCancellable or %NULL. 1234s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1234s # * @user_data: User data to pass to @callback. 1234s # * 1234s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1234s # * 1234s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1234s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1234s # * 1234s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1234s # */ 1234s # void 1234s # good_types_proxy_new_for_bus ( 1234s # GBusType bus_type, 1234s # GDBusProxyFlags flags, 1234s # const gchar *name, 1234s # const gchar *object_path, 1234s # GCancellable *cancellable, 1234s # GAsyncReadyCallback callback, 1234s # gpointer user_data) 1234s # { 1234s # 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); 1234s # } 1234s # 1234s # /** 1234s # * good_types_proxy_new_for_bus_finish: 1234s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1234s # * @error: Return location for error or %NULL 1234s # * 1234s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1234s # * 1234s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1234s # */ 1234s # GoodTypes * 1234s # good_types_proxy_new_for_bus_finish ( 1234s # GAsyncResult *res, 1234s # GError **error) 1234s # { 1234s # GObject *ret; 1234s # GObject *source_object; 1234s # source_object = g_async_result_get_source_object (res); 1234s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1234s # g_object_unref (source_object); 1234s # if (ret != NULL) 1234s # return GOOD_TYPES (ret); 1234s # else 1234s # return NULL; 1234s # } 1234s # 1234s # /** 1234s # * good_types_proxy_new_for_bus_sync: 1234s # * @bus_type: A #GBusType. 1234s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1234s # * @name: A bus name (well-known or unique). 1234s # * @object_path: An object path. 1234s # * @cancellable: (nullable): A #GCancellable or %NULL. 1234s # * @error: Return location for error or %NULL 1234s # * 1234s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1234s # * 1234s # * The calling thread is blocked until a reply is received. 1234s # * 1234s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1234s # * 1234s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1234s # */ 1234s # GoodTypes * 1234s # good_types_proxy_new_for_bus_sync ( 1234s # GBusType bus_type, 1234s # GDBusProxyFlags flags, 1234s # const gchar *name, 1234s # const gchar *object_path, 1234s # GCancellable *cancellable, 1234s # GError **error) 1234s # { 1234s # GInitable *ret; 1234s # 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); 1234s # if (ret != NULL) 1234s # return GOOD_TYPES (ret); 1234s # else 1234s # return NULL; 1234s # } 1234s # 1234s # 1234s # /* ------------------------------------------------------------------------ */ 1234s # 1234s # /** 1234s # * GoodTypesSkeleton: 1234s # * 1234s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1234s # */ 1234s # 1234s # /** 1234s # * GoodTypesSkeletonClass: 1234s # * @parent_class: The parent class. 1234s # * 1234s # * Class structure for GoodTypesSkeleton. 1234s # */ 1234s # 1234s # struct _GoodTypesSkeletonPrivate 1234s # { 1234s # GValue *properties; 1234s # GList *changed_properties; 1234s # GSource *changed_properties_idle_source; 1234s # GMainContext *context; 1234s # GMutex lock; 1234s # }; 1234s # 1234s # static void 1234s # _good_types_skeleton_handle_method_call ( 1234s # GDBusConnection *connection G_GNUC_UNUSED, 1234s # const gchar *sender G_GNUC_UNUSED, 1234s # const gchar *object_path G_GNUC_UNUSED, 1234s # const gchar *interface_name, 1234s # const gchar *method_name, 1234s # GVariant *parameters, 1234s # GDBusMethodInvocation *invocation, 1234s # gpointer user_data) 1234s # { 1234s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1234s # _ExtendedGDBusMethodInfo *info; 1234s # GVariantIter iter; 1234s # GVariant *child; 1234s # GValue *paramv; 1234s # gsize num_params; 1234s # guint num_extra; 1234s # gsize n; 1234s # guint signal_id; 1234s # GValue return_value = G_VALUE_INIT; 1234s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1234s # g_assert (info != NULL); 1234s # num_params = g_variant_n_children (parameters); 1234s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1234s # n = 0; 1234s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1234s # g_value_set_object (¶mv[n++], skeleton); 1234s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1234s # g_value_set_object (¶mv[n++], invocation); 1234s # if (info->pass_fdlist) 1234s # { 1234s # #ifdef G_OS_UNIX 1234s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1234s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1234s # #else 1234s # g_assert_not_reached (); 1234s # #endif 1234s # } 1234s # g_variant_iter_init (&iter, parameters); 1234s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1234s # { 1234s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1234s # if (arg_info->use_gvariant) 1234s # { 1234s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1234s # g_value_set_variant (¶mv[n], child); 1234s # n++; 1234s # } 1234s # else 1234s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1234s # g_variant_unref (child); 1234s # } 1234s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1234s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1234s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1234s # if (!g_value_get_boolean (&return_value)) 1234s # 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); 1234s # g_value_unset (&return_value); 1234s # for (n = 0; n < num_params + num_extra; n++) 1234s # g_value_unset (¶mv[n]); 1234s # g_free (paramv); 1234s # } 1234s # 1234s # static GVariant * 1234s # _good_types_skeleton_handle_get_property ( 1234s # GDBusConnection *connection G_GNUC_UNUSED, 1234s # const gchar *sender G_GNUC_UNUSED, 1234s # const gchar *object_path G_GNUC_UNUSED, 1234s # const gchar *interface_name G_GNUC_UNUSED, 1234s # const gchar *property_name, 1234s # GError **error, 1234s # gpointer user_data) 1234s # { 1234s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1234s # GValue value = G_VALUE_INIT; 1234s # GParamSpec *pspec; 1234s # _ExtendedGDBusPropertyInfo *info; 1234s # GVariant *ret; 1234s # ret = NULL; 1234s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1234s # g_assert (info != NULL); 1234s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1234s # if (pspec == NULL) 1234s # { 1234s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1234s # } 1234s # else 1234s # { 1234s # g_value_init (&value, pspec->value_type); 1234s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1234s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1234s # g_value_unset (&value); 1234s # } 1234s # return ret; 1234s # } 1234s # 1234s # static gboolean 1234s # _good_types_skeleton_handle_set_property ( 1234s # GDBusConnection *connection G_GNUC_UNUSED, 1234s # const gchar *sender G_GNUC_UNUSED, 1234s # const gchar *object_path G_GNUC_UNUSED, 1234s # const gchar *interface_name G_GNUC_UNUSED, 1234s # const gchar *property_name, 1234s # GVariant *variant, 1234s # GError **error, 1234s # gpointer user_data) 1234s # { 1234s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1234s # GValue value = G_VALUE_INIT; 1234s # GParamSpec *pspec; 1234s # _ExtendedGDBusPropertyInfo *info; 1234s # gboolean ret; 1234s # ret = FALSE; 1234s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1234s # g_assert (info != NULL); 1234s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1234s # if (pspec == NULL) 1234s # { 1234s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1234s # } 1234s # else 1234s # { 1234s # if (info->use_gvariant) 1234s # g_value_set_variant (&value, variant); 1234s # else 1234s # g_dbus_gvariant_to_gvalue (variant, &value); 1234s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1234s # g_value_unset (&value); 1234s # ret = TRUE; 1234s # } 1234s # return ret; 1234s # } 1234s # 1234s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1234s # { 1234s # _good_types_skeleton_handle_method_call, 1234s # _good_types_skeleton_handle_get_property, 1234s # _good_types_skeleton_handle_set_property, 1234s # {NULL} 1234s # }; 1234s # 1234s # static GDBusInterfaceInfo * 1234s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1234s # { 1234s # return good_types_interface_info (); 1234s # } 1234s # 1234s # static GDBusInterfaceVTable * 1234s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1234s # { 1234s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1234s # } 1234s # 1234s # static GVariant * 1234s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1234s # { 1234s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1234s # 1234s # GVariantBuilder builder; 1234s # guint n; 1234s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1234s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1234s # #else 1234s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1234s # #endif 1234s # if (_good_types_interface_info.parent_struct.properties == NULL) 1234s # goto out; 1234s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1234s # { 1234s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1234s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1234s # { 1234s # GVariant *value; 1234s # 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); 1234s # if (value != NULL) 1234s # { 1234s # g_variant_take_ref (value); 1234s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1234s # g_variant_unref (value); 1234s # } 1234s # } 1234s # } 1234s # out: 1234s # return g_variant_builder_end (&builder); 1234s # } 1234s # 1234s # static gboolean _good_types_emit_changed (gpointer user_data); 1234s # 1234s # static void 1234s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1234s # { 1234s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1234s # gboolean emit_changed = FALSE; 1234s # 1234s # g_mutex_lock (&skeleton->priv->lock); 1234s # if (skeleton->priv->changed_properties_idle_source != NULL) 1234s # { 1234s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1234s # skeleton->priv->changed_properties_idle_source = NULL; 1234s # emit_changed = TRUE; 1234s # } 1234s # g_mutex_unlock (&skeleton->priv->lock); 1234s # 1234s # if (emit_changed) 1234s # _good_types_emit_changed (skeleton); 1234s # } 1234s # 1234s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1234s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1234s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1234s # G_ADD_PRIVATE (GoodTypesSkeleton) 1234s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1234s # 1234s # #else 1234s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1234s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1234s # 1234s # #endif 1234s # static void 1234s # good_types_skeleton_finalize (GObject *object) 1234s # { 1234s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1234s # guint n; 1234s # for (n = 0; n < 1; n++) 1234s # g_value_unset (&skeleton->priv->properties[n]); 1234s # g_free (skeleton->priv->properties); 1234s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1234s # if (skeleton->priv->changed_properties_idle_source != NULL) 1234s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1234s # g_main_context_unref (skeleton->priv->context); 1234s # g_mutex_clear (&skeleton->priv->lock); 1234s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1234s # } 1234s # 1234s # static void 1234s # good_types_skeleton_get_property (GObject *object, 1234s # guint prop_id, 1234s # GValue *value, 1234s # GParamSpec *pspec G_GNUC_UNUSED) 1234s # { 1234s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1234s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1234s # g_mutex_lock (&skeleton->priv->lock); 1234s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1234s # g_mutex_unlock (&skeleton->priv->lock); 1234s # } 1234s # 1234s # static gboolean 1234s # _good_types_emit_changed (gpointer user_data) 1234s # { 1234s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1234s # GList *l; 1234s # GVariantBuilder builder; 1234s # GVariantBuilder invalidated_builder; 1234s # guint num_changes; 1234s # 1234s # g_mutex_lock (&skeleton->priv->lock); 1234s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1234s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1234s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1234s # #else 1234s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1234s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1234s # #endif 1234s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1234s # { 1234s # ChangedProperty *cp = l->data; 1234s # GVariant *variant; 1234s # const GValue *cur_value; 1234s # 1234s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1234s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1234s # { 1234s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1234s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1234s # g_variant_unref (variant); 1234s # num_changes++; 1234s # } 1234s # } 1234s # if (num_changes > 0) 1234s # { 1234s # GList *connections, *ll; 1234s # GVariant *signal_variant; 1234s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1234s # &builder, &invalidated_builder)); 1234s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1234s # for (ll = connections; ll != NULL; ll = ll->next) 1234s # { 1234s # GDBusConnection *connection = ll->data; 1234s # 1234s # g_dbus_connection_emit_signal (connection, 1234s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1234s # "org.freedesktop.DBus.Properties", 1234s # "PropertiesChanged", 1234s # signal_variant, 1234s # NULL); 1234s # } 1234s # g_variant_unref (signal_variant); 1234s # g_list_free_full (connections, g_object_unref); 1234s # } 1234s # else 1234s # { 1234s # g_variant_builder_clear (&builder); 1234s # g_variant_builder_clear (&invalidated_builder); 1234s # } 1234s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1234s # skeleton->priv->changed_properties = NULL; 1234s # skeleton->priv->changed_properties_idle_source = NULL; 1234s # g_mutex_unlock (&skeleton->priv->lock); 1234s # return FALSE; 1234s # } 1234s # 1234s # static void 1234s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1234s # { 1234s # ChangedProperty *cp; 1234s # GList *l; 1234s # cp = NULL; 1234s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1234s # { 1234s # ChangedProperty *i_cp = l->data; 1234s # if (i_cp->info == info) 1234s # { 1234s # cp = i_cp; 1234s # break; 1234s # } 1234s # } 1234s # if (cp == NULL) 1234s # { 1234s # cp = g_new0 (ChangedProperty, 1); 1234s # cp->prop_id = prop_id; 1234s # cp->info = info; 1234s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1234s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1234s # g_value_copy (orig_value, &cp->orig_value); 1234s # } 1234s # } 1234s # 1234s # static void 1234s # good_types_skeleton_notify (GObject *object, 1234s # GParamSpec *pspec G_GNUC_UNUSED) 1234s # { 1234s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1234s # g_mutex_lock (&skeleton->priv->lock); 1234s # if (skeleton->priv->changed_properties != NULL && 1234s # skeleton->priv->changed_properties_idle_source == NULL) 1234s # { 1234s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1234s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1234s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1234s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1234s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1234s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1234s # } 1234s # g_mutex_unlock (&skeleton->priv->lock); 1234s # } 1234s # 1234s # static void 1234s # good_types_skeleton_set_property (GObject *object, 1234s # guint prop_id, 1234s # const GValue *value, 1234s # GParamSpec *pspec) 1234s # { 1234s # const _ExtendedGDBusPropertyInfo *info; 1234s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1234s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1234s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1234s # g_mutex_lock (&skeleton->priv->lock); 1234s # g_object_freeze_notify (object); 1234s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1234s # { 1234s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1234s # info->emits_changed_signal) 1234s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1234s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1234s # g_object_notify_by_pspec (object, pspec); 1234s # } 1234s # g_mutex_unlock (&skeleton->priv->lock); 1234s # g_object_thaw_notify (object); 1234s # } 1234s # 1234s # static void 1234s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1234s # { 1234s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1234s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1234s # #else 1234s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1234s # #endif 1234s # 1234s # g_mutex_init (&skeleton->priv->lock); 1234s # skeleton->priv->context = g_main_context_ref_thread_default (); 1234s # skeleton->priv->properties = g_new0 (GValue, 1); 1234s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1234s # } 1234s # 1234s # static GVariant * 1234s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1234s # { 1234s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1234s # GVariant *value; 1234s # g_mutex_lock (&skeleton->priv->lock); 1234s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1234s # g_mutex_unlock (&skeleton->priv->lock); 1234s # return value; 1234s # } 1234s # 1234s # static void 1234s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1234s # { 1234s # GObjectClass *gobject_class; 1234s # GDBusInterfaceSkeletonClass *skeleton_class; 1234s # 1234s # gobject_class = G_OBJECT_CLASS (klass); 1234s # gobject_class->finalize = good_types_skeleton_finalize; 1234s # gobject_class->get_property = good_types_skeleton_get_property; 1234s # gobject_class->set_property = good_types_skeleton_set_property; 1234s # gobject_class->notify = good_types_skeleton_notify; 1234s # 1234s # 1234s # good_types_override_properties (gobject_class, 1); 1234s # 1234s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1234s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1234s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1234s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1234s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1234s # 1234s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1234s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1234s # #endif 1234s # } 1234s # 1234s # static void 1234s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1234s # { 1234s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1234s # } 1234s # 1234s # /** 1234s # * good_types_skeleton_new: 1234s # * 1234s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1234s # * 1234s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1234s # */ 1234s # GoodTypes * 1234s # good_types_skeleton_new (void) 1234s # { 1234s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1234s # } 1234s # Error: 1234s # 1234s # /tmp/tmp94326_st/tmplk8x85lp.xml: 1234s # 1234s # 1234s # 1234s # 1234s # 1234s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmplk8x85lp.xml', '--output', '-', '--body'] 1234s # Return code: 0 1234s # Output: 1234s # /* 1234s # * This file is generated by gdbus-codegen, do not modify it. 1234s # * 1234s # * The license of this code is the same as for the D-Bus interface description 1234s # * it was derived from. Note that it links to GLib, so must comply with the 1234s # * LGPL linking clauses. 1234s # */ 1234s # 1234s # #ifdef HAVE_CONFIG_H 1234s # # include "config.h" 1234s # #endif 1234s # 1234s # #include 1234s # #ifdef G_OS_UNIX 1234s # # include 1234s # #endif 1234s # 1234s # #ifdef G_ENABLE_DEBUG 1234s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1234s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1234s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1234s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1234s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1234s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1234s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1234s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1234s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1234s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1234s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1234s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1234s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1234s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1234s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1234s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1234s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1234s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1234s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1234s # #else /* !G_ENABLE_DEBUG */ 1234s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1234s # * Do not access GValues directly in your code. Instead, use the 1234s # * g_value_get_*() functions 1234s # */ 1234s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1234s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1234s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1234s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1234s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1234s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1234s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1234s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1234s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1234s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1234s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1234s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1234s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1234s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1234s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1234s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1234s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1234s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1234s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1234s # #endif /* !G_ENABLE_DEBUG */ 1234s # 1234s # typedef struct 1234s # { 1234s # GDBusArgInfo parent_struct; 1234s # gboolean use_gvariant; 1234s # } _ExtendedGDBusArgInfo; 1234s # 1234s # typedef struct 1234s # { 1234s # GDBusMethodInfo parent_struct; 1234s # const gchar *signal_name; 1234s # gboolean pass_fdlist; 1234s # } _ExtendedGDBusMethodInfo; 1234s # 1234s # typedef struct 1234s # { 1234s # GDBusSignalInfo parent_struct; 1234s # const gchar *signal_name; 1234s # } _ExtendedGDBusSignalInfo; 1234s # 1234s # typedef struct 1234s # { 1234s # GDBusPropertyInfo parent_struct; 1234s # const gchar *hyphen_name; 1234s # guint use_gvariant : 1; 1234s # guint emits_changed_signal : 1; 1234s # } _ExtendedGDBusPropertyInfo; 1234s # 1234s # typedef struct 1234s # { 1234s # GDBusInterfaceInfo parent_struct; 1234s # const gchar *hyphen_name; 1234s # } _ExtendedGDBusInterfaceInfo; 1234s # 1234s # typedef struct 1234s # { 1234s # const _ExtendedGDBusPropertyInfo *info; 1234s # guint prop_id; 1234s # GValue orig_value; /* the value before the change */ 1234s # } ChangedProperty; 1234s # 1234s # static void 1234s # _changed_property_free (ChangedProperty *data) 1234s # { 1234s # g_value_unset (&data->orig_value); 1234s # g_free (data); 1234s # } 1234s # 1234s # static gboolean 1234s # _g_strv_equal0 (gchar **a, gchar **b) 1234s # { 1234s # gboolean ret = FALSE; 1234s # guint n; 1234s # if (a == NULL && b == NULL) 1234s # { 1234s # ret = TRUE; 1234s # goto out; 1234s # } 1234s # if (a == NULL || b == NULL) 1234s # goto out; 1234s # if (g_strv_length (a) != g_strv_length (b)) 1234s # goto out; 1234s # for (n = 0; a[n] != NULL; n++) 1234s # if (g_strcmp0 (a[n], b[n]) != 0) 1234s # goto out; 1234s # ret = TRUE; 1234s # out: 1234s # return ret; 1234s # } 1234s # 1234s # static gboolean 1234s # _g_variant_equal0 (GVariant *a, GVariant *b) 1234s # { 1234s # gboolean ret = FALSE; 1234s # if (a == NULL && b == NULL) 1234s # { 1234s # ret = TRUE; 1234s # goto out; 1234s # } 1234s # if (a == NULL || b == NULL) 1234s # goto out; 1234s # ret = g_variant_equal (a, b); 1234s # out: 1234s # return ret; 1234s # } 1234s # 1234s # G_GNUC_UNUSED static gboolean 1234s # _g_value_equal (const GValue *a, const GValue *b) 1234s # { 1234s # gboolean ret = FALSE; 1234s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1234s # switch (G_VALUE_TYPE (a)) 1234s # { 1234s # case G_TYPE_BOOLEAN: 1234s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1234s # break; 1234s # case G_TYPE_UCHAR: 1234s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1234s # break; 1234s # case G_TYPE_INT: 1234s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1234s # break; 1234s # case G_TYPE_UINT: 1234s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1234s # break; 1234s # case G_TYPE_INT64: 1234s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1234s # break; 1234s # case G_TYPE_UINT64: 1234s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1234s # break; 1234s # case G_TYPE_DOUBLE: 1234s # { 1234s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1234s # gdouble da = g_value_get_double (a); 1234s # gdouble db = g_value_get_double (b); 1234s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1234s # } 1234s # break; 1234s # case G_TYPE_STRING: 1234s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1234s # break; 1234s # case G_TYPE_VARIANT: 1234s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1234s # break; 1234s # default: 1234s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1234s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1234s # else 1234s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1234s # break; 1234s # } 1234s # return ret; 1234s # } 1234s # 1234s # /* ------------------------------------------------------------------------ 1234s # * Code for interface GoodTypes 1234s # * ------------------------------------------------------------------------ 1234s # */ 1234s # 1234s # /** 1234s # * SECTION:GoodTypes 1234s # * @title: GoodTypes 1234s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1234s # * 1234s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1234s # */ 1234s # 1234s # /* ---- Introspection data for GoodTypes ---- */ 1234s # 1234s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1234s # { 1234s # { 1234s # -1, 1234s # (gchar *) "GoodPropertyType", 1234s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 1234s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1234s # NULL 1234s # }, 1234s # "good-property-type", 1234s # FALSE, 1234s # TRUE 1234s # }; 1234s # 1234s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1234s # { 1234s # &_good_types_property_info_good_property_type.parent_struct, 1234s # NULL 1234s # }; 1234s # 1234s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1234s # { 1234s # { 1234s # -1, 1234s # (gchar *) "GoodTypes", 1234s # NULL, 1234s # NULL, 1234s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1234s # NULL 1234s # }, 1234s # "good-types", 1234s # }; 1234s # 1234s # 1234s # /** 1234s # * good_types_interface_info: 1234s # * 1234s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1234s # * 1234s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1234s # */ 1234s # GDBusInterfaceInfo * 1234s # good_types_interface_info (void) 1234s # { 1234s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1234s # } 1234s # 1234s # /** 1234s # * good_types_override_properties: 1234s # * @klass: The class structure for a #GObject derived class. 1234s # * @property_id_begin: The property id to assign to the first overridden property. 1234s # * 1234s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1234s # * The properties are overridden in the order they are defined. 1234s # * 1234s # * Returns: The last property id. 1234s # */ 1234s # guint 1234s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1234s # { 1234s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1234s # return property_id_begin - 1; 1234s # } 1234s # 1234s # 1234s # 1234s # /** 1234s # * GoodTypes: 1234s # * 1234s # * Abstract interface type for the D-Bus interface GoodTypes. 1234s # */ 1234s # 1234s # /** 1234s # * GoodTypesIface: 1234s # * @parent_iface: The parent interface. 1234s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1234s # * 1234s # * Virtual table for the D-Bus interface GoodTypes. 1234s # */ 1234s # 1234s # typedef GoodTypesIface GoodTypesInterface; 1234s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1234s # 1234s # static void 1234s # good_types_default_init (GoodTypesIface *iface) 1234s # { 1234s # /* GObject properties for D-Bus properties: */ 1234s # /** 1234s # * GoodTypes:good-property-type: 1234s # * 1234s # * Represents the D-Bus property "GoodPropertyType". 1234s # * 1234s # * 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. 1234s # */ 1234s # g_object_interface_install_property (iface, 1234s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1234s # } 1234s # 1234s # /** 1234s # * good_types_get_good_property_type: (skip) 1234s # * @object: A GoodTypes. 1234s # * 1234s # * Gets the value of the "GoodPropertyType" D-Bus property. 1234s # * 1234s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1234s # * 1234s # * 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. 1234s # * 1234s # * 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. 1234s # */ 1234s # GVariant * 1234s # good_types_get_good_property_type (GoodTypes *object) 1234s # { 1234s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1234s # 1234s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1234s # } 1234s # 1234s # /** 1234s # * good_types_dup_good_property_type: (skip) 1234s # * @object: A GoodTypes. 1234s # * 1234s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1234s # * 1234s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1234s # * 1234s # * 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(). 1234s # */ 1234s # GVariant * 1234s # good_types_dup_good_property_type (GoodTypes *object) 1234s # { 1234s # GVariant *value; 1234s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1234s # return value; 1234s # } 1234s # 1234s # /** 1234s # * good_types_set_good_property_type: (skip) 1234s # * @object: A GoodTypes. 1234s # * @value: The value to set. 1234s # * 1234s # * Sets the "GoodPropertyType" D-Bus property to @value. 1234s # * 1234s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1234s # */ 1234s # void 1234s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1234s # { 1234s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1234s # } 1234s # 1234s # /* ------------------------------------------------------------------------ */ 1234s # 1234s # /** 1234s # * GoodTypesProxy: 1234s # * 1234s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1234s # */ 1234s # 1234s # /** 1234s # * GoodTypesProxyClass: 1234s # * @parent_class: The parent class. 1234s # * 1234s # * Class structure for GoodTypesProxy. 1234s # */ 1234s # 1234s # struct _GoodTypesProxyPrivate 1234s # { 1234s # GData *qdata; 1234s # }; 1234s # 1234s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1234s # 1234s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1234s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1234s # G_ADD_PRIVATE (GoodTypesProxy) 1234s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1234s # 1234s # #else 1234s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1234s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1234s # 1234s # #endif 1234s # static void 1234s # good_types_proxy_finalize (GObject *object) 1234s # { 1234s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1234s # g_datalist_clear (&proxy->priv->qdata); 1234s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_get_property (GObject *object, 1234s # guint prop_id, 1234s # GValue *value, 1234s # GParamSpec *pspec G_GNUC_UNUSED) 1234s # { 1234s # const _ExtendedGDBusPropertyInfo *info; 1234s # GVariant *variant; 1234s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1234s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1234s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1234s # if (info->use_gvariant) 1234s # { 1234s # g_value_set_variant (value, variant); 1234s # } 1234s # else 1234s # { 1234s # if (variant != NULL) 1234s # g_dbus_gvariant_to_gvalue (variant, value); 1234s # } 1234s # if (variant != NULL) 1234s # g_variant_unref (variant); 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1234s # GAsyncResult *res, 1234s # gpointer user_data) 1234s # { 1234s # const _ExtendedGDBusPropertyInfo *info = user_data; 1234s # GError *error; 1234s # GVariant *_ret; 1234s # error = NULL; 1234s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1234s # if (!_ret) 1234s # { 1234s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1234s # info->parent_struct.name, 1234s # error->message, g_quark_to_string (error->domain), error->code); 1234s # g_error_free (error); 1234s # } 1234s # else 1234s # { 1234s # g_variant_unref (_ret); 1234s # } 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_set_property (GObject *object, 1234s # guint prop_id, 1234s # const GValue *value, 1234s # GParamSpec *pspec G_GNUC_UNUSED) 1234s # { 1234s # const _ExtendedGDBusPropertyInfo *info; 1234s # GVariant *variant; 1234s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1234s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1234s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1234s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1234s # "org.freedesktop.DBus.Properties.Set", 1234s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1234s # G_DBUS_CALL_FLAGS_NONE, 1234s # -1, 1234s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1234s # g_variant_unref (variant); 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_g_signal (GDBusProxy *proxy, 1234s # const gchar *sender_name G_GNUC_UNUSED, 1234s # const gchar *signal_name, 1234s # GVariant *parameters) 1234s # { 1234s # _ExtendedGDBusSignalInfo *info; 1234s # GVariantIter iter; 1234s # GVariant *child; 1234s # GValue *paramv; 1234s # gsize num_params; 1234s # gsize n; 1234s # guint signal_id; 1234s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1234s # if (info == NULL) 1234s # return; 1234s # num_params = g_variant_n_children (parameters); 1234s # paramv = g_new0 (GValue, num_params + 1); 1234s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1234s # g_value_set_object (¶mv[0], proxy); 1234s # g_variant_iter_init (&iter, parameters); 1234s # n = 1; 1234s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1234s # { 1234s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1234s # if (arg_info->use_gvariant) 1234s # { 1234s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1234s # g_value_set_variant (¶mv[n], child); 1234s # n++; 1234s # } 1234s # else 1234s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1234s # g_variant_unref (child); 1234s # } 1234s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1234s # g_signal_emitv (paramv, signal_id, 0, NULL); 1234s # for (n = 0; n < num_params + 1; n++) 1234s # g_value_unset (¶mv[n]); 1234s # g_free (paramv); 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1234s # GVariant *changed_properties, 1234s # const gchar *const *invalidated_properties) 1234s # { 1234s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1234s # guint n; 1234s # const gchar *key; 1234s # GVariantIter *iter; 1234s # _ExtendedGDBusPropertyInfo *info; 1234s # g_variant_get (changed_properties, "a{sv}", &iter); 1234s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1234s # { 1234s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1234s # g_datalist_remove_data (&proxy->priv->qdata, key); 1234s # if (info != NULL) 1234s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1234s # } 1234s # g_variant_iter_free (iter); 1234s # for (n = 0; invalidated_properties[n] != NULL; n++) 1234s # { 1234s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1234s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1234s # if (info != NULL) 1234s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1234s # } 1234s # } 1234s # 1234s # static GVariant * 1234s # good_types_proxy_get_good_property_type (GoodTypes *object) 1234s # { 1234s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1234s # GVariant *variant; 1234s # GVariant *value = NULL; 1234s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1234s # value = variant; 1234s # if (variant != NULL) 1234s # g_variant_unref (variant); 1234s # return value; 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_init (GoodTypesProxy *proxy) 1234s # { 1234s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1234s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1234s # #else 1234s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1234s # #endif 1234s # 1234s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1234s # { 1234s # GObjectClass *gobject_class; 1234s # GDBusProxyClass *proxy_class; 1234s # 1234s # gobject_class = G_OBJECT_CLASS (klass); 1234s # gobject_class->finalize = good_types_proxy_finalize; 1234s # gobject_class->get_property = good_types_proxy_get_property; 1234s # gobject_class->set_property = good_types_proxy_set_property; 1234s # 1234s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1234s # proxy_class->g_signal = good_types_proxy_g_signal; 1234s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1234s # 1234s # good_types_override_properties (gobject_class, 1); 1234s # 1234s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1234s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1234s # #endif 1234s # } 1234s # 1234s # static void 1234s # good_types_proxy_iface_init (GoodTypesIface *iface) 1234s # { 1234s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1234s # } 1234s # 1234s # /** 1234s # * good_types_proxy_new: 1234s # * @connection: A #GDBusConnection. 1234s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1234s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1234s # * @object_path: An object path. 1234s # * @cancellable: (nullable): A #GCancellable or %NULL. 1234s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1234s # * @user_data: User data to pass to @callback. 1234s # * 1234s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1234s # * 1234s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1234s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1234s # * 1234s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1234s # */ 1234s # void 1234s # good_types_proxy_new ( 1234s # GDBusConnection *connection, 1234s # GDBusProxyFlags flags, 1234s # const gchar *name, 1234s # const gchar *object_path, 1234s # GCancellable *cancellable, 1234s # GAsyncReadyCallback callback, 1234s # gpointer user_data) 1234s # { 1234s # 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); 1234s # } 1234s # 1234s # /** 1234s # * good_types_proxy_new_finish: 1234s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1234s # * @error: Return location for error or %NULL 1234s # * 1234s # * Finishes an operation started with good_types_proxy_new(). 1234s # * 1234s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1234s # */ 1234s # GoodTypes * 1234s # good_types_proxy_new_finish ( 1234s # GAsyncResult *res, 1234s # GError **error) 1234s # { 1234s # GObject *ret; 1234s # GObject *source_object; 1234s # source_object = g_async_result_get_source_object (res); 1234s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1234s # g_object_unref (source_object); 1234s # if (ret != NULL) 1234s # return GOOD_TYPES (ret); 1234s # else 1234s # return NULL; 1234s # } 1234s # 1234s # /** 1234s # * good_types_proxy_new_sync: 1234s # * @connection: A #GDBusConnection. 1234s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1234s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1234s # * @object_path: An object path. 1234s # * @cancellable: (nullable): A #GCancellable or %NULL. 1234s # * @error: Return location for error or %NULL 1234s # * 1234s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1234s # * 1234s # * The calling thread is blocked until a reply is received. 1234s # * 1234s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1234s # * 1234s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1234s # */ 1234s # GoodTypes * 1234s # good_types_proxy_new_sync ( 1234s # GDBusConnection *connection, 1234s # GDBusProxyFlags flags, 1234s # const gchar *name, 1234s # const gchar *object_path, 1234s # GCancellable *cancellable, 1234s # GError **error) 1234s # { 1234s # GInitable *ret; 1234s # 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); 1234s # if (ret != NULL) 1234s # return GOOD_TYPES (ret); 1234s # else 1234s # return NULL; 1234s # } 1234s # 1234s # 1234s # /** 1234s # * good_types_proxy_new_for_bus: 1234s # * @bus_type: A #GBusType. 1234s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1234s # * @name: A bus name (well-known or unique). 1234s # * @object_path: An object path. 1234s # * @cancellable: (nullable): A #GCancellable or %NULL. 1234s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1234s # * @user_data: User data to pass to @callback. 1234s # * 1234s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1234s # * 1234s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1234s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1234s # * 1234s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1234s # */ 1234s # void 1234s # good_types_proxy_new_for_bus ( 1234s # GBusType bus_type, 1234s # GDBusProxyFlags flags, 1234s # const gchar *name, 1234s # const gchar *object_path, 1234s # GCancellable *cancellable, 1234s # GAsyncReadyCallback callback, 1234s # gpointer user_data) 1234s # { 1234s # 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); 1234s # } 1234s # 1234s # /** 1234s # * good_types_proxy_new_for_bus_finish: 1234s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1234s # * @error: Return location for error or %NULL 1234s # * 1234s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1234s # * 1234s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1234s # */ 1234s # GoodTypes * 1234s # good_types_proxy_new_for_bus_finish ( 1234s # GAsyncResult *res, 1234s # GError **error) 1234s # { 1234s # GObject *ret; 1234s # GObject *source_object; 1234s # source_object = g_async_result_get_source_object (res); 1234s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1234s # g_object_unref (source_object); 1234s # if (ret != NULL) 1234s # return GOOD_TYPES (ret); 1234s # else 1234s # return NULL; 1234s # } 1234s # 1234s # /** 1234s # * good_types_proxy_new_for_bus_sync: 1234s # * @bus_type: A #GBusType. 1234s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1234s # * @name: A bus name (well-known or unique). 1234s # * @object_path: An object path. 1234s # * @cancellable: (nullable): A #GCancellable or %NULL. 1234s # * @error: Return location for error or %NULL 1234s # * 1234s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1234s # * 1234s # * The calling thread is blocked until a reply is received. 1234s # * 1234s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1234s # * 1234s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1234s # */ 1234s # GoodTypes * 1234s # good_types_proxy_new_for_bus_sync ( 1234s # GBusType bus_type, 1234s # GDBusProxyFlags flags, 1234s # const gchar *name, 1234s # const gchar *object_path, 1234s # GCancellable *cancellable, 1234s # GError **error) 1234s # { 1234s # GInitable *ret; 1234s # 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); 1234s # if (ret != NULL) 1234s # return GOOD_TYPES (ret); 1234s # else 1234s # return NULL; 1234s # } 1234s # 1234s # 1234s # /* ------------------------------------------------------------------------ */ 1234s # 1234s # /** 1234s # * GoodTypesSkeleton: 1234s # * 1234s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1234s # */ 1234s # 1234s # /** 1234s # * GoodTypesSkeletonClass: 1234s # * @parent_class: The parent class. 1234s # * 1234s # * Class structure for GoodTypesSkeleton. 1234s # */ 1234s # 1234s # struct _GoodTypesSkeletonPrivate 1234s # { 1234s # GValue *properties; 1234s # GList *changed_properties; 1234s # GSource *changed_properties_idle_source; 1234s # GMainContext *context; 1234s # GMutex lock; 1234s # }; 1234s # 1234s # static void 1234s # _good_types_skeleton_handle_method_call ( 1234s # GDBusConnection *connection G_GNUC_UNUSED, 1234s # const gchar *sender G_GNUC_UNUSED, 1234s # const gchar *object_path G_GNUC_UNUSED, 1234s # const gchar *interface_name, 1234s # const gchar *method_name, 1234s # GVariant *parameters, 1234s # GDBusMethodInvocation *invocation, 1234s # gpointer user_data) 1234s # { 1234s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1234s # _ExtendedGDBusMethodInfo *info; 1234s # GVariantIter iter; 1234s # GVariant *child; 1234s # GValue *paramv; 1234s # gsize num_params; 1234s # guint num_extra; 1234s # gsize n; 1234s # guint signal_id; 1234s # GValue return_value = G_VALUE_INIT; 1234s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1234s # g_assert (info != NULL); 1234s # num_params = g_variant_n_children (parameters); 1234s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1234s # n = 0; 1234s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1234s # g_value_set_object (¶mv[n++], skeleton); 1234s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1234s # g_value_set_object (¶mv[n++], invocation); 1234s # if (info->pass_fdlist) 1234s # { 1234s # #ifdef G_OS_UNIX 1234s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1234s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1234s # #else 1234s # g_assert_not_reached (); 1234s # #endif 1234s # } 1234s # g_variant_iter_init (&iter, parameters); 1234s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1234s # { 1234s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1234s # if (arg_info->use_gvariant) 1234s # { 1234s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1234s # g_value_set_variant (¶mv[n], child); 1234s # n++; 1234s # } 1234s # else 1234s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1234s # g_variant_unref (child); 1234s # } 1234s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1234s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1234s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1234s # if (!g_value_get_boolean (&return_value)) 1234s # 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); 1234s # g_value_unset (&return_value); 1234s # for (n = 0; n < num_params + num_extra; n++) 1234s # g_value_unset (¶mv[n]); 1234s # g_free (paramv); 1234s # } 1234s # 1234s # static GVariant * 1234s # _good_types_skeleton_handle_get_property ( 1235s # GDBusConnection *connection G_GNUC_UNUSED, 1235s # const gchar *sender G_GNUC_UNUSED, 1235s # const gchar *object_path G_GNUC_UNUSED, 1235s # const gchar *interface_name G_GNUC_UNUSED, 1235s # const gchar *property_name, 1235s # GError **error, 1235s # gpointer user_data) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1235s # GValue value = G_VALUE_INIT; 1235s # GParamSpec *pspec; 1235s # _ExtendedGDBusPropertyInfo *info; 1235s # GVariant *ret; 1235s # ret = NULL; 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1235s # g_assert (info != NULL); 1235s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1235s # if (pspec == NULL) 1235s # { 1235s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1235s # } 1235s # else 1235s # { 1235s # g_value_init (&value, pspec->value_type); 1235s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1235s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1235s # g_value_unset (&value); 1235s # } 1235s # return ret; 1235s # } 1235s # 1235s # static gboolean 1235s # _good_types_skeleton_handle_set_property ( 1235s # GDBusConnection *connection G_GNUC_UNUSED, 1235s # const gchar *sender G_GNUC_UNUSED, 1235s # const gchar *object_path G_GNUC_UNUSED, 1235s # const gchar *interface_name G_GNUC_UNUSED, 1235s # const gchar *property_name, 1235s # GVariant *variant, 1235s # GError **error, 1235s # gpointer user_data) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1235s # GValue value = G_VALUE_INIT; 1235s # GParamSpec *pspec; 1235s # _ExtendedGDBusPropertyInfo *info; 1235s # gboolean ret; 1235s # ret = FALSE; 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1235s # g_assert (info != NULL); 1235s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1235s # if (pspec == NULL) 1235s # { 1235s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1235s # } 1235s # else 1235s # { 1235s # if (info->use_gvariant) 1235s # g_value_set_variant (&value, variant); 1235s # else 1235s # g_dbus_gvariant_to_gvalue (variant, &value); 1235s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1235s # g_value_unset (&value); 1235s # ret = TRUE; 1235s # } 1235s # return ret; 1235s # } 1235s # 1235s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1235s # { 1235s # _good_types_skeleton_handle_method_call, 1235s # _good_types_skeleton_handle_get_property, 1235s # _good_types_skeleton_handle_set_property, 1235s # {NULL} 1235s # }; 1235s # 1235s # static GDBusInterfaceInfo * 1235s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1235s # { 1235s # return good_types_interface_info (); 1235s # } 1235s # 1235s # static GDBusInterfaceVTable * 1235s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1235s # { 1235s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1235s # } 1235s # 1235s # static GVariant * 1235s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1235s # 1235s # GVariantBuilder builder; 1235s # guint n; 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1235s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1235s # #else 1235s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1235s # #endif 1235s # if (_good_types_interface_info.parent_struct.properties == NULL) 1235s # goto out; 1235s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1235s # { 1235s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1235s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1235s # { 1235s # GVariant *value; 1235s # 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); 1235s # if (value != NULL) 1235s # { 1235s # g_variant_take_ref (value); 1235s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1235s # g_variant_unref (value); 1235s # } 1235s # } 1235s # } 1235s # out: 1235s # return g_variant_builder_end (&builder); 1235s # } 1235s # 1235s # static gboolean _good_types_emit_changed (gpointer user_data); 1235s # 1235s # static void 1235s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1235s # gboolean emit_changed = FALSE; 1235s # 1235s # g_mutex_lock (&skeleton->priv->lock); 1235s # if (skeleton->priv->changed_properties_idle_source != NULL) 1235s # { 1235s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1235s # skeleton->priv->changed_properties_idle_source = NULL; 1235s # emit_changed = TRUE; 1235s # } 1235s # g_mutex_unlock (&skeleton->priv->lock); 1235s # 1235s # if (emit_changed) 1235s # _good_types_emit_changed (skeleton); 1235s # } 1235s # 1235s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1235s # G_ADD_PRIVATE (GoodTypesSkeleton) 1235s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1235s # 1235s # #else 1235s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1235s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1235s # 1235s # #endif 1235s # static void 1235s # good_types_skeleton_finalize (GObject *object) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1235s # guint n; 1235s # for (n = 0; n < 1; n++) 1235s # g_value_unset (&skeleton->priv->properties[n]); 1235s # g_free (skeleton->priv->properties); 1235s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1235s # if (skeleton->priv->changed_properties_idle_source != NULL) 1235s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1235s # g_main_context_unref (skeleton->priv->context); 1235s # g_mutex_clear (&skeleton->priv->lock); 1235s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1235s # } 1235s # 1235s # static void 1235s # good_types_skeleton_get_property (GObject *object, 1235s # guint prop_id, 1235s # GValue *value, 1235s # GParamSpec *pspec G_GNUC_UNUSED) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1235s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1235s # g_mutex_lock (&skeleton->priv->lock); 1235s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1235s # g_mutex_unlock (&skeleton->priv->lock); 1235s # } 1235s # 1235s # static gboolean 1235s # _good_types_emit_changed (gpointer user_data) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1235s # GList *l; 1235s # GVariantBuilder builder; 1235s # GVariantBuilder invalidated_builder; 1235s # guint num_changes; 1235s # 1235s # g_mutex_lock (&skeleton->priv->lock); 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1235s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1235s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1235s # #else 1235s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1235s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1235s # #endif 1235s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1235s # { 1235s # ChangedProperty *cp = l->data; 1235s # GVariant *variant; 1235s # const GValue *cur_value; 1235s # 1235s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1235s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1235s # { 1235s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1235s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1235s # g_variant_unref (variant); 1235s # num_changes++; 1235s # } 1235s # } 1235s # if (num_changes > 0) 1235s # { 1235s # GList *connections, *ll; 1235s # GVariant *signal_variant; 1235s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1235s # &builder, &invalidated_builder)); 1235s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1235s # for (ll = connections; ll != NULL; ll = ll->next) 1235s # { 1235s # GDBusConnection *connection = ll->data; 1235s # 1235s # g_dbus_connection_emit_signal (connection, 1235s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1235s # "org.freedesktop.DBus.Properties", 1235s # "PropertiesChanged", 1235s # signal_variant, 1235s # NULL); 1235s # } 1235s # g_variant_unref (signal_variant); 1235s # g_list_free_full (connections, g_object_unref); 1235s # } 1235s # else 1235s # { 1235s # g_variant_builder_clear (&builder); 1235s # g_variant_builder_clear (&invalidated_builder); 1235s # } 1235s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1235s # skeleton->priv->changed_properties = NULL; 1235s # skeleton->priv->changed_properties_idle_source = NULL; 1235s # g_mutex_unlock (&skeleton->priv->lock); 1235s # return FALSE; 1235s # } 1235s # 1235s # static void 1235s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1235s # { 1235s # ChangedProperty *cp; 1235s # GList *l; 1235s # cp = NULL; 1235s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1235s # { 1235s # ChangedProperty *i_cp = l->data; 1235s # if (i_cp->info == info) 1235s # { 1235s # cp = i_cp; 1235s # break; 1235s # } 1235s # } 1235s # if (cp == NULL) 1235s # { 1235s # cp = g_new0 (ChangedProperty, 1); 1235s # cp->prop_id = prop_id; 1235s # cp->info = info; 1235s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1235s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1235s # g_value_copy (orig_value, &cp->orig_value); 1235s # } 1235s # } 1235s # 1235s # static void 1235s # good_types_skeleton_notify (GObject *object, 1235s # GParamSpec *pspec G_GNUC_UNUSED) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1235s # g_mutex_lock (&skeleton->priv->lock); 1235s # if (skeleton->priv->changed_properties != NULL && 1235s # skeleton->priv->changed_properties_idle_source == NULL) 1235s # { 1235s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1235s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1235s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1235s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1235s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1235s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1235s # } 1235s # g_mutex_unlock (&skeleton->priv->lock); 1235s # } 1235s # 1235s # static void 1235s # good_types_skeleton_set_property (GObject *object, 1235s # guint prop_id, 1235s # const GValue *value, 1235s # GParamSpec *pspec) 1235s # { 1235s # const _ExtendedGDBusPropertyInfo *info; 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1235s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1235s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1235s # g_mutex_lock (&skeleton->priv->lock); 1235s # g_object_freeze_notify (object); 1235s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1235s # { 1235s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1235s # info->emits_changed_signal) 1235s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1235s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1235s # g_object_notify_by_pspec (object, pspec); 1235s # } 1235s # g_mutex_unlock (&skeleton->priv->lock); 1235s # g_object_thaw_notify (object); 1235s # } 1235s # 1235s # static void 1235s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1235s # { 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1235s # #else 1235s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1235s # #endif 1235s # 1235s # g_mutex_init (&skeleton->priv->lock); 1235s # skeleton->priv->context = g_main_context_ref_thread_default (); 1235s # skeleton->priv->properties = g_new0 (GValue, 1); 1235s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1235s # } 1235s # 1235s # static GVariant * 1235s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1235s # GVariant *value; 1235s # g_mutex_lock (&skeleton->priv->lock); 1235s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1235s # g_mutex_unlock (&skeleton->priv->lock); 1235s # return value; 1235s # } 1235s # 1235s # static void 1235s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1235s # { 1235s # GObjectClass *gobject_class; 1235s # GDBusInterfaceSkeletonClass *skeleton_class; 1235s # 1235s # gobject_class = G_OBJECT_CLASS (klass); 1235s # gobject_class->finalize = good_types_skeleton_finalize; 1235s # gobject_class->get_property = good_types_skeleton_get_property; 1235s # gobject_class->set_property = good_types_skeleton_set_property; 1235s # gobject_class->notify = good_types_skeleton_notify; 1235s # 1235s # 1235s # good_types_override_properties (gobject_class, 1); 1235s # 1235s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1235s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1235s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1235s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1235s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1235s # 1235s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1235s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1235s # #endif 1235s # } 1235s # 1235s # static void 1235s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1235s # { 1235s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1235s # } 1235s # 1235s # /** 1235s # * good_types_skeleton_new: 1235s # * 1235s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1235s # * 1235s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1235s # */ 1235s # GoodTypes * 1235s # good_types_skeleton_new (void) 1235s # { 1235s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1235s # } 1235s # Error: 1235s # 1235s # /tmp/tmp94326_st/tmpo37tcxud.xml: 1235s # 1235s # 1235s # 1235s # 1235s # 1235s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp94326_st/tmpo37tcxud.xml', '--output', '-', '--body'] 1235s # Return code: 0 1235s # Output: 1235s # /* 1235s # * This file is generated by gdbus-codegen, do not modify it. 1235s # * 1235s # * The license of this code is the same as for the D-Bus interface description 1235s # * it was derived from. Note that it links to GLib, so must comply with the 1235s # * LGPL linking clauses. 1235s # */ 1235s # 1235s # #ifdef HAVE_CONFIG_H 1235s # # include "config.h" 1235s # #endif 1235s # 1235s # #include 1235s # #ifdef G_OS_UNIX 1235s # # include 1235s # #endif 1235s # 1235s # #ifdef G_ENABLE_DEBUG 1235s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1235s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1235s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1235s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1235s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1235s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1235s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1235s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1235s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1235s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1235s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1235s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1235s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1235s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1235s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1235s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1235s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1235s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1235s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1235s # #else /* !G_ENABLE_DEBUG */ 1235s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1235s # * Do not access GValues directly in your code. Instead, use the 1235s # * g_value_get_*() functions 1235s # */ 1235s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1235s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1235s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1235s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1235s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1235s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1235s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1235s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1235s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1235s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1235s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1235s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1235s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1235s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1235s # #endif /* !G_ENABLE_DEBUG */ 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusArgInfo parent_struct; 1235s # gboolean use_gvariant; 1235s # } _ExtendedGDBusArgInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusMethodInfo parent_struct; 1235s # const gchar *signal_name; 1235s # gboolean pass_fdlist; 1235s # } _ExtendedGDBusMethodInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusSignalInfo parent_struct; 1235s # const gchar *signal_name; 1235s # } _ExtendedGDBusSignalInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusPropertyInfo parent_struct; 1235s # const gchar *hyphen_name; 1235s # guint use_gvariant : 1; 1235s # guint emits_changed_signal : 1; 1235s # } _ExtendedGDBusPropertyInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusInterfaceInfo parent_struct; 1235s # const gchar *hyphen_name; 1235s # } _ExtendedGDBusInterfaceInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # const _ExtendedGDBusPropertyInfo *info; 1235s # guint prop_id; 1235s # GValue orig_value; /* the value before the change */ 1235s # } ChangedProperty; 1235s # 1235s # static void 1235s # _changed_property_free (ChangedProperty *data) 1235s # { 1235s # g_value_unset (&data->orig_value); 1235s # g_free (data); 1235s # } 1235s # 1235s # static gboolean 1235s # _g_strv_equal0 (gchar **a, gchar **b) 1235s # { 1235s # gboolean ret = FALSE; 1235s # guint n; 1235s # if (a == NULL && b == NULL) 1235s # { 1235s # ret = TRUE; 1235s # goto out; 1235s # } 1235s # if (a == NULL || b == NULL) 1235s # goto out; 1235s # if (g_strv_length (a) != g_strv_length (b)) 1235s # goto out; 1235s # for (n = 0; a[n] != NULL; n++) 1235s # if (g_strcmp0 (a[n], b[n]) != 0) 1235s # goto out; 1235s # ret = TRUE; 1235s # out: 1235s # return ret; 1235s # } 1235s # 1235s # static gboolean 1235s # _g_variant_equal0 (GVariant *a, GVariant *b) 1235s # { 1235s # gboolean ret = FALSE; 1235s # if (a == NULL && b == NULL) 1235s # { 1235s # ret = TRUE; 1235s # goto out; 1235s # } 1235s # if (a == NULL || b == NULL) 1235s # goto out; 1235s # ret = g_variant_equal (a, b); 1235s # out: 1235s # return ret; 1235s # } 1235s # 1235s # G_GNUC_UNUSED static gboolean 1235s # _g_value_equal (const GValue *a, const GValue *b) 1235s # { 1235s # gboolean ret = FALSE; 1235s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1235s # switch (G_VALUE_TYPE (a)) 1235s # { 1235s # case G_TYPE_BOOLEAN: 1235s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1235s # break; 1235s # case G_TYPE_UCHAR: 1235s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1235s # break; 1235s # case G_TYPE_INT: 1235s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1235s # break; 1235s # case G_TYPE_UINT: 1235s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1235s # break; 1235s # case G_TYPE_INT64: 1235s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1235s # break; 1235s # case G_TYPE_UINT64: 1235s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1235s # break; 1235s # case G_TYPE_DOUBLE: 1235s # { 1235s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1235s # gdouble da = g_value_get_double (a); 1235s # gdouble db = g_value_get_double (b); 1235s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1235s # } 1235s # break; 1235s # case G_TYPE_STRING: 1235s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1235s # break; 1235s # case G_TYPE_VARIANT: 1235s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1235s # break; 1235s # default: 1235s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1235s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1235s # else 1235s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1235s # break; 1235s # } 1235s # return ret; 1235s # } 1235s # 1235s # /* ------------------------------------------------------------------------ 1235s # * Code for interface GoodTypes 1235s # * ------------------------------------------------------------------------ 1235s # */ 1235s # 1235s # /** 1235s # * SECTION:GoodTypes 1235s # * @title: GoodTypes 1235s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1235s # * 1235s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1235s # */ 1235s # 1235s # /* ---- Introspection data for GoodTypes ---- */ 1235s # 1235s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1235s # { 1235s # { 1235s # -1, 1235s # (gchar *) "GoodPropertyType", 1235s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 1235s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1235s # NULL 1235s # }, 1235s # "good-property-type", 1235s # FALSE, 1235s # TRUE 1235s # }; 1235s # 1235s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1235s # { 1235s # &_good_types_property_info_good_property_type.parent_struct, 1235s # NULL 1235s # }; 1235s # 1235s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1235s # { 1235s # { 1235s # -1, 1235s # (gchar *) "GoodTypes", 1235s # NULL, 1235s # NULL, 1235s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1235s # NULL 1235s # }, 1235s # "good-types", 1235s # }; 1235s # 1235s # 1235s # /** 1235s # * good_types_interface_info: 1235s # * 1235s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1235s # * 1235s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1235s # */ 1235s # GDBusInterfaceInfo * 1235s # good_types_interface_info (void) 1235s # { 1235s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1235s # } 1235s # 1235s # /** 1235s # * good_types_override_properties: 1235s # * @klass: The class structure for a #GObject derived class. 1235s # * @property_id_begin: The property id to assign to the first overridden property. 1235s # * 1235s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1235s # * The properties are overridden in the order they are defined. 1235s # * 1235s # * Returns: The last property id. 1235s # */ 1235s # guint 1235s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1235s # { 1235s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1235s # return property_id_begin - 1; 1235s # } 1235s # 1235s # 1235s # 1235s # /** 1235s # * GoodTypes: 1235s # * 1235s # * Abstract interface type for the D-Bus interface GoodTypes. 1235s # */ 1235s # 1235s # /** 1235s # * GoodTypesIface: 1235s # * @parent_iface: The parent interface. 1235s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1235s # * 1235s # * Virtual table for the D-Bus interface GoodTypes. 1235s # */ 1235s # 1235s # typedef GoodTypesIface GoodTypesInterface; 1235s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1235s # 1235s # static void 1235s # good_types_default_init (GoodTypesIface *iface) 1235s # { 1235s # /* GObject properties for D-Bus properties: */ 1235s # /** 1235s # * GoodTypes:good-property-type: 1235s # * 1235s # * Represents the D-Bus property "GoodPropertyType". 1235s # * 1235s # * 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. 1235s # */ 1235s # g_object_interface_install_property (iface, 1235s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1235s # } 1235s # 1235s # /** 1235s # * good_types_get_good_property_type: (skip) 1235s # * @object: A GoodTypes. 1235s # * 1235s # * Gets the value of the "GoodPropertyType" D-Bus property. 1235s # * 1235s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1235s # * 1235s # * 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. 1235s # * 1235s # * 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. 1235s # */ 1235s # GVariant * 1235s # good_types_get_good_property_type (GoodTypes *object) 1235s # { 1235s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1235s # 1235s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1235s # } 1235s # 1235s # /** 1235s # * good_types_dup_good_property_type: (skip) 1235s # * @object: A GoodTypes. 1235s # * 1235s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1235s # * 1235s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1235s # * 1235s # * 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(). 1235s # */ 1235s # GVariant * 1235s # good_types_dup_good_property_type (GoodTypes *object) 1235s # { 1235s # GVariant *value; 1235s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1235s # return value; 1235s # } 1235s # 1235s # /** 1235s # * good_types_set_good_property_type: (skip) 1235s # * @object: A GoodTypes. 1235s # * @value: The value to set. 1235s # * 1235s # * Sets the "GoodPropertyType" D-Bus property to @value. 1235s # * 1235s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1235s # */ 1235s # void 1235s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1235s # { 1235s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1235s # } 1235s # 1235s # /* ------------------------------------------------------------------------ */ 1235s # 1235s # /** 1235s # * GoodTypesProxy: 1235s # * 1235s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1235s # */ 1235s # 1235s # /** 1235s # * GoodTypesProxyClass: 1235s # * @parent_class: The parent class. 1235s # * 1235s # * Class structure for GoodTypesProxy. 1235s # */ 1235s # 1235s # struct _GoodTypesProxyPrivate 1235s # { 1235s # GData *qdata; 1235s # }; 1235s # 1235s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1235s # 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1235s # G_ADD_PRIVATE (GoodTypesProxy) 1235s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1235s # 1235s # #else 1235s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1235s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1235s # 1235s # #endif 1235s # static void 1235s # good_types_proxy_finalize (GObject *object) 1235s # { 1235s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1235s # g_datalist_clear (&proxy->priv->qdata); 1235s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1235s # } 1235s # 1235s # static void 1235s # good_types_proxy_get_property (GObject *object, 1235s # guint prop_id, 1235s # GValue *value, 1235s # GParamSpec *pspec G_GNUC_UNUSED) 1235s # { 1235s # const _ExtendedGDBusPropertyInfo *info; 1235s # GVariant *variant; 1235s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1235s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1235s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1235s # if (info->use_gvariant) 1235s # { 1235s # g_value_set_variant (value, variant); 1235s # } 1235s # else 1235s # { 1235s # if (variant != NULL) 1235s # g_dbus_gvariant_to_gvalue (variant, value); 1235s # } 1235s # if (variant != NULL) 1235s # g_variant_unref (variant); 1235s # } 1235s # 1235s # static void 1235s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1235s # GAsyncResult *res, 1235s # gpointer user_data) 1235s # { 1235s # const _ExtendedGDBusPropertyInfo *info = user_data; 1235s # GError *error; 1235s # GVariant *_ret; 1235s # error = NULL; 1235s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1235s # if (!_ret) 1235s # { 1235s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1235s # info->parent_struct.name, 1235s # error->message, g_quark_to_string (error->domain), error->code); 1235s # g_error_free (error); 1235s # } 1235s # else 1235s # { 1235s # g_variant_unref (_ret); 1235s # } 1235s # } 1235s # 1235s # static void 1235s # good_types_proxy_set_property (GObject *object, 1235s # guint prop_id, 1235s # const GValue *value, 1235s # GParamSpec *pspec G_GNUC_UNUSED) 1235s # { 1235s # const _ExtendedGDBusPropertyInfo *info; 1235s # GVariant *variant; 1235s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1235s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1235s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1235s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1235s # "org.freedesktop.DBus.Properties.Set", 1235s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1235s # G_DBUS_CALL_FLAGS_NONE, 1235s # -1, 1235s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1235s # g_variant_unref (variant); 1235s # } 1235s # 1235s # static void 1235s # good_types_proxy_g_signal (GDBusProxy *proxy, 1235s # const gchar *sender_name G_GNUC_UNUSED, 1235s # const gchar *signal_name, 1235s # GVariant *parameters) 1235s # { 1235s # _ExtendedGDBusSignalInfo *info; 1235s # GVariantIter iter; 1235s # GVariant *child; 1235s # GValue *paramv; 1235s # gsize num_params; 1235s # gsize n; 1235s # guint signal_id; 1235s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1235s # if (info == NULL) 1235s # return; 1235s # num_params = g_variant_n_children (parameters); 1235s # paramv = g_new0 (GValue, num_params + 1); 1235s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1235s # g_value_set_object (¶mv[0], proxy); 1235s # g_variant_iter_init (&iter, parameters); 1235s # n = 1; 1235s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1235s # { 1235s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1235s # if (arg_info->use_gvariant) 1235s # { 1235s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1235s # g_value_set_variant (¶mv[n], child); 1235s # n++; 1235s # } 1235s # else 1235s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1235s # g_variant_unref (child); 1235s # } 1235s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1235s # g_signal_emitv (paramv, signal_id, 0, NULL); 1235s # for (n = 0; n < num_params + 1; n++) 1235s # g_value_unset (¶mv[n]); 1235s # g_free (paramv); 1235s # } 1235s # 1235s # static void 1235s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1235s # GVariant *changed_properties, 1235s # const gchar *const *invalidated_properties) 1235s # { 1235s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1235s # guint n; 1235s # const gchar *key; 1235s # GVariantIter *iter; 1235s # _ExtendedGDBusPropertyInfo *info; 1235s # g_variant_get (changed_properties, "a{sv}", &iter); 1235s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1235s # { 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1235s # g_datalist_remove_data (&proxy->priv->qdata, key); 1235s # if (info != NULL) 1235s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1235s # } 1235s # g_variant_iter_free (iter); 1235s # for (n = 0; invalidated_properties[n] != NULL; n++) 1235s # { 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1235s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1235s # if (info != NULL) 1235s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1235s # } 1235s # } 1235s # 1235s # static GVariant * 1235s # good_types_proxy_get_good_property_type (GoodTypes *object) 1235s # { 1235s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1235s # GVariant *variant; 1235s # GVariant *value = NULL; 1235s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1235s # value = variant; 1235s # if (variant != NULL) 1235s # g_variant_unref (variant); 1235s # return value; 1235s # } 1235s # 1235s # static void 1235s # good_types_proxy_init (GoodTypesProxy *proxy) 1235s # { 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1235s # #else 1235s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1235s # #endif 1235s # 1235s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1235s # } 1235s # 1235s # static void 1235s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1235s # { 1235s # GObjectClass *gobject_class; 1235s # GDBusProxyClass *proxy_class; 1235s # 1235s # gobject_class = G_OBJECT_CLASS (klass); 1235s # gobject_class->finalize = good_types_proxy_finalize; 1235s # gobject_class->get_property = good_types_proxy_get_property; 1235s # gobject_class->set_property = good_types_proxy_set_property; 1235s # 1235s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1235s # proxy_class->g_signal = good_types_proxy_g_signal; 1235s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1235s # 1235s # good_types_override_properties (gobject_class, 1); 1235s # 1235s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1235s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1235s # #endif 1235s # } 1235s # 1235s # static void 1235s # good_types_proxy_iface_init (GoodTypesIface *iface) 1235s # { 1235s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1235s # } 1235s # 1235s # /** 1235s # * good_types_proxy_new: 1235s # * @connection: A #GDBusConnection. 1235s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1235s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1235s # * @object_path: An object path. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1235s # * @user_data: User data to pass to @callback. 1235s # * 1235s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1235s # * 1235s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1235s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1235s # * 1235s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1235s # */ 1235s # void 1235s # good_types_proxy_new ( 1235s # GDBusConnection *connection, 1235s # GDBusProxyFlags flags, 1235s # const gchar *name, 1235s # const gchar *object_path, 1235s # GCancellable *cancellable, 1235s # GAsyncReadyCallback callback, 1235s # gpointer user_data) 1235s # { 1235s # 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); 1235s # } 1235s # 1235s # /** 1235s # * good_types_proxy_new_finish: 1235s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1235s # * @error: Return location for error or %NULL 1235s # * 1235s # * Finishes an operation started with good_types_proxy_new(). 1235s # * 1235s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1235s # */ 1235s # GoodTypes * 1235s # good_types_proxy_new_finish ( 1235s # GAsyncResult *res, 1235s # GError **error) 1235s # { 1235s # GObject *ret; 1235s # GObject *source_object; 1235s # source_object = g_async_result_get_source_object (res); 1235s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1235s # g_object_unref (source_object); 1235s # if (ret != NULL) 1235s # return GOOD_TYPES (ret); 1235s # else 1235s # return NULL; 1235s # } 1235s # 1235s # /** 1235s # * good_types_proxy_new_sync: 1235s # * @connection: A #GDBusConnection. 1235s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1235s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1235s # * @object_path: An object path. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @error: Return location for error or %NULL 1235s # * 1235s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1235s # * 1235s # * The calling thread is blocked until a reply is received. 1235s # * 1235s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1235s # * 1235s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1235s # */ 1235s # GoodTypes * 1235s # good_types_proxy_new_sync ( 1235s # GDBusConnection *connection, 1235s # GDBusProxyFlags flags, 1235s # const gchar *name, 1235s # const gchar *object_path, 1235s # GCancellable *cancellable, 1235s # GError **error) 1235s # { 1235s # GInitable *ret; 1235s # 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); 1235s # if (ret != NULL) 1235s # return GOOD_TYPES (ret); 1235s # else 1235s # return NULL; 1235s # } 1235s # 1235s # 1235s # /** 1235s # * good_types_proxy_new_for_bus: 1235s # * @bus_type: A #GBusType. 1235s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1235s # * @name: A bus name (well-known or unique). 1235s # * @object_path: An object path. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1235s # * @user_data: User data to pass to @callback. 1235s # * 1235s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1235s # * 1235s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1235s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1235s # * 1235s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1235s # */ 1235s # void 1235s # good_types_proxy_new_for_bus ( 1235s # GBusType bus_type, 1235s # GDBusProxyFlags flags, 1235s # const gchar *name, 1235s # const gchar *object_path, 1235s # GCancellable *cancellable, 1235s # GAsyncReadyCallback callback, 1235s # gpointer user_data) 1235s # { 1235s # 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); 1235s # } 1235s # 1235s # /** 1235s # * good_types_proxy_new_for_bus_finish: 1235s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1235s # * @error: Return location for error or %NULL 1235s # * 1235s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1235s # * 1235s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1235s # */ 1235s # GoodTypes * 1235s # good_types_proxy_new_for_bus_finish ( 1235s # GAsyncResult *res, 1235s # GError **error) 1235s # { 1235s # GObject *ret; 1235s # GObject *source_object; 1235s # source_object = g_async_result_get_source_object (res); 1235s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1235s # g_object_unref (source_object); 1235s # if (ret != NULL) 1235s # return GOOD_TYPES (ret); 1235s # else 1235s # return NULL; 1235s # } 1235s # 1235s # /** 1235s # * good_types_proxy_new_for_bus_sync: 1235s # * @bus_type: A #GBusType. 1235s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1235s # * @name: A bus name (well-known or unique). 1235s # * @object_path: An object path. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @error: Return location for error or %NULL 1235s # * 1235s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1235s # * 1235s # * The calling thread is blocked until a reply is received. 1235s # * 1235s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1235s # * 1235s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1235s # */ 1235s # GoodTypes * 1235s # good_types_proxy_new_for_bus_sync ( 1235s # GBusType bus_type, 1235s # GDBusProxyFlags flags, 1235s # const gchar *name, 1235s # const gchar *object_path, 1235s # GCancellable *cancellable, 1235s # GError **error) 1235s # { 1235s # GInitable *ret; 1235s # 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); 1235s # if (ret != NULL) 1235s # return GOOD_TYPES (ret); 1235s # else 1235s # return NULL; 1235s # } 1235s # 1235s # 1235s # /* ------------------------------------------------------------------------ */ 1235s # 1235s # /** 1235s # * GoodTypesSkeleton: 1235s # * 1235s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1235s # */ 1235s # 1235s # /** 1235s # * GoodTypesSkeletonClass: 1235s # * @parent_class: The parent class. 1235s # * 1235s # * Class structure for GoodTypesSkeleton. 1235s # */ 1235s # 1235s # struct _GoodTypesSkeletonPrivate 1235s # { 1235s # GValue *properties; 1235s # GList *changed_properties; 1235s # GSource *changed_properties_idle_source; 1235s # GMainContext *context; 1235s # GMutex lock; 1235s # }; 1235s # 1235s # static void 1235s # _good_types_skeleton_handle_method_call ( 1235s # GDBusConnection *connection G_GNUC_UNUSED, 1235s # const gchar *sender G_GNUC_UNUSED, 1235s # const gchar *object_path G_GNUC_UNUSED, 1235s # const gchar *interface_name, 1235s # const gchar *method_name, 1235s # GVariant *parameters, 1235s # GDBusMethodInvocation *invocation, 1235s # gpointer user_data) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1235s # _ExtendedGDBusMethodInfo *info; 1235s # GVariantIter iter; 1235s # GVariant *child; 1235s # GValue *paramv; 1235s # gsize num_params; 1235s # guint num_extra; 1235s # gsize n; 1235s # guint signal_id; 1235s # GValue return_value = G_VALUE_INIT; 1235s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1235s # g_assert (info != NULL); 1235s # num_params = g_variant_n_children (parameters); 1235s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1235s # n = 0; 1235s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1235s # g_value_set_object (¶mv[n++], skeleton); 1235s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1235s # g_value_set_object (¶mv[n++], invocation); 1235s # if (info->pass_fdlist) 1235s # { 1235s # #ifdef G_OS_UNIX 1235s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1235s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1235s # #else 1235s # g_assert_not_reached (); 1235s # #endif 1235s # } 1235s # g_variant_iter_init (&iter, parameters); 1235s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1235s # { 1235s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1235s # if (arg_info->use_gvariant) 1235s # { 1235s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1235s # g_value_set_variant (¶mv[n], child); 1235s # n++; 1235s # } 1235s # else 1235s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1235s # g_variant_unref (child); 1235s # } 1235s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1235s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1235s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1235s # if (!g_value_get_boolean (&return_value)) 1235s # 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); 1235s # g_value_unset (&return_value); 1235s # for (n = 0; n < num_params + num_extra; n++) 1235s # g_value_unset (¶mv[n]); 1235s # g_free (paramv); 1235s # } 1235s # 1235s # static GVariant * 1235s # _good_types_skeleton_handle_get_property ( 1235s # GDBusConnection *connection G_GNUC_UNUSED, 1235s # const gchar *sender G_GNUC_UNUSED, 1235s # const gchar *object_path G_GNUC_UNUSED, 1235s # const gchar *interface_name G_GNUC_UNUSED, 1235s # const gchar *property_name, 1235s # GError **error, 1235s # gpointer user_data) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1235s # GValue value = G_VALUE_INIT; 1235s # GParamSpec *pspec; 1235s # _ExtendedGDBusPropertyInfo *info; 1235s # GVariant *ret; 1235s # ret = NULL; 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1235s # g_assert (info != NULL); 1235s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1235s # if (pspec == NULL) 1235s # { 1235s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1235s # } 1235s # else 1235s # { 1235s # g_value_init (&value, pspec->value_type); 1235s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1235s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1235s # g_value_unset (&value); 1235s # } 1235s # return ret; 1235s # } 1235s # 1235s # static gboolean 1235s # _good_types_skeleton_handle_set_property ( 1235s # GDBusConnection *connection G_GNUC_UNUSED, 1235s # const gchar *sender G_GNUC_UNUSED, 1235s # const gchar *object_path G_GNUC_UNUSED, 1235s # const gchar *interface_name G_GNUC_UNUSED, 1235s # const gchar *property_name, 1235s # GVariant *variant, 1235s # GError **error, 1235s # gpointer user_data) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1235s # GValue value = G_VALUE_INIT; 1235s # GParamSpec *pspec; 1235s # _ExtendedGDBusPropertyInfo *info; 1235s # gboolean ret; 1235s # ret = FALSE; 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1235s # g_assert (info != NULL); 1235s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1235s # if (pspec == NULL) 1235s # { 1235s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1235s # } 1235s # else 1235s # { 1235s # if (info->use_gvariant) 1235s # g_value_set_variant (&value, variant); 1235s # else 1235s # g_dbus_gvariant_to_gvalue (variant, &value); 1235s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1235s # g_value_unset (&value); 1235s # ret = TRUE; 1235s # } 1235s # return ret; 1235s # } 1235s # 1235s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1235s # { 1235s # _good_types_skeleton_handle_method_call, 1235s # _good_types_skeleton_handle_get_property, 1235s # _good_types_skeleton_handle_set_property, 1235s # {NULL} 1235s # }; 1235s # 1235s # static GDBusInterfaceInfo * 1235s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1235s # { 1235s # return good_types_interface_info (); 1235s # } 1235s # 1235s # static GDBusInterfaceVTable * 1235s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1235s # { 1235s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1235s # } 1235s # 1235s # static GVariant * 1235s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1235s # 1235s # GVariantBuilder builder; 1235s # guint n; 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1235s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1235s # #else 1235s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1235s # #endif 1235s # if (_good_types_interface_info.parent_struct.properties == NULL) 1235s # goto out; 1235s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1235s # { 1235s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1235s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1235s # { 1235s # GVariant *value; 1235s # 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); 1235s # if (value != NULL) 1235s # { 1235s # g_variant_take_ref (value); 1235s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1235s # g_variant_unref (value); 1235s # } 1235s # } 1235s # } 1235s # out: 1235s # return g_variant_builder_end (&builder); 1235s # } 1235s # 1235s # static gboolean _good_types_emit_changed (gpointer user_data); 1235s # 1235s # static void 1235s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1235s # gboolean emit_changed = FALSE; 1235s # 1235s # g_mutex_lock (&skeleton->priv->lock); 1235s # if (skeleton->priv->changed_properties_idle_source != NULL) 1235s # { 1235s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1235s # skeleton->priv->changed_properties_idle_source = NULL; 1235s # emit_changed = TRUE; 1235s # } 1235s # g_mutex_unlock (&skeleton->priv->lock); 1235s # 1235s # if (emit_changed) 1235s # _good_types_emit_changed (skeleton); 1235s # } 1235s # 1235s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1235s # G_ADD_PRIVATE (GoodTypesSkeleton) 1235s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1235s # 1235s # #else 1235s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1235s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1235s # 1235s # #endif 1235s # static void 1235s # good_types_skeleton_finalize (GObject *object) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1235s # guint n; 1235s # for (n = 0; n < 1; n++) 1235s # g_value_unset (&skeleton->priv->properties[n]); 1235s # g_free (skeleton->priv->properties); 1235s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1235s # if (skeleton->priv->changed_properties_idle_source != NULL) 1235s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1235s # g_main_context_unref (skeleton->priv->context); 1235s # g_mutex_clear (&skeleton->priv->lock); 1235s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1235s # } 1235s # 1235s # static void 1235s # good_types_skeleton_get_property (GObject *object, 1235s # guint prop_id, 1235s # GValue *value, 1235s # GParamSpec *pspec G_GNUC_UNUSED) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1235s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1235s # g_mutex_lock (&skeleton->priv->lock); 1235s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1235s # g_mutex_unlock (&skeleton->priv->lock); 1235s # } 1235s # 1235s # static gboolean 1235s # _good_types_emit_changed (gpointer user_data) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1235s # GList *l; 1235s # GVariantBuilder builder; 1235s # GVariantBuilder invalidated_builder; 1235s # guint num_changes; 1235s # 1235s # g_mutex_lock (&skeleton->priv->lock); 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1235s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1235s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1235s # #else 1235s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1235s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1235s # #endif 1235s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1235s # { 1235s # ChangedProperty *cp = l->data; 1235s # GVariant *variant; 1235s # const GValue *cur_value; 1235s # 1235s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1235s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1235s # { 1235s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1235s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1235s # g_variant_unref (variant); 1235s # num_changes++; 1235s # } 1235s # } 1235s # if (num_changes > 0) 1235s # { 1235s # GList *connections, *ll; 1235s # GVariant *signal_variant; 1235s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1235s # &builder, &invalidated_builder)); 1235s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1235s # for (ll = connections; ll != NULL; ll = ll->next) 1235s # { 1235s # GDBusConnection *connection = ll->data; 1235s # 1235s # g_dbus_connection_emit_signal (connection, 1235s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1235s # "org.freedesktop.DBus.Properties", 1235s # "PropertiesChanged", 1235s # signal_variant, 1235s # NULL); 1235s # } 1235s # g_variant_unref (signal_variant); 1235s # g_list_free_full (connections, g_object_unref); 1235s # } 1235s # else 1235s # { 1235s # g_variant_builder_clear (&builder); 1235s # g_variant_builder_clear (&invalidated_builder); 1235s # } 1235s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1235s # skeleton->priv->changed_properties = NULL; 1235s # skeleton->priv->changed_properties_idle_source = NULL; 1235s # g_mutex_unlock (&skeleton->priv->lock); 1235s # return FALSE; 1235s # } 1235s # 1235s # static void 1235s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1235s # { 1235s # ChangedProperty *cp; 1235s # GList *l; 1235s # cp = NULL; 1235s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1235s # { 1235s # ChangedProperty *i_cp = l->data; 1235s # if (i_cp->info == info) 1235s # { 1235s # cp = i_cp; 1235s # break; 1235s # } 1235s # } 1235s # if (cp == NULL) 1235s # { 1235s # cp = g_new0 (ChangedProperty, 1); 1235s # cp->prop_id = prop_id; 1235s # cp->info = info; 1235s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1235s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1235s # g_value_copy (orig_value, &cp->orig_value); 1235s # } 1235s # } 1235s # 1235s # static void 1235s # good_types_skeleton_notify (GObject *object, 1235s # GParamSpec *pspec G_GNUC_UNUSED) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1235s # g_mutex_lock (&skeleton->priv->lock); 1235s # if (skeleton->priv->changed_properties != NULL && 1235s # skeleton->priv->changed_properties_idle_source == NULL) 1235s # { 1235s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1235s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1235s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1235s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1235s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1235s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1235s # } 1235s # g_mutex_unlock (&skeleton->priv->lock); 1235s # } 1235s # 1235s # static void 1235s # good_types_skeleton_set_property (GObject *object, 1235s # guint prop_id, 1235s # const GValue *value, 1235s # GParamSpec *pspec) 1235s # { 1235s # const _ExtendedGDBusPropertyInfo *info; 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1235s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1235s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1235s # g_mutex_lock (&skeleton->priv->lock); 1235s # g_object_freeze_notify (object); 1235s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1235s # { 1235s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1235s # info->emits_changed_signal) 1235s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1235s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1235s # g_object_notify_by_pspec (object, pspec); 1235s # } 1235s # g_mutex_unlock (&skeleton->priv->lock); 1235s # g_object_thaw_notify (object); 1235s # } 1235s # 1235s # static void 1235s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1235s # { 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1235s # #else 1235s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1235s # #endif 1235s # 1235s # g_mutex_init (&skeleton->priv->lock); 1235s # skeleton->priv->context = g_main_context_ref_thread_default (); 1235s # skeleton->priv->properties = g_new0 (GValue, 1); 1235s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1235s # } 1235s # 1235s # static GVariant * 1235s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1235s # { 1235s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1235s # GVariant *value; 1235s # g_mutex_lock (&skeleton->priv->lock); 1235s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1235s # g_mutex_unlock (&skeleton->priv->lock); 1235s # return value; 1235s # } 1235s # 1235s # static void 1235s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1235s # { 1235s # GObjectClass *gobject_class; 1235s # GDBusInterfaceSkeletonClass *skeleton_class; 1235s # 1235s # gobject_class = G_OBJECT_CLASS (klass); 1235s # gobject_class->finalize = good_types_skeleton_finalize; 1235s # gobject_class->get_property = good_types_skeleton_get_property; 1235s # gobject_class->set_property = good_types_skeleton_set_property; 1235s # gobject_class->notify = good_types_skeleton_notify; 1235s # 1235s # 1235s # good_types_override_properties (gobject_class, 1); 1235s # 1235s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1235s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1235s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1235s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1235s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1235s # 1235s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1235s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1235s # #endif 1235s # } 1235s # 1235s # static void 1235s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1235s # { 1235s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1235s # } 1235s # 1235s # /** 1235s # * good_types_skeleton_new: 1235s # * 1235s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1235s # * 1235s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1235s # */ 1235s # GoodTypes * 1235s # good_types_skeleton_new (void) 1235s # { 1235s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1235s # } 1235s # Error: 1235s ok 3 __main__.TestCodegen.test_empty_interface_body 1235s # gdbus-codegen: /usr/bin/gdbus-codegen 1235s # tmpdir: /tmp/tmp7w3h97j5 1235s # /tmp/tmp7w3h97j5/tmpa7l98eye.xml: 1235s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7w3h97j5/tmpa7l98eye.xml', '--output', '-', '--body'] 1235s # Return code: 0 1235s # Output: 1235s # /* 1235s # * This file is generated by gdbus-codegen, do not modify it. 1235s # * 1235s # * The license of this code is the same as for the D-Bus interface description 1235s # * it was derived from. Note that it links to GLib, so must comply with the 1235s # * LGPL linking clauses. 1235s # */ 1235s # 1235s # #ifdef HAVE_CONFIG_H 1235s # # include "config.h" 1235s # #endif 1235s # 1235s # #include 1235s # #ifdef G_OS_UNIX 1235s # # include 1235s # #endif 1235s # 1235s # #ifdef G_ENABLE_DEBUG 1235s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1235s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1235s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1235s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1235s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1235s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1235s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1235s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1235s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1235s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1235s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1235s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1235s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1235s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1235s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1235s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1235s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1235s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1235s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1235s # #else /* !G_ENABLE_DEBUG */ 1235s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1235s # * Do not access GValues directly in your code. Instead, use the 1235s # * g_value_get_*() functions 1235s # */ 1235s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1235s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1235s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1235s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1235s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1235s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1235s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1235s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1235s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1235s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1235s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1235s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1235s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1235s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1235s # #endif /* !G_ENABLE_DEBUG */ 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusArgInfo parent_struct; 1235s # gboolean use_gvariant; 1235s # } _ExtendedGDBusArgInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusMethodInfo parent_struct; 1235s # const gchar *signal_name; 1235s # gboolean pass_fdlist; 1235s # } _ExtendedGDBusMethodInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusSignalInfo parent_struct; 1235s # const gchar *signal_name; 1235s # } _ExtendedGDBusSignalInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusPropertyInfo parent_struct; 1235s # const gchar *hyphen_name; 1235s # guint use_gvariant : 1; 1235s # guint emits_changed_signal : 1; 1235s # } _ExtendedGDBusPropertyInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusInterfaceInfo parent_struct; 1235s # const gchar *hyphen_name; 1235s # } _ExtendedGDBusInterfaceInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # const _ExtendedGDBusPropertyInfo *info; 1235s # guint prop_id; 1235s # GValue orig_value; /* the value before the change */ 1235s # } ChangedProperty; 1235s # 1235s # static void 1235s # _changed_property_free (ChangedProperty *data) 1235s # { 1235s # g_value_unset (&data->orig_value); 1235s # g_free (data); 1235s # } 1235s # 1235s # static gboolean 1235s # _g_strv_equal0 (gchar **a, gchar **b) 1235s # { 1235s # gboolean ret = FALSE; 1235s # guint n; 1235s # if (a == NULL && b == NULL) 1235s # { 1235s # ret = TRUE; 1235s # goto out; 1235s # } 1235s # if (a == NULL || b == NULL) 1235s # goto out; 1235s # if (g_strv_length (a) != g_strv_length (b)) 1235s # goto out; 1235s # for (n = 0; a[n] != NULL; n++) 1235s # if (g_strcmp0 (a[n], b[n]) != 0) 1235s # goto out; 1235s # ret = TRUE; 1235s # out: 1235s # return ret; 1235s # } 1235s # 1235s # static gboolean 1235s # _g_variant_equal0 (GVariant *a, GVariant *b) 1235s # { 1235s # gboolean ret = FALSE; 1235s # if (a == NULL && b == NULL) 1235s # { 1235s # ret = TRUE; 1235s # goto out; 1235s # } 1235s # if (a == NULL || b == NULL) 1235s # goto out; 1235s # ret = g_variant_equal (a, b); 1235s # out: 1235s # return ret; 1235s # } 1235s # 1235s # G_GNUC_UNUSED static gboolean 1235s # _g_value_equal (const GValue *a, const GValue *b) 1235s # { 1235s # gboolean ret = FALSE; 1235s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1235s # switch (G_VALUE_TYPE (a)) 1235s # { 1235s # case G_TYPE_BOOLEAN: 1235s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1235s # break; 1235s # case G_TYPE_UCHAR: 1235s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1235s # break; 1235s # case G_TYPE_INT: 1235s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1235s # break; 1235s # case G_TYPE_UINT: 1235s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1235s # break; 1235s # case G_TYPE_INT64: 1235s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1235s # break; 1235s # case G_TYPE_UINT64: 1235s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1235s # break; 1235s # case G_TYPE_DOUBLE: 1235s # { 1235s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1235s # gdouble da = g_value_get_double (a); 1235s # gdouble db = g_value_get_double (b); 1235s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1235s # } 1235s # break; 1235s # case G_TYPE_STRING: 1235s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1235s # break; 1235s # case G_TYPE_VARIANT: 1235s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1235s # break; 1235s # default: 1235s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1235s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1235s # else 1235s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1235s # break; 1235s # } 1235s # return ret; 1235s # } 1235s # Error: 1235s ok 4 __main__.TestCodegen.test_empty_interface_header 1235s # gdbus-codegen: /usr/bin/gdbus-codegen 1235s # tmpdir: /tmp/tmp7tggdwf8 1235s # /tmp/tmp7tggdwf8/tmpsdq2d8m6.xml: 1235s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tggdwf8/tmpsdq2d8m6.xml', '--output', '-', '--header'] 1235s # Return code: 0 1235s # Output: 1235s # /* 1235s # * This file is generated by gdbus-codegen, do not modify it. 1235s # * 1235s # * The license of this code is the same as for the D-Bus interface description 1235s # * it was derived from. Note that it links to GLib, so must comply with the 1235s # * LGPL linking clauses. 1235s # */ 1235s # 1235s # #ifndef __STDOUT__ 1235s # #define __STDOUT__ 1235s # 1235s # #include 1235s # 1235s # G_BEGIN_DECLS 1235s # 1235s # 1235s # G_END_DECLS 1235s # 1235s # #endif /* __STDOUT__ */ 1235s # Error: 1235s ok 5 __main__.TestCodegen.test_empty_interface_info_body 1235s # gdbus-codegen: /usr/bin/gdbus-codegen 1235s # tmpdir: /tmp/tmplpwajwtl 1235s # /tmp/tmplpwajwtl/tmpny8cffku.xml: 1235s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplpwajwtl/tmpny8cffku.xml', '--output', '-', '--interface-info-body'] 1235s # Return code: 0 1235s # Output: 1235s # /* 1235s # * This file is generated by gdbus-codegen, do not modify it. 1235s # * 1235s # * The license of this code is the same as for the D-Bus interface description 1235s # * it was derived from. Note that it links to GLib, so must comply with the 1235s # * LGPL linking clauses. 1235s # */ 1235s # 1235s # #ifdef HAVE_CONFIG_H 1235s # # include "config.h" 1235s # #endif 1235s # 1235s # #include 1235s # Error: 1235s ok 6 __main__.TestCodegen.test_empty_interface_info_header 1235s # gdbus-codegen: /usr/bin/gdbus-codegen 1235s # tmpdir: /tmp/tmp24d4wjxm 1235s # /tmp/tmp24d4wjxm/tmpn201ieou.xml: 1235s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp24d4wjxm/tmpn201ieou.xml', '--output', '-', '--interface-info-header'] 1235s # Return code: 0 1235s # Output: 1235s # /* 1235s # * This file is generated by gdbus-codegen, do not modify it. 1235s # * 1235s # * The license of this code is the same as for the D-Bus interface description 1235s # * it was derived from. Note that it links to GLib, so must comply with the 1235s # * LGPL linking clauses. 1235s # */ 1235s # 1235s # #ifndef __STDOUT__ 1235s # #define __STDOUT__ 1235s # 1235s # #include 1235s # 1235s # G_BEGIN_DECLS 1235s # 1235s # 1235s # G_END_DECLS 1235s # 1235s # #endif /* __STDOUT__ */ 1235s # Error: 1235s ok 7 __main__.TestCodegen.test_generate_docbook 1235s # gdbus-codegen: /usr/bin/gdbus-codegen 1235s # tmpdir: /tmp/tmpqyncyw7h 1235s # /tmp/tmpqyncyw7h/tmptwe136yn.xml: 1235s # 1235s # 1235s # 1235s # 1235s # 1235s # 1235s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqyncyw7h/tmptwe136yn.xml', '--generate-docbook', 'test'] 1235s # Return code: 0 1235s # Output: 1235s # 1235s # Error: 1235s ok 8 __main__.TestCodegen.test_generate_md 1235s # gdbus-codegen: /usr/bin/gdbus-codegen 1235s # tmpdir: /tmp/tmpmxn58wjk 1235s # /tmp/tmpmxn58wjk/tmp2cs_6lfl.xml: 1235s # 1235s # 1235s # 1235s # 1235s # 1235s # 1235s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmxn58wjk/tmp2cs_6lfl.xml', '--generate-md', 'test'] 1235s # Return code: 0 1235s # Output: 1235s # 1235s # Error: 1235s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 1235s # gdbus-codegen: /usr/bin/gdbus-codegen 1235s # tmpdir: /tmp/tmp7y5k_osh 1235s # /tmp/tmp7y5k_osh/tmp84kb6d7z.xml: 1235s # 1235s # 1235s # 1235s # 1235s # 1235s # 1235s # 1235s # 1235s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7y5k_osh/tmp84kb6d7z.xml', '--output', '-', '--body'] 1235s # Return code: 0 1235s # Output: 1235s # /* 1235s # * This file is generated by gdbus-codegen, do not modify it. 1235s # * 1235s # * The license of this code is the same as for the D-Bus interface description 1235s # * it was derived from. Note that it links to GLib, so must comply with the 1235s # * LGPL linking clauses. 1235s # */ 1235s # 1235s # #ifdef HAVE_CONFIG_H 1235s # # include "config.h" 1235s # #endif 1235s # 1235s # #include 1235s # #ifdef G_OS_UNIX 1235s # # include 1235s # #endif 1235s # 1235s # #ifdef G_ENABLE_DEBUG 1235s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1235s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1235s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1235s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1235s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1235s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1235s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1235s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1235s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1235s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1235s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1235s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1235s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1235s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1235s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1235s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1235s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1235s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1235s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1235s # #else /* !G_ENABLE_DEBUG */ 1235s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1235s # * Do not access GValues directly in your code. Instead, use the 1235s # * g_value_get_*() functions 1235s # */ 1235s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1235s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1235s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1235s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1235s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1235s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1235s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1235s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1235s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1235s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1235s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1235s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1235s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1235s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1235s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1235s # #endif /* !G_ENABLE_DEBUG */ 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusArgInfo parent_struct; 1235s # gboolean use_gvariant; 1235s # } _ExtendedGDBusArgInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusMethodInfo parent_struct; 1235s # const gchar *signal_name; 1235s # gboolean pass_fdlist; 1235s # } _ExtendedGDBusMethodInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusSignalInfo parent_struct; 1235s # const gchar *signal_name; 1235s # } _ExtendedGDBusSignalInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusPropertyInfo parent_struct; 1235s # const gchar *hyphen_name; 1235s # guint use_gvariant : 1; 1235s # guint emits_changed_signal : 1; 1235s # } _ExtendedGDBusPropertyInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # GDBusInterfaceInfo parent_struct; 1235s # const gchar *hyphen_name; 1235s # } _ExtendedGDBusInterfaceInfo; 1235s # 1235s # typedef struct 1235s # { 1235s # const _ExtendedGDBusPropertyInfo *info; 1235s # guint prop_id; 1235s # GValue orig_value; /* the value before the change */ 1235s # } ChangedProperty; 1235s # 1235s # static void 1235s # _changed_property_free (ChangedProperty *data) 1235s # { 1235s # g_value_unset (&data->orig_value); 1235s # g_free (data); 1235s # } 1235s # 1235s # static gboolean 1235s # _g_strv_equal0 (gchar **a, gchar **b) 1235s # { 1235s # gboolean ret = FALSE; 1235s # guint n; 1235s # if (a == NULL && b == NULL) 1235s # { 1235s # ret = TRUE; 1235s # goto out; 1235s # } 1235s # if (a == NULL || b == NULL) 1235s # goto out; 1235s # if (g_strv_length (a) != g_strv_length (b)) 1235s # goto out; 1235s # for (n = 0; a[n] != NULL; n++) 1235s # if (g_strcmp0 (a[n], b[n]) != 0) 1235s # goto out; 1235s # ret = TRUE; 1235s # out: 1235s # return ret; 1235s # } 1235s # 1235s # static gboolean 1235s # _g_variant_equal0 (GVariant *a, GVariant *b) 1235s # { 1235s # gboolean ret = FALSE; 1235s # if (a == NULL && b == NULL) 1235s # { 1235s # ret = TRUE; 1235s # goto out; 1235s # } 1235s # if (a == NULL || b == NULL) 1235s # goto out; 1235s # ret = g_variant_equal (a, b); 1235s # out: 1235s # return ret; 1235s # } 1235s # 1235s # G_GNUC_UNUSED static gboolean 1235s # _g_value_equal (const GValue *a, const GValue *b) 1235s # { 1235s # gboolean ret = FALSE; 1235s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1235s # switch (G_VALUE_TYPE (a)) 1235s # { 1235s # case G_TYPE_BOOLEAN: 1235s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1235s # break; 1235s # case G_TYPE_UCHAR: 1235s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1235s # break; 1235s # case G_TYPE_INT: 1235s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1235s # break; 1235s # case G_TYPE_UINT: 1235s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1235s # break; 1235s # case G_TYPE_INT64: 1235s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1235s # break; 1235s # case G_TYPE_UINT64: 1235s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1235s # break; 1235s # case G_TYPE_DOUBLE: 1235s # { 1235s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1235s # gdouble da = g_value_get_double (a); 1235s # gdouble db = g_value_get_double (b); 1235s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1235s # } 1235s # break; 1235s # case G_TYPE_STRING: 1235s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1235s # break; 1235s # case G_TYPE_VARIANT: 1235s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1235s # break; 1235s # default: 1235s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1235s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1235s # else 1235s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1235s # break; 1235s # } 1235s # return ret; 1235s # } 1235s # 1235s # static void 1235s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1235s # GClosure *closure, 1235s # GValue *return_value, 1235s # unsigned int n_param_values, 1235s # const GValue *param_values, 1235s # void *invocation_hint G_GNUC_UNUSED, 1235s # void *marshal_data) 1235s # { 1235s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1235s # (void *data1, 1235s # GDBusMethodInvocation *arg_method_invocation, 1235s # void *data2); 1235s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1235s # GCClosure *cc = (GCClosure*) closure; 1235s # void *data1, *data2; 1235s # gboolean v_return; 1235s # 1235s # g_return_if_fail (return_value != NULL); 1235s # g_return_if_fail (n_param_values == 2); 1235s # 1235s # if (G_CCLOSURE_SWAP_DATA (closure)) 1235s # { 1235s # data1 = closure->data; 1235s # data2 = g_value_peek_pointer (param_values + 0); 1235s # } 1235s # else 1235s # { 1235s # data1 = g_value_peek_pointer (param_values + 0); 1235s # data2 = closure->data; 1235s # } 1235s # 1235s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1235s # (marshal_data ? marshal_data : cc->callback); 1235s # 1235s # v_return = 1235s # callback (data1, 1235s # g_marshal_value_peek_object (param_values + 1), 1235s # data2); 1235s # 1235s # g_value_set_boolean (return_value, v_return); 1235s # } 1235s # 1235s # /* ------------------------------------------------------------------------ 1235s # * Code for interface org.project.CallableIface 1235s # * ------------------------------------------------------------------------ 1235s # */ 1235s # 1235s # /** 1235s # * SECTION:OrgProjectCallableIface 1235s # * @title: OrgProjectCallableIface 1235s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1235s # * 1235s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1235s # */ 1235s # 1235s # /* ---- Introspection data for org.project.CallableIface ---- */ 1235s # 1235s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 1235s # { 1235s # { 1235s # -1, 1235s # (gchar *) "SimpleMethod", 1235s # NULL, 1235s # NULL, 1235s # NULL 1235s # }, 1235s # "handle-simple-method", 1235s # FALSE 1235s # }; 1235s # 1235s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1235s # { 1235s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 1235s # NULL 1235s # }; 1235s # 1235s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1235s # { 1235s # { 1235s # -1, 1235s # (gchar *) "org.project.CallableIface", 1235s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1235s # NULL, 1235s # NULL, 1235s # NULL 1235s # }, 1235s # "org-project-callable-iface", 1235s # }; 1235s # 1235s # 1235s # /** 1235s # * org_project_callable_iface_interface_info: 1235s # * 1235s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1235s # * 1235s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1235s # */ 1235s # GDBusInterfaceInfo * 1235s # org_project_callable_iface_interface_info (void) 1235s # { 1235s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1235s # } 1235s # 1235s # /** 1235s # * org_project_callable_iface_override_properties: 1235s # * @klass: The class structure for a #GObject derived class. 1235s # * @property_id_begin: The property id to assign to the first overridden property. 1235s # * 1235s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1235s # * The properties are overridden in the order they are defined. 1235s # * 1235s # * Returns: The last property id. 1235s # */ 1235s # guint 1235s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1235s # { 1235s # return property_id_begin - 1; 1235s # } 1235s # 1235s # 1235s # inline static void 1235s # org_project_callable_iface_method_marshal_simple_method ( 1235s # GClosure *closure, 1235s # GValue *return_value, 1235s # unsigned int n_param_values, 1235s # const GValue *param_values, 1235s # void *invocation_hint, 1235s # void *marshal_data) 1235s # { 1235s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1235s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1235s # } 1235s # 1235s # 1235s # /** 1235s # * OrgProjectCallableIface: 1235s # * 1235s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1235s # */ 1235s # 1235s # /** 1235s # * OrgProjectCallableIfaceIface: 1235s # * @parent_iface: The parent interface. 1235s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 1235s # * 1235s # * Virtual table for the D-Bus interface org.project.CallableIface. 1235s # */ 1235s # 1235s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1235s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1235s # 1235s # static void 1235s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1235s # { 1235s # /* GObject signals for incoming D-Bus method calls: */ 1235s # /** 1235s # * OrgProjectCallableIface::handle-simple-method: 1235s # * @object: A #OrgProjectCallableIface. 1235s # * @invocation: A #GDBusMethodInvocation. 1235s # * 1235s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1235s # * 1235s # * 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. 1235s # * 1235s # * 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. 1235s # */ 1235s # g_signal_new ("handle-simple-method", 1235s # G_TYPE_FROM_INTERFACE (iface), 1235s # G_SIGNAL_RUN_LAST, 1235s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 1235s # g_signal_accumulator_true_handled, 1235s # NULL, 1235s # org_project_callable_iface_method_marshal_simple_method, 1235s # G_TYPE_BOOLEAN, 1235s # 1, 1235s # G_TYPE_DBUS_METHOD_INVOCATION); 1235s # 1235s # } 1235s # 1235s # /** 1235s # * org_project_callable_iface_call_simple_method: 1235s # * @proxy: A #OrgProjectCallableIfaceProxy. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1235s # * @user_data: User data to pass to @callback. 1235s # * 1235s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1235s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1235s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 1235s # * 1235s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1235s # */ 1235s # void 1235s # org_project_callable_iface_call_simple_method ( 1235s # OrgProjectCallableIface *proxy, 1235s # GCancellable *cancellable, 1235s # GAsyncReadyCallback callback, 1235s # gpointer user_data) 1235s # { 1235s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1235s # "SimpleMethod", 1235s # g_variant_new ("()"), 1235s # G_DBUS_CALL_FLAGS_NONE, 1235s # -1, 1235s # cancellable, 1235s # callback, 1235s # user_data); 1235s # } 1235s # 1235s # /** 1235s # * org_project_callable_iface_call_simple_method_finish: 1235s # * @proxy: A #OrgProjectCallableIfaceProxy. 1235s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 1235s # * @error: Return location for error or %NULL. 1235s # * 1235s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 1235s # * 1235s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1235s # */ 1235s # gboolean 1235s # org_project_callable_iface_call_simple_method_finish ( 1235s # OrgProjectCallableIface *proxy, 1235s # GAsyncResult *res, 1235s # GError **error) 1235s # { 1235s # GVariant *_ret; 1235s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1235s # if (_ret == NULL) 1235s # goto _out; 1235s # g_variant_get (_ret, 1235s # "()"); 1235s # g_variant_unref (_ret); 1235s # _out: 1235s # return _ret != NULL; 1235s # } 1235s # 1235s # /** 1235s # * org_project_callable_iface_call_simple_method_sync: 1235s # * @proxy: A #OrgProjectCallableIfaceProxy. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @error: Return location for error or %NULL. 1235s # * 1235s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1235s # * 1235s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 1235s # * 1235s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1235s # */ 1235s # gboolean 1235s # org_project_callable_iface_call_simple_method_sync ( 1235s # OrgProjectCallableIface *proxy, 1235s # GCancellable *cancellable, 1235s # GError **error) 1235s # { 1235s # GVariant *_ret; 1235s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1235s # "SimpleMethod", 1235s # g_variant_new ("()"), 1235s # G_DBUS_CALL_FLAGS_NONE, 1235s # -1, 1235s # cancellable, 1235s # error); 1235s # if (_ret == NULL) 1235s # goto _out; 1235s # g_variant_get (_ret, 1235s # "()"); 1235s # g_variant_unref (_ret); 1235s # _out: 1235s # return _ret != NULL; 1235s # } 1235s # 1235s # /** 1235s # * org_project_callable_iface_complete_simple_method: 1235s # * @object: A #OrgProjectCallableIface. 1235s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1235s # * 1235s # * 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. 1235s # * 1235s # * This method will free @invocation, you cannot use it afterwards. 1235s # */ 1235s # void 1235s # org_project_callable_iface_complete_simple_method ( 1235s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1235s # GDBusMethodInvocation *invocation) 1235s # { 1235s # g_dbus_method_invocation_return_value (invocation, 1235s # g_variant_new ("()")); 1235s # } 1235s # 1235s # /* ------------------------------------------------------------------------ */ 1235s # 1235s # /** 1235s # * OrgProjectCallableIfaceProxy: 1235s # * 1235s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1235s # */ 1235s # 1235s # /** 1235s # * OrgProjectCallableIfaceProxyClass: 1235s # * @parent_class: The parent class. 1235s # * 1235s # * Class structure for #OrgProjectCallableIfaceProxy. 1235s # */ 1235s # 1235s # struct _OrgProjectCallableIfaceProxyPrivate 1235s # { 1235s # GData *qdata; 1235s # }; 1235s # 1235s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1235s # 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1235s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1235s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1235s # 1235s # #else 1235s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1235s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1235s # 1235s # #endif 1235s # static void 1235s # org_project_callable_iface_proxy_finalize (GObject *object) 1235s # { 1235s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1235s # g_datalist_clear (&proxy->priv->qdata); 1235s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1235s # } 1235s # 1235s # static void 1235s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1235s # guint prop_id G_GNUC_UNUSED, 1235s # GValue *value G_GNUC_UNUSED, 1235s # GParamSpec *pspec G_GNUC_UNUSED) 1235s # { 1235s # } 1235s # 1235s # static void 1235s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1235s # guint prop_id G_GNUC_UNUSED, 1235s # const GValue *value G_GNUC_UNUSED, 1235s # GParamSpec *pspec G_GNUC_UNUSED) 1235s # { 1235s # } 1235s # 1235s # static void 1235s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1235s # const gchar *sender_name G_GNUC_UNUSED, 1235s # const gchar *signal_name, 1235s # GVariant *parameters) 1235s # { 1235s # _ExtendedGDBusSignalInfo *info; 1235s # GVariantIter iter; 1235s # GVariant *child; 1235s # GValue *paramv; 1235s # gsize num_params; 1235s # gsize n; 1235s # guint signal_id; 1235s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1235s # if (info == NULL) 1235s # return; 1235s # num_params = g_variant_n_children (parameters); 1235s # paramv = g_new0 (GValue, num_params + 1); 1235s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1235s # g_value_set_object (¶mv[0], proxy); 1235s # g_variant_iter_init (&iter, parameters); 1235s # n = 1; 1235s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1235s # { 1235s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1235s # if (arg_info->use_gvariant) 1235s # { 1235s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1235s # g_value_set_variant (¶mv[n], child); 1235s # n++; 1235s # } 1235s # else 1235s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1235s # g_variant_unref (child); 1235s # } 1235s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1235s # g_signal_emitv (paramv, signal_id, 0, NULL); 1235s # for (n = 0; n < num_params + 1; n++) 1235s # g_value_unset (¶mv[n]); 1235s # g_free (paramv); 1235s # } 1235s # 1235s # static void 1235s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1235s # GVariant *changed_properties, 1235s # const gchar *const *invalidated_properties) 1235s # { 1235s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1235s # guint n; 1235s # const gchar *key; 1235s # GVariantIter *iter; 1235s # _ExtendedGDBusPropertyInfo *info; 1235s # g_variant_get (changed_properties, "a{sv}", &iter); 1235s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1235s # { 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1235s # g_datalist_remove_data (&proxy->priv->qdata, key); 1235s # if (info != NULL) 1235s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1235s # } 1235s # g_variant_iter_free (iter); 1235s # for (n = 0; invalidated_properties[n] != NULL; n++) 1235s # { 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1235s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1235s # if (info != NULL) 1235s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1235s # } 1235s # } 1235s # 1235s # static void 1235s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1235s # { 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1235s # #else 1235s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1235s # #endif 1235s # 1235s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1235s # } 1235s # 1235s # static void 1235s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1235s # { 1235s # GObjectClass *gobject_class; 1235s # GDBusProxyClass *proxy_class; 1235s # 1235s # gobject_class = G_OBJECT_CLASS (klass); 1235s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1235s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1235s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1235s # 1235s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1235s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1235s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1235s # 1235s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1235s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1235s # #endif 1235s # } 1235s # 1235s # static void 1235s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1235s # { 1235s # } 1235s # 1235s # /** 1235s # * org_project_callable_iface_proxy_new: 1235s # * @connection: A #GDBusConnection. 1235s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1235s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1235s # * @object_path: An object path. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1235s # * @user_data: User data to pass to @callback. 1235s # * 1235s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1235s # * 1235s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1235s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1235s # * 1235s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1235s # */ 1235s # void 1235s # org_project_callable_iface_proxy_new ( 1235s # GDBusConnection *connection, 1235s # GDBusProxyFlags flags, 1235s # const gchar *name, 1235s # const gchar *object_path, 1235s # GCancellable *cancellable, 1235s # GAsyncReadyCallback callback, 1235s # gpointer user_data) 1235s # { 1235s # 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); 1235s # } 1235s # 1235s # /** 1235s # * org_project_callable_iface_proxy_new_finish: 1235s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1235s # * @error: Return location for error or %NULL 1235s # * 1235s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1235s # * 1235s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1235s # */ 1235s # OrgProjectCallableIface * 1235s # org_project_callable_iface_proxy_new_finish ( 1235s # GAsyncResult *res, 1235s # GError **error) 1235s # { 1235s # GObject *ret; 1235s # GObject *source_object; 1235s # source_object = g_async_result_get_source_object (res); 1235s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1235s # g_object_unref (source_object); 1235s # if (ret != NULL) 1235s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1235s # else 1235s # return NULL; 1235s # } 1235s # 1235s # /** 1235s # * org_project_callable_iface_proxy_new_sync: 1235s # * @connection: A #GDBusConnection. 1235s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1235s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1235s # * @object_path: An object path. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @error: Return location for error or %NULL 1235s # * 1235s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1235s # * 1235s # * The calling thread is blocked until a reply is received. 1235s # * 1235s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1235s # * 1235s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1235s # */ 1235s # OrgProjectCallableIface * 1235s # org_project_callable_iface_proxy_new_sync ( 1235s # GDBusConnection *connection, 1235s # GDBusProxyFlags flags, 1235s # const gchar *name, 1235s # const gchar *object_path, 1235s # GCancellable *cancellable, 1235s # GError **error) 1235s # { 1235s # GInitable *ret; 1235s # 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); 1235s # if (ret != NULL) 1235s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1235s # else 1235s # return NULL; 1235s # } 1235s # 1235s # 1235s # /** 1235s # * org_project_callable_iface_proxy_new_for_bus: 1235s # * @bus_type: A #GBusType. 1235s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1235s # * @name: A bus name (well-known or unique). 1235s # * @object_path: An object path. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1235s # * @user_data: User data to pass to @callback. 1235s # * 1235s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1235s # * 1235s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1235s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1235s # * 1235s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1235s # */ 1235s # void 1235s # org_project_callable_iface_proxy_new_for_bus ( 1235s # GBusType bus_type, 1235s # GDBusProxyFlags flags, 1235s # const gchar *name, 1235s # const gchar *object_path, 1235s # GCancellable *cancellable, 1235s # GAsyncReadyCallback callback, 1235s # gpointer user_data) 1235s # { 1235s # 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); 1235s # } 1235s # 1235s # /** 1235s # * org_project_callable_iface_proxy_new_for_bus_finish: 1235s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1235s # * @error: Return location for error or %NULL 1235s # * 1235s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1235s # * 1235s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1235s # */ 1235s # OrgProjectCallableIface * 1235s # org_project_callable_iface_proxy_new_for_bus_finish ( 1235s # GAsyncResult *res, 1235s # GError **error) 1235s # { 1235s # GObject *ret; 1235s # GObject *source_object; 1235s # source_object = g_async_result_get_source_object (res); 1235s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1235s # g_object_unref (source_object); 1235s # if (ret != NULL) 1235s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1235s # else 1235s # return NULL; 1235s # } 1235s # 1235s # /** 1235s # * org_project_callable_iface_proxy_new_for_bus_sync: 1235s # * @bus_type: A #GBusType. 1235s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1235s # * @name: A bus name (well-known or unique). 1235s # * @object_path: An object path. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @error: Return location for error or %NULL 1235s # * 1235s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1235s # * 1235s # * The calling thread is blocked until a reply is received. 1235s # * 1235s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1235s # * 1235s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1235s # */ 1235s # OrgProjectCallableIface * 1235s # org_project_callable_iface_proxy_new_for_bus_sync ( 1235s # GBusType bus_type, 1235s # GDBusProxyFlags flags, 1235s # const gchar *name, 1235s # const gchar *object_path, 1235s # GCancellable *cancellable, 1235s # GError **error) 1235s # { 1235s # GInitable *ret; 1235s # 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); 1235s # if (ret != NULL) 1235s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1235s # else 1235s # return NULL; 1235s # } 1235s # 1235s # 1235s # /* ------------------------------------------------------------------------ */ 1235s # 1235s # /** 1235s # * OrgProjectCallableIfaceSkeleton: 1235s # * 1235s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1235s # */ 1235s # 1235s # /** 1235s # * OrgProjectCallableIfaceSkeletonClass: 1235s # * @parent_class: The parent class. 1235s # * 1235s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1235s # */ 1235s # 1235s # struct _OrgProjectCallableIfaceSkeletonPrivate 1235s # { 1235s # GValue *properties; 1235s # GList *changed_properties; 1235s # GSource *changed_properties_idle_source; 1235s # GMainContext *context; 1235s # GMutex lock; 1235s # }; 1235s # 1235s # static void 1235s # _org_project_callable_iface_skeleton_handle_method_call ( 1235s # GDBusConnection *connection G_GNUC_UNUSED, 1235s # const gchar *sender G_GNUC_UNUSED, 1235s # const gchar *object_path G_GNUC_UNUSED, 1235s # const gchar *interface_name, 1235s # const gchar *method_name, 1235s # GVariant *parameters, 1235s # GDBusMethodInvocation *invocation, 1235s # gpointer user_data) 1235s # { 1235s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1235s # _ExtendedGDBusMethodInfo *info; 1235s # GVariantIter iter; 1235s # GVariant *child; 1235s # GValue *paramv; 1235s # gsize num_params; 1235s # guint num_extra; 1235s # gsize n; 1235s # guint signal_id; 1235s # GValue return_value = G_VALUE_INIT; 1235s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1235s # g_assert (info != NULL); 1235s # num_params = g_variant_n_children (parameters); 1235s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1235s # n = 0; 1235s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1235s # g_value_set_object (¶mv[n++], skeleton); 1235s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1235s # g_value_set_object (¶mv[n++], invocation); 1235s # if (info->pass_fdlist) 1235s # { 1235s # #ifdef G_OS_UNIX 1235s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1235s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1235s # #else 1235s # g_assert_not_reached (); 1235s # #endif 1235s # } 1235s # g_variant_iter_init (&iter, parameters); 1235s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1235s # { 1235s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1235s # if (arg_info->use_gvariant) 1235s # { 1235s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1235s # g_value_set_variant (¶mv[n], child); 1235s # n++; 1235s # } 1235s # else 1235s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1235s # g_variant_unref (child); 1235s # } 1235s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1235s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1235s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1235s # if (!g_value_get_boolean (&return_value)) 1235s # 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); 1235s # g_value_unset (&return_value); 1235s # for (n = 0; n < num_params + num_extra; n++) 1235s # g_value_unset (¶mv[n]); 1235s # g_free (paramv); 1235s # } 1235s # 1235s # static GVariant * 1235s # _org_project_callable_iface_skeleton_handle_get_property ( 1235s # GDBusConnection *connection G_GNUC_UNUSED, 1235s # const gchar *sender G_GNUC_UNUSED, 1235s # const gchar *object_path G_GNUC_UNUSED, 1235s # const gchar *interface_name G_GNUC_UNUSED, 1235s # const gchar *property_name, 1235s # GError **error, 1235s # gpointer user_data) 1235s # { 1235s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1235s # GValue value = G_VALUE_INIT; 1235s # GParamSpec *pspec; 1235s # _ExtendedGDBusPropertyInfo *info; 1235s # GVariant *ret; 1235s # ret = NULL; 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1235s # g_assert (info != NULL); 1235s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1235s # if (pspec == NULL) 1235s # { 1235s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1235s # } 1235s # else 1235s # { 1235s # g_value_init (&value, pspec->value_type); 1235s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1235s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1235s # g_value_unset (&value); 1235s # } 1235s # return ret; 1235s # } 1235s # 1235s # static gboolean 1235s # _org_project_callable_iface_skeleton_handle_set_property ( 1235s # GDBusConnection *connection G_GNUC_UNUSED, 1235s # const gchar *sender G_GNUC_UNUSED, 1235s # const gchar *object_path G_GNUC_UNUSED, 1235s # const gchar *interface_name G_GNUC_UNUSED, 1235s # const gchar *property_name, 1235s # GVariant *variant, 1235s # GError **error, 1235s # gpointer user_data) 1235s # { 1235s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1235s # GValue value = G_VALUE_INIT; 1235s # GParamSpec *pspec; 1235s # _ExtendedGDBusPropertyInfo *info; 1235s # gboolean ret; 1235s # ret = FALSE; 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1235s # g_assert (info != NULL); 1235s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1235s # if (pspec == NULL) 1235s # { 1235s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1235s # } 1235s # else 1235s # { 1235s # if (info->use_gvariant) 1235s # g_value_set_variant (&value, variant); 1235s # else 1235s # g_dbus_gvariant_to_gvalue (variant, &value); 1235s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1235s # g_value_unset (&value); 1235s # ret = TRUE; 1235s # } 1235s # return ret; 1235s # } 1235s # 1235s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1235s # { 1235s # _org_project_callable_iface_skeleton_handle_method_call, 1235s # _org_project_callable_iface_skeleton_handle_get_property, 1235s # _org_project_callable_iface_skeleton_handle_set_property, 1235s # {NULL} 1235s # }; 1235s # 1235s # static GDBusInterfaceInfo * 1235s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1235s # { 1235s # return org_project_callable_iface_interface_info (); 1235s # } 1235s # 1235s # static GDBusInterfaceVTable * 1235s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1235s # { 1235s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1235s # } 1235s # 1235s # static GVariant * 1235s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1235s # { 1235s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1235s # 1235s # GVariantBuilder builder; 1235s # guint n; 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1235s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1235s # #else 1235s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1235s # #endif 1235s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1235s # goto out; 1235s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1235s # { 1235s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1235s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1235s # { 1235s # GVariant *value; 1235s # 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); 1235s # if (value != NULL) 1235s # { 1235s # g_variant_take_ref (value); 1235s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1235s # g_variant_unref (value); 1235s # } 1235s # } 1235s # } 1235s # out: 1235s # return g_variant_builder_end (&builder); 1235s # } 1235s # 1235s # static void 1235s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1235s # { 1235s # } 1235s # 1235s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1235s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1235s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1235s # 1235s # #else 1235s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1235s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1235s # 1235s # #endif 1235s # static void 1235s # org_project_callable_iface_skeleton_finalize (GObject *object) 1235s # { 1235s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1235s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1235s # if (skeleton->priv->changed_properties_idle_source != NULL) 1235s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1235s # g_main_context_unref (skeleton->priv->context); 1235s # g_mutex_clear (&skeleton->priv->lock); 1235s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1235s # } 1235s # 1235s # static void 1235s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1235s # { 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1235s # #else 1235s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1235s # #endif 1235s # 1235s # g_mutex_init (&skeleton->priv->lock); 1235s # skeleton->priv->context = g_main_context_ref_thread_default (); 1235s # } 1235s # 1235s # static void 1235s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1235s # { 1235s # GObjectClass *gobject_class; 1235s # GDBusInterfaceSkeletonClass *skeleton_class; 1235s # 1235s # gobject_class = G_OBJECT_CLASS (klass); 1235s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1235s # 1235s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1235s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1235s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1235s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1235s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1235s # 1235s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1235s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1235s # #endif 1235s # } 1235s # 1235s # static void 1235s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1235s # { 1235s # } 1235s # 1235s # /** 1235s # * org_project_callable_iface_skeleton_new: 1235s # * 1235s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1235s # * 1235s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1235s # */ 1235s # OrgProjectCallableIface * 1235s # org_project_callable_iface_skeleton_new (void) 1235s # { 1235s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1235s # } 1235s # 1235s # /* ------------------------------------------------------------------------ 1235s # * Code for interface org.project.OtherCallableIface 1235s # * ------------------------------------------------------------------------ 1235s # */ 1235s # 1235s # /** 1235s # * SECTION:OrgProjectOtherCallableIface 1235s # * @title: OrgProjectOtherCallableIface 1235s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1235s # * 1235s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1235s # */ 1235s # 1235s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1235s # 1235s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 1235s # { 1235s # { 1235s # -1, 1235s # (gchar *) "SimpleMethod", 1235s # NULL, 1235s # NULL, 1235s # NULL 1235s # }, 1235s # "handle-simple-method", 1235s # FALSE 1235s # }; 1235s # 1235s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1235s # { 1235s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 1235s # NULL 1235s # }; 1235s # 1235s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1235s # { 1235s # { 1235s # -1, 1235s # (gchar *) "org.project.OtherCallableIface", 1235s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1235s # NULL, 1235s # NULL, 1235s # NULL 1235s # }, 1235s # "org-project-other-callable-iface", 1235s # }; 1235s # 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_interface_info: 1235s # * 1235s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1235s # * 1235s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1235s # */ 1235s # GDBusInterfaceInfo * 1235s # org_project_other_callable_iface_interface_info (void) 1235s # { 1235s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1235s # } 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_override_properties: 1235s # * @klass: The class structure for a #GObject derived class. 1235s # * @property_id_begin: The property id to assign to the first overridden property. 1235s # * 1235s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1235s # * The properties are overridden in the order they are defined. 1235s # * 1235s # * Returns: The last property id. 1235s # */ 1235s # guint 1235s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1235s # { 1235s # return property_id_begin - 1; 1235s # } 1235s # 1235s # 1235s # inline static void 1235s # org_project_other_callable_iface_method_marshal_simple_method ( 1235s # GClosure *closure, 1235s # GValue *return_value, 1235s # unsigned int n_param_values, 1235s # const GValue *param_values, 1235s # void *invocation_hint, 1235s # void *marshal_data) 1235s # { 1235s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1235s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1235s # } 1235s # 1235s # 1235s # /** 1235s # * OrgProjectOtherCallableIface: 1235s # * 1235s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1235s # */ 1235s # 1235s # /** 1235s # * OrgProjectOtherCallableIfaceIface: 1235s # * @parent_iface: The parent interface. 1235s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 1235s # * 1235s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1235s # */ 1235s # 1235s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1235s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1235s # 1235s # static void 1235s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1235s # { 1235s # /* GObject signals for incoming D-Bus method calls: */ 1235s # /** 1235s # * OrgProjectOtherCallableIface::handle-simple-method: 1235s # * @object: A #OrgProjectOtherCallableIface. 1235s # * @invocation: A #GDBusMethodInvocation. 1235s # * 1235s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1235s # * 1235s # * 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. 1235s # * 1235s # * 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. 1235s # */ 1235s # g_signal_new ("handle-simple-method", 1235s # G_TYPE_FROM_INTERFACE (iface), 1235s # G_SIGNAL_RUN_LAST, 1235s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 1235s # g_signal_accumulator_true_handled, 1235s # NULL, 1235s # org_project_other_callable_iface_method_marshal_simple_method, 1235s # G_TYPE_BOOLEAN, 1235s # 1, 1235s # G_TYPE_DBUS_METHOD_INVOCATION); 1235s # 1235s # } 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_call_simple_method: 1235s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1235s # * @user_data: User data to pass to @callback. 1235s # * 1235s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1235s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1235s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 1235s # * 1235s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1235s # */ 1235s # void 1235s # org_project_other_callable_iface_call_simple_method ( 1235s # OrgProjectOtherCallableIface *proxy, 1235s # GCancellable *cancellable, 1235s # GAsyncReadyCallback callback, 1235s # gpointer user_data) 1235s # { 1235s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1235s # "SimpleMethod", 1235s # g_variant_new ("()"), 1235s # G_DBUS_CALL_FLAGS_NONE, 1235s # -1, 1235s # cancellable, 1235s # callback, 1235s # user_data); 1235s # } 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_call_simple_method_finish: 1235s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1235s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 1235s # * @error: Return location for error or %NULL. 1235s # * 1235s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 1235s # * 1235s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1235s # */ 1235s # gboolean 1235s # org_project_other_callable_iface_call_simple_method_finish ( 1235s # OrgProjectOtherCallableIface *proxy, 1235s # GAsyncResult *res, 1235s # GError **error) 1235s # { 1235s # GVariant *_ret; 1235s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1235s # if (_ret == NULL) 1235s # goto _out; 1235s # g_variant_get (_ret, 1235s # "()"); 1235s # g_variant_unref (_ret); 1235s # _out: 1235s # return _ret != NULL; 1235s # } 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_call_simple_method_sync: 1235s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @error: Return location for error or %NULL. 1235s # * 1235s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1235s # * 1235s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 1235s # * 1235s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1235s # */ 1235s # gboolean 1235s # org_project_other_callable_iface_call_simple_method_sync ( 1235s # OrgProjectOtherCallableIface *proxy, 1235s # GCancellable *cancellable, 1235s # GError **error) 1235s # { 1235s # GVariant *_ret; 1235s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1235s # "SimpleMethod", 1235s # g_variant_new ("()"), 1235s # G_DBUS_CALL_FLAGS_NONE, 1235s # -1, 1235s # cancellable, 1235s # error); 1235s # if (_ret == NULL) 1235s # goto _out; 1235s # g_variant_get (_ret, 1235s # "()"); 1235s # g_variant_unref (_ret); 1235s # _out: 1235s # return _ret != NULL; 1235s # } 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_complete_simple_method: 1235s # * @object: A #OrgProjectOtherCallableIface. 1235s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1235s # * 1235s # * 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. 1235s # * 1235s # * This method will free @invocation, you cannot use it afterwards. 1235s # */ 1235s # void 1235s # org_project_other_callable_iface_complete_simple_method ( 1235s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1235s # GDBusMethodInvocation *invocation) 1235s # { 1235s # g_dbus_method_invocation_return_value (invocation, 1235s # g_variant_new ("()")); 1235s # } 1235s # 1235s # /* ------------------------------------------------------------------------ */ 1235s # 1235s # /** 1235s # * OrgProjectOtherCallableIfaceProxy: 1235s # * 1235s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1235s # */ 1235s # 1235s # /** 1235s # * OrgProjectOtherCallableIfaceProxyClass: 1235s # * @parent_class: The parent class. 1235s # * 1235s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1235s # */ 1235s # 1235s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1235s # { 1235s # GData *qdata; 1235s # }; 1235s # 1235s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1235s # 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1235s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1235s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1235s # 1235s # #else 1235s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1235s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1235s # 1235s # #endif 1235s # static void 1235s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1235s # { 1235s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1235s # g_datalist_clear (&proxy->priv->qdata); 1235s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1235s # } 1235s # 1235s # static void 1235s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1235s # guint prop_id G_GNUC_UNUSED, 1235s # GValue *value G_GNUC_UNUSED, 1235s # GParamSpec *pspec G_GNUC_UNUSED) 1235s # { 1235s # } 1235s # 1235s # static void 1235s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1235s # guint prop_id G_GNUC_UNUSED, 1235s # const GValue *value G_GNUC_UNUSED, 1235s # GParamSpec *pspec G_GNUC_UNUSED) 1235s # { 1235s # } 1235s # 1235s # static void 1235s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1235s # const gchar *sender_name G_GNUC_UNUSED, 1235s # const gchar *signal_name, 1235s # GVariant *parameters) 1235s # { 1235s # _ExtendedGDBusSignalInfo *info; 1235s # GVariantIter iter; 1235s # GVariant *child; 1235s # GValue *paramv; 1235s # gsize num_params; 1235s # gsize n; 1235s # guint signal_id; 1235s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1235s # if (info == NULL) 1235s # return; 1235s # num_params = g_variant_n_children (parameters); 1235s # paramv = g_new0 (GValue, num_params + 1); 1235s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1235s # g_value_set_object (¶mv[0], proxy); 1235s # g_variant_iter_init (&iter, parameters); 1235s # n = 1; 1235s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1235s # { 1235s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1235s # if (arg_info->use_gvariant) 1235s # { 1235s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1235s # g_value_set_variant (¶mv[n], child); 1235s # n++; 1235s # } 1235s # else 1235s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1235s # g_variant_unref (child); 1235s # } 1235s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1235s # g_signal_emitv (paramv, signal_id, 0, NULL); 1235s # for (n = 0; n < num_params + 1; n++) 1235s # g_value_unset (¶mv[n]); 1235s # g_free (paramv); 1235s # } 1235s # 1235s # static void 1235s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1235s # GVariant *changed_properties, 1235s # const gchar *const *invalidated_properties) 1235s # { 1235s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1235s # guint n; 1235s # const gchar *key; 1235s # GVariantIter *iter; 1235s # _ExtendedGDBusPropertyInfo *info; 1235s # g_variant_get (changed_properties, "a{sv}", &iter); 1235s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1235s # { 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1235s # g_datalist_remove_data (&proxy->priv->qdata, key); 1235s # if (info != NULL) 1235s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1235s # } 1235s # g_variant_iter_free (iter); 1235s # for (n = 0; invalidated_properties[n] != NULL; n++) 1235s # { 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1235s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1235s # if (info != NULL) 1235s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1235s # } 1235s # } 1235s # 1235s # static void 1235s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1235s # { 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1235s # #else 1235s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1235s # #endif 1235s # 1235s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1235s # } 1235s # 1235s # static void 1235s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1235s # { 1235s # GObjectClass *gobject_class; 1235s # GDBusProxyClass *proxy_class; 1235s # 1235s # gobject_class = G_OBJECT_CLASS (klass); 1235s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1235s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1235s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1235s # 1235s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1235s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1235s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1235s # 1235s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1235s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1235s # #endif 1235s # } 1235s # 1235s # static void 1235s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1235s # { 1235s # } 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_proxy_new: 1235s # * @connection: A #GDBusConnection. 1235s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1235s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1235s # * @object_path: An object path. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1235s # * @user_data: User data to pass to @callback. 1235s # * 1235s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1235s # * 1235s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1235s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1235s # * 1235s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1235s # */ 1235s # void 1235s # org_project_other_callable_iface_proxy_new ( 1235s # GDBusConnection *connection, 1235s # GDBusProxyFlags flags, 1235s # const gchar *name, 1235s # const gchar *object_path, 1235s # GCancellable *cancellable, 1235s # GAsyncReadyCallback callback, 1235s # gpointer user_data) 1235s # { 1235s # 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); 1235s # } 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_proxy_new_finish: 1235s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1235s # * @error: Return location for error or %NULL 1235s # * 1235s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1235s # * 1235s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1235s # */ 1235s # OrgProjectOtherCallableIface * 1235s # org_project_other_callable_iface_proxy_new_finish ( 1235s # GAsyncResult *res, 1235s # GError **error) 1235s # { 1235s # GObject *ret; 1235s # GObject *source_object; 1235s # source_object = g_async_result_get_source_object (res); 1235s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1235s # g_object_unref (source_object); 1235s # if (ret != NULL) 1235s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1235s # else 1235s # return NULL; 1235s # } 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_proxy_new_sync: 1235s # * @connection: A #GDBusConnection. 1235s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1235s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1235s # * @object_path: An object path. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @error: Return location for error or %NULL 1235s # * 1235s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1235s # * 1235s # * The calling thread is blocked until a reply is received. 1235s # * 1235s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1235s # * 1235s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1235s # */ 1235s # OrgProjectOtherCallableIface * 1235s # org_project_other_callable_iface_proxy_new_sync ( 1235s # GDBusConnection *connection, 1235s # GDBusProxyFlags flags, 1235s # const gchar *name, 1235s # const gchar *object_path, 1235s # GCancellable *cancellable, 1235s # GError **error) 1235s # { 1235s # GInitable *ret; 1235s # 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); 1235s # if (ret != NULL) 1235s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1235s # else 1235s # return NULL; 1235s # } 1235s # 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_proxy_new_for_bus: 1235s # * @bus_type: A #GBusType. 1235s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1235s # * @name: A bus name (well-known or unique). 1235s # * @object_path: An object path. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1235s # * @user_data: User data to pass to @callback. 1235s # * 1235s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1235s # * 1235s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1235s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1235s # * 1235s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1235s # */ 1235s # void 1235s # org_project_other_callable_iface_proxy_new_for_bus ( 1235s # GBusType bus_type, 1235s # GDBusProxyFlags flags, 1235s # const gchar *name, 1235s # const gchar *object_path, 1235s # GCancellable *cancellable, 1235s # GAsyncReadyCallback callback, 1235s # gpointer user_data) 1235s # { 1235s # 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); 1235s # } 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1235s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1235s # * @error: Return location for error or %NULL 1235s # * 1235s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1235s # * 1235s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1235s # */ 1235s # OrgProjectOtherCallableIface * 1235s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1235s # GAsyncResult *res, 1235s # GError **error) 1235s # { 1235s # GObject *ret; 1235s # GObject *source_object; 1235s # source_object = g_async_result_get_source_object (res); 1235s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1235s # g_object_unref (source_object); 1235s # if (ret != NULL) 1235s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1235s # else 1235s # return NULL; 1235s # } 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1235s # * @bus_type: A #GBusType. 1235s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1235s # * @name: A bus name (well-known or unique). 1235s # * @object_path: An object path. 1235s # * @cancellable: (nullable): A #GCancellable or %NULL. 1235s # * @error: Return location for error or %NULL 1235s # * 1235s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1235s # * 1235s # * The calling thread is blocked until a reply is received. 1235s # * 1235s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1235s # * 1235s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1235s # */ 1235s # OrgProjectOtherCallableIface * 1235s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1235s # GBusType bus_type, 1235s # GDBusProxyFlags flags, 1235s # const gchar *name, 1235s # const gchar *object_path, 1235s # GCancellable *cancellable, 1235s # GError **error) 1235s # { 1235s # GInitable *ret; 1235s # 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); 1235s # if (ret != NULL) 1235s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1235s # else 1235s # return NULL; 1235s # } 1235s # 1235s # 1235s # /* ------------------------------------------------------------------------ */ 1235s # 1235s # /** 1235s # * OrgProjectOtherCallableIfaceSkeleton: 1235s # * 1235s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1235s # */ 1235s # 1235s # /** 1235s # * OrgProjectOtherCallableIfaceSkeletonClass: 1235s # * @parent_class: The parent class. 1235s # * 1235s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1235s # */ 1235s # 1235s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1235s # { 1235s # GValue *properties; 1235s # GList *changed_properties; 1235s # GSource *changed_properties_idle_source; 1235s # GMainContext *context; 1235s # GMutex lock; 1235s # }; 1235s # 1235s # static void 1235s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1235s # GDBusConnection *connection G_GNUC_UNUSED, 1235s # const gchar *sender G_GNUC_UNUSED, 1235s # const gchar *object_path G_GNUC_UNUSED, 1235s # const gchar *interface_name, 1235s # const gchar *method_name, 1235s # GVariant *parameters, 1235s # GDBusMethodInvocation *invocation, 1235s # gpointer user_data) 1235s # { 1235s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1235s # _ExtendedGDBusMethodInfo *info; 1235s # GVariantIter iter; 1235s # GVariant *child; 1235s # GValue *paramv; 1235s # gsize num_params; 1235s # guint num_extra; 1235s # gsize n; 1235s # guint signal_id; 1235s # GValue return_value = G_VALUE_INIT; 1235s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1235s # g_assert (info != NULL); 1235s # num_params = g_variant_n_children (parameters); 1235s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1235s # n = 0; 1235s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1235s # g_value_set_object (¶mv[n++], skeleton); 1235s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1235s # g_value_set_object (¶mv[n++], invocation); 1235s # if (info->pass_fdlist) 1235s # { 1235s # #ifdef G_OS_UNIX 1235s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1235s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1235s # #else 1235s # g_assert_not_reached (); 1235s # #endif 1235s # } 1235s # g_variant_iter_init (&iter, parameters); 1235s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1235s # { 1235s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1235s # if (arg_info->use_gvariant) 1235s # { 1235s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1235s # g_value_set_variant (¶mv[n], child); 1235s # n++; 1235s # } 1235s # else 1235s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1235s # g_variant_unref (child); 1235s # } 1235s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1235s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1235s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1235s # if (!g_value_get_boolean (&return_value)) 1235s # 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); 1235s # g_value_unset (&return_value); 1235s # for (n = 0; n < num_params + num_extra; n++) 1235s # g_value_unset (¶mv[n]); 1235s # g_free (paramv); 1235s # } 1235s # 1235s # static GVariant * 1235s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1235s # GDBusConnection *connection G_GNUC_UNUSED, 1235s # const gchar *sender G_GNUC_UNUSED, 1235s # const gchar *object_path G_GNUC_UNUSED, 1235s # const gchar *interface_name G_GNUC_UNUSED, 1235s # const gchar *property_name, 1235s # GError **error, 1235s # gpointer user_data) 1235s # { 1235s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1235s # GValue value = G_VALUE_INIT; 1235s # GParamSpec *pspec; 1235s # _ExtendedGDBusPropertyInfo *info; 1235s # GVariant *ret; 1235s # ret = NULL; 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1235s # g_assert (info != NULL); 1235s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1235s # if (pspec == NULL) 1235s # { 1235s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1235s # } 1235s # else 1235s # { 1235s # g_value_init (&value, pspec->value_type); 1235s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1235s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1235s # g_value_unset (&value); 1235s # } 1235s # return ret; 1235s # } 1235s # 1235s # static gboolean 1235s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1235s # GDBusConnection *connection G_GNUC_UNUSED, 1235s # const gchar *sender G_GNUC_UNUSED, 1235s # const gchar *object_path G_GNUC_UNUSED, 1235s # const gchar *interface_name G_GNUC_UNUSED, 1235s # const gchar *property_name, 1235s # GVariant *variant, 1235s # GError **error, 1235s # gpointer user_data) 1235s # { 1235s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1235s # GValue value = G_VALUE_INIT; 1235s # GParamSpec *pspec; 1235s # _ExtendedGDBusPropertyInfo *info; 1235s # gboolean ret; 1235s # ret = FALSE; 1235s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1235s # g_assert (info != NULL); 1235s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1235s # if (pspec == NULL) 1235s # { 1235s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1235s # } 1235s # else 1235s # { 1235s # if (info->use_gvariant) 1235s # g_value_set_variant (&value, variant); 1235s # else 1235s # g_dbus_gvariant_to_gvalue (variant, &value); 1235s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1235s # g_value_unset (&value); 1235s # ret = TRUE; 1235s # } 1235s # return ret; 1235s # } 1235s # 1235s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1235s # { 1235s # _org_project_other_callable_iface_skeleton_handle_method_call, 1235s # _org_project_other_callable_iface_skeleton_handle_get_property, 1235s # _org_project_other_callable_iface_skeleton_handle_set_property, 1235s # {NULL} 1235s # }; 1235s # 1235s # static GDBusInterfaceInfo * 1235s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1235s # { 1235s # return org_project_other_callable_iface_interface_info (); 1235s # } 1235s # 1235s # static GDBusInterfaceVTable * 1235s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1235s # { 1235s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1235s # } 1235s # 1235s # static GVariant * 1235s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1235s # { 1235s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1235s # 1235s # GVariantBuilder builder; 1235s # guint n; 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1235s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1235s # #else 1235s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1235s # #endif 1235s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1235s # goto out; 1235s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1235s # { 1235s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1235s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1235s # { 1235s # GVariant *value; 1235s # 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); 1235s # if (value != NULL) 1235s # { 1235s # g_variant_take_ref (value); 1235s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1235s # g_variant_unref (value); 1235s # } 1235s # } 1235s # } 1235s # out: 1235s # return g_variant_builder_end (&builder); 1235s # } 1235s # 1235s # static void 1235s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1235s # { 1235s # } 1235s # 1235s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1235s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1235s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1235s # 1235s # #else 1235s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1235s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1235s # 1235s # #endif 1235s # static void 1235s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1235s # { 1235s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1235s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1235s # if (skeleton->priv->changed_properties_idle_source != NULL) 1235s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1235s # g_main_context_unref (skeleton->priv->context); 1235s # g_mutex_clear (&skeleton->priv->lock); 1235s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1235s # } 1235s # 1235s # static void 1235s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1235s # { 1235s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1235s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1235s # #else 1235s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1235s # #endif 1235s # 1235s # g_mutex_init (&skeleton->priv->lock); 1235s # skeleton->priv->context = g_main_context_ref_thread_default (); 1235s # } 1235s # 1235s # static void 1235s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1235s # { 1235s # GObjectClass *gobject_class; 1235s # GDBusInterfaceSkeletonClass *skeleton_class; 1235s # 1235s # gobject_class = G_OBJECT_CLASS (klass); 1235s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1235s # 1235s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1235s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1235s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1235s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1235s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1235s # 1235s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1235s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1235s # #endif 1235s # } 1235s # 1235s # static void 1235s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1235s # { 1235s # } 1235s # 1235s # /** 1235s # * org_project_other_callable_iface_skeleton_new: 1235s # * 1235s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1235s # * 1235s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1235s # */ 1235s # OrgProjectOtherCallableIface * 1235s # org_project_other_callable_iface_skeleton_new (void) 1235s # { 1235s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1235s # } 1235s # Error: 1236s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 1236s # gdbus-codegen: /usr/bin/gdbus-codegen 1236s # tmpdir: /tmp/tmpgp73gifc 1236s # /tmp/tmpgp73gifc/tmpokg_mlzw.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpokg_mlzw.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # gboolean arg_arg_b, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_boolean (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_b", 1236s # (gchar *) "b", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodB", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-b", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_b: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-b", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_b, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_b: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_b: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_b ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # gboolean arg_arg_b, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodB", 1236s # g_variant_new ("(b)", 1236s # arg_arg_b), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_b_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_b_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_b_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_b: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_b_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # gboolean arg_arg_b, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodB", 1236s # g_variant_new ("(b)", 1236s # arg_arg_b), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_b: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_b ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpui2th_ul.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpui2th_ul.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # guchar arg_arg_y, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_uchar (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_y", 1236s # (gchar *) "y", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodY", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-y", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_y: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-y", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_y, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_y: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_y: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_y ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # guchar arg_arg_y, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodY", 1236s # g_variant_new ("(y)", 1236s # arg_arg_y), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_y_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_y_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_y_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_y: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_y_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # guchar arg_arg_y, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodY", 1236s # g_variant_new ("(y)", 1236s # arg_arg_y), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_y: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_y ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpgxo7xqcg.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpgxo7xqcg.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # gint16 arg_arg_n, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_int (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_n", 1236s # (gchar *) "n", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodN", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-n", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_n: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-n", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_n, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_n: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_n: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_n ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # gint16 arg_arg_n, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodN", 1236s # g_variant_new ("(n)", 1236s # arg_arg_n), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_n_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_n_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_n_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_n: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_n_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # gint16 arg_arg_n, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodN", 1236s # g_variant_new ("(n)", 1236s # arg_arg_n), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_n: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_n ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpv79hj9b_.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpv79hj9b_.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # guint16 arg_arg_q, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_uint (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_q", 1236s # (gchar *) "q", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodQ", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-q", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_q: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-q", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_q, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_q: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_q: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_q ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # guint16 arg_arg_q, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodQ", 1236s # g_variant_new ("(q)", 1236s # arg_arg_q), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_q_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_q_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_q_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_q: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_q_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # guint16 arg_arg_q, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodQ", 1236s # g_variant_new ("(q)", 1236s # arg_arg_q), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_q: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_q ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmp7nagjg_4.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmp7nagjg_4.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # gint arg_arg_i, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_int (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_i", 1236s # (gchar *) "i", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodI", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-i", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_i: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-i", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_i, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_i: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_i: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_i ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # gint arg_arg_i, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodI", 1236s # g_variant_new ("(i)", 1236s # arg_arg_i), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_i_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_i_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_i_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_i: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_i_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # gint arg_arg_i, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodI", 1236s # g_variant_new ("(i)", 1236s # arg_arg_i), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_i: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_i ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpihzm8m28.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpihzm8m28.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # guint arg_arg_u, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_uint (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_u", 1236s # (gchar *) "u", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodU", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-u", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_u: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-u", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_u, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_u: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_u: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_u ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # guint arg_arg_u, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodU", 1236s # g_variant_new ("(u)", 1236s # arg_arg_u), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_u_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_u_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_u_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_u: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_u_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # guint arg_arg_u, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodU", 1236s # g_variant_new ("(u)", 1236s # arg_arg_u), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_u: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_u ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpi96q68lo.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpi96q68lo.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # gint64 arg_arg_x, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_int64 (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_x", 1236s # (gchar *) "x", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodX", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-x", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_x: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-x", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_x, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_x: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_x: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_x ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # gint64 arg_arg_x, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodX", 1236s # g_variant_new ("(x)", 1236s # arg_arg_x), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_x_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_x_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_x_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_x: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_x_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # gint64 arg_arg_x, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodX", 1236s # g_variant_new ("(x)", 1236s # arg_arg_x), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_x: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_x ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpd1kgdvob.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpd1kgdvob.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # guint64 arg_arg_t, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_uint64 (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_t", 1236s # (gchar *) "t", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodT", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-t", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_t: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-t", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_t, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_t: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_t: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_t ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # guint64 arg_arg_t, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodT", 1236s # g_variant_new ("(t)", 1236s # arg_arg_t), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_t_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_t_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_t_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_t: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_t_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # guint64 arg_arg_t, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodT", 1236s # g_variant_new ("(t)", 1236s # arg_arg_t), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_t: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_t ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpjkhvngpi.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpjkhvngpi.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # gdouble arg_arg_d, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_double (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_d", 1236s # (gchar *) "d", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodD", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-d", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_d: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-d", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_d, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_d: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_d: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_d ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # gdouble arg_arg_d, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodD", 1236s # g_variant_new ("(d)", 1236s # arg_arg_d), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_d_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_d_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_d_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_d: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_d_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # gdouble arg_arg_d, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodD", 1236s # g_variant_new ("(d)", 1236s # arg_arg_d), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_d: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_d ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpwzw0y3as.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpwzw0y3as.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # const gchar *arg_arg_s, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_string (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_s", 1236s # (gchar *) "s", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodS", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-s", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_s: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-s", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_s, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_s: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_s: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_s ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *arg_arg_s, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodS", 1236s # g_variant_new ("(s)", 1236s # arg_arg_s), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_s_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_s_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_s_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_s: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_s_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *arg_arg_s, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodS", 1236s # g_variant_new ("(s)", 1236s # arg_arg_s), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_s: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_s ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmp3u0ka1p0.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmp3u0ka1p0.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # const gchar *arg_arg_o, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_string (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_o", 1236s # (gchar *) "o", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodO", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-o", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_o: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-o", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_o, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_o: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_o: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_o ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *arg_arg_o, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodO", 1236s # g_variant_new ("(o)", 1236s # arg_arg_o), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_o_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_o_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_o_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_o: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_o_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *arg_arg_o, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodO", 1236s # g_variant_new ("(o)", 1236s # arg_arg_o), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_o: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_o ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpv_45t4x6.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpv_45t4x6.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # const gchar *arg_arg_g, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_string (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_g", 1236s # (gchar *) "g", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodG", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-g", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_g: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-g", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_g, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_g: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_g: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_g ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *arg_arg_g, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodG", 1236s # g_variant_new ("(g)", 1236s # arg_arg_g), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_g_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_g_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_g_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_g: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_g_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *arg_arg_g, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodG", 1236s # g_variant_new ("(g)", 1236s # arg_arg_g), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_g: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_g ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpsw46p7pg.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpsw46p7pg.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # GVariant *arg_arg_h, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_variant (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_h", 1236s # (gchar *) "h", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodH", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-h", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_h: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-h", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_h, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_h: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_h: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_h ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GVariant *arg_arg_h, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodH", 1236s # g_variant_new ("(@h)", 1236s # arg_arg_h), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_h_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_h_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_h_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_h: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_h_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GVariant *arg_arg_h, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodH", 1236s # g_variant_new ("(@h)", 1236s # arg_arg_h), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_h: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_h ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpuxjlk51p.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpuxjlk51p.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # const gchar *arg_arg_ay, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_string (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_ay", 1236s # (gchar *) "ay", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodAy", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-ay", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_ay: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-ay", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_ay: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_ay: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_ay ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *arg_arg_ay, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodAy", 1236s # g_variant_new ("(^ay)", 1236s # arg_arg_ay), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_ay: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *arg_arg_ay, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodAy", 1236s # g_variant_new ("(^ay)", 1236s # arg_arg_ay), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_ay: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_ay ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpm8m6ogo2.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpm8m6ogo2.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # const gchar *const *arg_arg_as, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_boxed (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_as", 1236s # (gchar *) "as", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodAs", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-as", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_as: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-as", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_as, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_as: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_as: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_as ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *const *arg_arg_as, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodAs", 1236s # g_variant_new ("(^as)", 1236s # arg_arg_as), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_as_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_as_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_as_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_as: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_as_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *const *arg_arg_as, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodAs", 1236s # g_variant_new ("(^as)", 1236s # arg_arg_as), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_as: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_as ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmppth_40b8.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmppth_40b8.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # const gchar *const *arg_arg_ao, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_boxed (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_ao", 1236s # (gchar *) "ao", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodAo", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-ao", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_ao: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-ao", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_ao: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_ao: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_ao ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *const *arg_arg_ao, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodAo", 1236s # g_variant_new ("(^ao)", 1236s # arg_arg_ao), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_ao: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *const *arg_arg_ao, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodAo", 1236s # g_variant_new ("(^ao)", 1236s # arg_arg_ao), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_ao: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_ao ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpwtgptc70.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpwtgptc70.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # const gchar *const *arg_arg_aay, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_boxed (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_aay", 1236s # (gchar *) "aay", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodAay", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-aay", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_aay: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-aay", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_aay: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_aay: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_aay ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *const *arg_arg_aay, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodAay", 1236s # g_variant_new ("(^aay)", 1236s # arg_arg_aay), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_aay: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # const gchar *const *arg_arg_aay, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodAay", 1236s # g_variant_new ("(^aay)", 1236s # arg_arg_aay), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_aay: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_aay ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1236s # 1236s # /tmp/tmpgp73gifc/tmpc7yxpaw9.xml: 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # 1236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgp73gifc/tmpc7yxpaw9.xml', '--output', '-', '--body'] 1236s # Return code: 0 1236s # Output: 1236s # /* 1236s # * This file is generated by gdbus-codegen, do not modify it. 1236s # * 1236s # * The license of this code is the same as for the D-Bus interface description 1236s # * it was derived from. Note that it links to GLib, so must comply with the 1236s # * LGPL linking clauses. 1236s # */ 1236s # 1236s # #ifdef HAVE_CONFIG_H 1236s # # include "config.h" 1236s # #endif 1236s # 1236s # #include 1236s # #ifdef G_OS_UNIX 1236s # # include 1236s # #endif 1236s # 1236s # #ifdef G_ENABLE_DEBUG 1236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1236s # #else /* !G_ENABLE_DEBUG */ 1236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1236s # * Do not access GValues directly in your code. Instead, use the 1236s # * g_value_get_*() functions 1236s # */ 1236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1236s # #endif /* !G_ENABLE_DEBUG */ 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusArgInfo parent_struct; 1236s # gboolean use_gvariant; 1236s # } _ExtendedGDBusArgInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusMethodInfo parent_struct; 1236s # const gchar *signal_name; 1236s # gboolean pass_fdlist; 1236s # } _ExtendedGDBusMethodInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusSignalInfo parent_struct; 1236s # const gchar *signal_name; 1236s # } _ExtendedGDBusSignalInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusPropertyInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # guint use_gvariant : 1; 1236s # guint emits_changed_signal : 1; 1236s # } _ExtendedGDBusPropertyInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # GDBusInterfaceInfo parent_struct; 1236s # const gchar *hyphen_name; 1236s # } _ExtendedGDBusInterfaceInfo; 1236s # 1236s # typedef struct 1236s # { 1236s # const _ExtendedGDBusPropertyInfo *info; 1236s # guint prop_id; 1236s # GValue orig_value; /* the value before the change */ 1236s # } ChangedProperty; 1236s # 1236s # static void 1236s # _changed_property_free (ChangedProperty *data) 1236s # { 1236s # g_value_unset (&data->orig_value); 1236s # g_free (data); 1236s # } 1236s # 1236s # static gboolean 1236s # _g_strv_equal0 (gchar **a, gchar **b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # guint n; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # if (g_strv_length (a) != g_strv_length (b)) 1236s # goto out; 1236s # for (n = 0; a[n] != NULL; n++) 1236s # if (g_strcmp0 (a[n], b[n]) != 0) 1236s # goto out; 1236s # ret = TRUE; 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _g_variant_equal0 (GVariant *a, GVariant *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # if (a == NULL && b == NULL) 1236s # { 1236s # ret = TRUE; 1236s # goto out; 1236s # } 1236s # if (a == NULL || b == NULL) 1236s # goto out; 1236s # ret = g_variant_equal (a, b); 1236s # out: 1236s # return ret; 1236s # } 1236s # 1236s # G_GNUC_UNUSED static gboolean 1236s # _g_value_equal (const GValue *a, const GValue *b) 1236s # { 1236s # gboolean ret = FALSE; 1236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1236s # switch (G_VALUE_TYPE (a)) 1236s # { 1236s # case G_TYPE_BOOLEAN: 1236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1236s # break; 1236s # case G_TYPE_UCHAR: 1236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1236s # break; 1236s # case G_TYPE_INT: 1236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1236s # break; 1236s # case G_TYPE_UINT: 1236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1236s # break; 1236s # case G_TYPE_INT64: 1236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1236s # break; 1236s # case G_TYPE_UINT64: 1236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1236s # break; 1236s # case G_TYPE_DOUBLE: 1236s # { 1236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1236s # gdouble da = g_value_get_double (a); 1236s # gdouble db = g_value_get_double (b); 1236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1236s # } 1236s # break; 1236s # case G_TYPE_STRING: 1236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1236s # break; 1236s # case G_TYPE_VARIANT: 1236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1236s # break; 1236s # default: 1236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1236s # else 1236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1236s # break; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static void 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint G_GNUC_UNUSED, 1236s # void *marshal_data) 1236s # { 1236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1236s # (void *data1, 1236s # GDBusMethodInvocation *arg_method_invocation, 1236s # GVariant *arg_arg_asv, 1236s # void *data2); 1236s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1236s # GCClosure *cc = (GCClosure*) closure; 1236s # void *data1, *data2; 1236s # gboolean v_return; 1236s # 1236s # g_return_if_fail (return_value != NULL); 1236s # g_return_if_fail (n_param_values == 3); 1236s # 1236s # if (G_CCLOSURE_SWAP_DATA (closure)) 1236s # { 1236s # data1 = closure->data; 1236s # data2 = g_value_peek_pointer (param_values + 0); 1236s # } 1236s # else 1236s # { 1236s # data1 = g_value_peek_pointer (param_values + 0); 1236s # data2 = closure->data; 1236s # } 1236s # 1236s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1236s # (marshal_data ? marshal_data : cc->callback); 1236s # 1236s # v_return = 1236s # callback (data1, 1236s # g_marshal_value_peek_object (param_values + 1), 1236s # g_marshal_value_peek_variant (param_values + 2), 1236s # data2); 1236s # 1236s # g_value_set_boolean (return_value, v_return); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ 1236s # * Code for interface org.project.UsefulInterface 1236s # * ------------------------------------------------------------------------ 1236s # */ 1236s # 1236s # /** 1236s # * SECTION:OrgProjectUsefulInterface 1236s # * @title: OrgProjectUsefulInterface 1236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1236s # * 1236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1236s # */ 1236s # 1236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1236s # 1236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "arg_asv", 1236s # (gchar *) "a{sv}", 1236s # NULL 1236s # }, 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "SingleArgMethodAsv", 1236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "handle-single-arg-method-asv", 1236s # FALSE 1236s # }; 1236s # 1236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1236s # { 1236s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1236s # NULL 1236s # }; 1236s # 1236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1236s # { 1236s # { 1236s # -1, 1236s # (gchar *) "org.project.UsefulInterface", 1236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1236s # NULL, 1236s # NULL, 1236s # NULL 1236s # }, 1236s # "org-project-useful-interface", 1236s # }; 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_interface_info: 1236s # * 1236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1236s # * 1236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1236s # */ 1236s # GDBusInterfaceInfo * 1236s # org_project_useful_interface_interface_info (void) 1236s # { 1236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_override_properties: 1236s # * @klass: The class structure for a #GObject derived class. 1236s # * @property_id_begin: The property id to assign to the first overridden property. 1236s # * 1236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1236s # * The properties are overridden in the order they are defined. 1236s # * 1236s # * Returns: The last property id. 1236s # */ 1236s # guint 1236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1236s # { 1236s # return property_id_begin - 1; 1236s # } 1236s # 1236s # 1236s # inline static void 1236s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1236s # GClosure *closure, 1236s # GValue *return_value, 1236s # unsigned int n_param_values, 1236s # const GValue *param_values, 1236s # void *invocation_hint, 1236s # void *marshal_data) 1236s # { 1236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1236s # } 1236s # 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterface: 1236s # * 1236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceIface: 1236s # * @parent_iface: The parent interface. 1236s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1236s # * 1236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1236s # */ 1236s # 1236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1236s # 1236s # static void 1236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1236s # { 1236s # /* GObject signals for incoming D-Bus method calls: */ 1236s # /** 1236s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: A #GDBusMethodInvocation. 1236s # * @arg_arg_asv: Argument passed by remote caller. 1236s # * 1236s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1236s # * 1236s # * 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. 1236s # * 1236s # * 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. 1236s # */ 1236s # g_signal_new ("handle-single-arg-method-asv", 1236s # G_TYPE_FROM_INTERFACE (iface), 1236s # G_SIGNAL_RUN_LAST, 1236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1236s # g_signal_accumulator_true_handled, 1236s # NULL, 1236s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1236s # G_TYPE_BOOLEAN, 1236s # 2, 1236s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1236s # 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_asv: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_asv: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1236s # */ 1236s # void 1236s # org_project_useful_interface_call_single_arg_method_asv ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GVariant *arg_arg_asv, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodAsv", 1236s # g_variant_new ("(@a{sv})", 1236s # arg_arg_asv), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # callback, 1236s # user_data); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1236s # * @arg_arg_asv: Argument to pass with the method invocation. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL. 1236s # * 1236s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1236s # * 1236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1236s # */ 1236s # gboolean 1236s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1236s # OrgProjectUsefulInterface *proxy, 1236s # GVariant *arg_arg_asv, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GVariant *_ret; 1236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1236s # "SingleArgMethodAsv", 1236s # g_variant_new ("(@a{sv})", 1236s # arg_arg_asv), 1236s # G_DBUS_CALL_FLAGS_NONE, 1236s # -1, 1236s # cancellable, 1236s # error); 1236s # if (_ret == NULL) 1236s # goto _out; 1236s # g_variant_get (_ret, 1236s # "()"); 1236s # g_variant_unref (_ret); 1236s # _out: 1236s # return _ret != NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_complete_single_arg_method_asv: 1236s # * @object: A #OrgProjectUsefulInterface. 1236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1236s # * 1236s # * 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. 1236s # * 1236s # * This method will free @invocation, you cannot use it afterwards. 1236s # */ 1236s # void 1236s # org_project_useful_interface_complete_single_arg_method_asv ( 1236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1236s # GDBusMethodInvocation *invocation) 1236s # { 1236s # g_dbus_method_invocation_return_value (invocation, 1236s # g_variant_new ("()")); 1236s # } 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxy: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceProxyClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceProxyPrivate 1236s # { 1236s # GData *qdata; 1236s # }; 1236s # 1236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_proxy_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1236s # g_datalist_clear (&proxy->priv->qdata); 1236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1236s # guint prop_id G_GNUC_UNUSED, 1236s # const GValue *value G_GNUC_UNUSED, 1236s # GParamSpec *pspec G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1236s # const gchar *sender_name G_GNUC_UNUSED, 1236s # const gchar *signal_name, 1236s # GVariant *parameters) 1236s # { 1236s # _ExtendedGDBusSignalInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # gsize n; 1236s # guint signal_id; 1236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1236s # if (info == NULL) 1236s # return; 1236s # num_params = g_variant_n_children (parameters); 1236s # paramv = g_new0 (GValue, num_params + 1); 1236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[0], proxy); 1236s # g_variant_iter_init (&iter, parameters); 1236s # n = 1; 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_signal_emitv (paramv, signal_id, 0, NULL); 1236s # for (n = 0; n < num_params + 1; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1236s # GVariant *changed_properties, 1236s # const gchar *const *invalidated_properties) 1236s # { 1236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1236s # guint n; 1236s # const gchar *key; 1236s # GVariantIter *iter; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # g_variant_get (changed_properties, "a{sv}", &iter); 1236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1236s # g_datalist_remove_data (&proxy->priv->qdata, key); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # g_variant_iter_free (iter); 1236s # for (n = 0; invalidated_properties[n] != NULL; n++) 1236s # { 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1236s # if (info != NULL) 1236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1236s # } 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1236s # #else 1236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1236s # #endif 1236s # 1236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusProxyClass *proxy_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1236s # 1236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_sync: 1236s # * @connection: A #GDBusConnection. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_sync ( 1236s # GDBusConnection *connection, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1236s # * @user_data: User data to pass to @callback. 1236s # * 1236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1236s # */ 1236s # void 1236s # org_project_useful_interface_proxy_new_for_bus ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GAsyncReadyCallback callback, 1236s # gpointer user_data) 1236s # { 1236s # 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); 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_finish: 1236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_finish ( 1236s # GAsyncResult *res, 1236s # GError **error) 1236s # { 1236s # GObject *ret; 1236s # GObject *source_object; 1236s # source_object = g_async_result_get_source_object (res); 1236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1236s # g_object_unref (source_object); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_proxy_new_for_bus_sync: 1236s # * @bus_type: A #GBusType. 1236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1236s # * @name: A bus name (well-known or unique). 1236s # * @object_path: An object path. 1236s # * @cancellable: (nullable): A #GCancellable or %NULL. 1236s # * @error: Return location for error or %NULL 1236s # * 1236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1236s # * 1236s # * The calling thread is blocked until a reply is received. 1236s # * 1236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_proxy_new_for_bus_sync ( 1236s # GBusType bus_type, 1236s # GDBusProxyFlags flags, 1236s # const gchar *name, 1236s # const gchar *object_path, 1236s # GCancellable *cancellable, 1236s # GError **error) 1236s # { 1236s # GInitable *ret; 1236s # 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); 1236s # if (ret != NULL) 1236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1236s # else 1236s # return NULL; 1236s # } 1236s # 1236s # 1236s # /* ------------------------------------------------------------------------ */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeleton: 1236s # * 1236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1236s # */ 1236s # 1236s # /** 1236s # * OrgProjectUsefulInterfaceSkeletonClass: 1236s # * @parent_class: The parent class. 1236s # * 1236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1236s # */ 1236s # 1236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1236s # { 1236s # GValue *properties; 1236s # GList *changed_properties; 1236s # GSource *changed_properties_idle_source; 1236s # GMainContext *context; 1236s # GMutex lock; 1236s # }; 1236s # 1236s # static void 1236s # _org_project_useful_interface_skeleton_handle_method_call ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name, 1236s # const gchar *method_name, 1236s # GVariant *parameters, 1236s # GDBusMethodInvocation *invocation, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # _ExtendedGDBusMethodInfo *info; 1236s # GVariantIter iter; 1236s # GVariant *child; 1236s # GValue *paramv; 1236s # gsize num_params; 1236s # guint num_extra; 1236s # gsize n; 1236s # guint signal_id; 1236s # GValue return_value = G_VALUE_INIT; 1236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1236s # g_assert (info != NULL); 1236s # num_params = g_variant_n_children (parameters); 1236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1236s # n = 0; 1236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_set_object (¶mv[n++], skeleton); 1236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1236s # g_value_set_object (¶mv[n++], invocation); 1236s # if (info->pass_fdlist) 1236s # { 1236s # #ifdef G_OS_UNIX 1236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1236s # #else 1236s # g_assert_not_reached (); 1236s # #endif 1236s # } 1236s # g_variant_iter_init (&iter, parameters); 1236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1236s # { 1236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1236s # if (arg_info->use_gvariant) 1236s # { 1236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1236s # g_value_set_variant (¶mv[n], child); 1236s # n++; 1236s # } 1236s # else 1236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1236s # g_variant_unref (child); 1236s # } 1236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1236s # if (!g_value_get_boolean (&return_value)) 1236s # 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); 1236s # g_value_unset (&return_value); 1236s # for (n = 0; n < num_params + num_extra; n++) 1236s # g_value_unset (¶mv[n]); 1236s # g_free (paramv); 1236s # } 1236s # 1236s # static GVariant * 1236s # _org_project_useful_interface_skeleton_handle_get_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # GVariant *ret; 1236s # ret = NULL; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # g_value_init (&value, pspec->value_type); 1236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1236s # g_value_unset (&value); 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static gboolean 1236s # _org_project_useful_interface_skeleton_handle_set_property ( 1236s # GDBusConnection *connection G_GNUC_UNUSED, 1236s # const gchar *sender G_GNUC_UNUSED, 1236s # const gchar *object_path G_GNUC_UNUSED, 1236s # const gchar *interface_name G_GNUC_UNUSED, 1236s # const gchar *property_name, 1236s # GVariant *variant, 1236s # GError **error, 1236s # gpointer user_data) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1236s # GValue value = G_VALUE_INIT; 1236s # GParamSpec *pspec; 1236s # _ExtendedGDBusPropertyInfo *info; 1236s # gboolean ret; 1236s # ret = FALSE; 1236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1236s # g_assert (info != NULL); 1236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1236s # if (pspec == NULL) 1236s # { 1236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1236s # } 1236s # else 1236s # { 1236s # if (info->use_gvariant) 1236s # g_value_set_variant (&value, variant); 1236s # else 1236s # g_dbus_gvariant_to_gvalue (variant, &value); 1236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1236s # g_value_unset (&value); 1236s # ret = TRUE; 1236s # } 1236s # return ret; 1236s # } 1236s # 1236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1236s # { 1236s # _org_project_useful_interface_skeleton_handle_method_call, 1236s # _org_project_useful_interface_skeleton_handle_get_property, 1236s # _org_project_useful_interface_skeleton_handle_set_property, 1236s # {NULL} 1236s # }; 1236s # 1236s # static GDBusInterfaceInfo * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return org_project_useful_interface_interface_info (); 1236s # } 1236s # 1236s # static GDBusInterfaceVTable * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1236s # { 1236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1236s # } 1236s # 1236s # static GVariant * 1236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1236s # 1236s # GVariantBuilder builder; 1236s # guint n; 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #else 1236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1236s # #endif 1236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1236s # goto out; 1236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1236s # { 1236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1236s # { 1236s # GVariant *value; 1236s # 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); 1236s # if (value != NULL) 1236s # { 1236s # g_variant_take_ref (value); 1236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1236s # g_variant_unref (value); 1236s # } 1236s # } 1236s # } 1236s # out: 1236s # return g_variant_builder_end (&builder); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #else 1236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1236s # 1236s # #endif 1236s # static void 1236s # org_project_useful_interface_skeleton_finalize (GObject *object) 1236s # { 1236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1236s # if (skeleton->priv->changed_properties_idle_source != NULL) 1236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1236s # g_main_context_unref (skeleton->priv->context); 1236s # g_mutex_clear (&skeleton->priv->lock); 1236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1236s # { 1236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1236s # #else 1236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1236s # #endif 1236s # 1236s # g_mutex_init (&skeleton->priv->lock); 1236s # skeleton->priv->context = g_main_context_ref_thread_default (); 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1236s # { 1236s # GObjectClass *gobject_class; 1236s # GDBusInterfaceSkeletonClass *skeleton_class; 1236s # 1236s # gobject_class = G_OBJECT_CLASS (klass); 1236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1236s # 1236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1236s # 1236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1236s # #endif 1236s # } 1236s # 1236s # static void 1236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1236s # { 1236s # } 1236s # 1236s # /** 1236s # * org_project_useful_interface_skeleton_new: 1236s # * 1236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1236s # * 1236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1236s # */ 1236s # OrgProjectUsefulInterface * 1236s # org_project_useful_interface_skeleton_new (void) 1236s # { 1236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1236s # } 1236s # Error: 1237s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 1237s # gdbus-codegen: /usr/bin/gdbus-codegen 1237s # tmpdir: /tmp/tmpcej3bprl 1237s # /tmp/tmpcej3bprl/tmpai8qbooe.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmpai8qbooe.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_b", 1237s # (gchar *) "b", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodB", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-b", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-b", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_b, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_b: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_b ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodB", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_b_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_b_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gboolean *out_arg_b, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(b)", 1237s # out_arg_b); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_b_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_b_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gboolean *out_arg_b, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodB", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(b)", 1237s # out_arg_b); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_b: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_b: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_b ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # gboolean arg_b) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(b)", 1237s # arg_b)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmpeq_olkh1.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmpeq_olkh1.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_y", 1237s # (gchar *) "y", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodY", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-y", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-y", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_y, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_y: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_y ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodY", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_y_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_y_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # guchar *out_arg_y, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(y)", 1237s # out_arg_y); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_y_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_y_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # guchar *out_arg_y, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodY", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(y)", 1237s # out_arg_y); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_y: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_y: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_y ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # guchar arg_y) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(y)", 1237s # arg_y)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmpuhzdhtjg.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmpuhzdhtjg.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_n", 1237s # (gchar *) "n", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodN", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-n", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-n", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_n, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_n: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_n ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodN", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_n_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_n_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gint16 *out_arg_n, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(n)", 1237s # out_arg_n); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_n_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_n_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gint16 *out_arg_n, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodN", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(n)", 1237s # out_arg_n); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_n: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_n: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_n ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # gint16 arg_n) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(n)", 1237s # arg_n)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmp4zysjvqy.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmp4zysjvqy.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_q", 1237s # (gchar *) "q", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodQ", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-q", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-q", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_q, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_q: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_q ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodQ", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_q_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_q_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # guint16 *out_arg_q, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(q)", 1237s # out_arg_q); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_q_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_q_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # guint16 *out_arg_q, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodQ", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(q)", 1237s # out_arg_q); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_q: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_q: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_q ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # guint16 arg_q) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(q)", 1237s # arg_q)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmpcyakyigr.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmpcyakyigr.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_i", 1237s # (gchar *) "i", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodI", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-i", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-i", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_i, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_i: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_i ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodI", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_i_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_i_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gint *out_arg_i, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(i)", 1237s # out_arg_i); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_i_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_i_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gint *out_arg_i, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodI", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(i)", 1237s # out_arg_i); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_i: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_i: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_i ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # gint arg_i) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(i)", 1237s # arg_i)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmphbjqmtzx.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmphbjqmtzx.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_u", 1237s # (gchar *) "u", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodU", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-u", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-u", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_u, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_u: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_u ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodU", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_u_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_u_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # guint *out_arg_u, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(u)", 1237s # out_arg_u); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_u_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_u_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # guint *out_arg_u, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodU", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(u)", 1237s # out_arg_u); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_u: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_u: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_u ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # guint arg_u) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(u)", 1237s # arg_u)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmpwyfq9w5j.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmpwyfq9w5j.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_x", 1237s # (gchar *) "x", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodX", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-x", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-x", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_x, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_x: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_x ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodX", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_x_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_x_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gint64 *out_arg_x, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(x)", 1237s # out_arg_x); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_x_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_x_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gint64 *out_arg_x, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodX", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(x)", 1237s # out_arg_x); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_x: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_x: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_x ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # gint64 arg_x) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(x)", 1237s # arg_x)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmp_x0kcoe3.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmp_x0kcoe3.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_t", 1237s # (gchar *) "t", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodT", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-t", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-t", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_t, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_t: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_t ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodT", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_t_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_t_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # guint64 *out_arg_t, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(t)", 1237s # out_arg_t); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_t_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_t_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # guint64 *out_arg_t, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodT", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(t)", 1237s # out_arg_t); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_t: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_t: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_t ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # guint64 arg_t) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(t)", 1237s # arg_t)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmphn1edaqk.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmphn1edaqk.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_d", 1237s # (gchar *) "d", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodD", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-d", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-d", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_d, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_d: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_d ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodD", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_d_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_d_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gdouble *out_arg_d, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(d)", 1237s # out_arg_d); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_d_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_d_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gdouble *out_arg_d, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodD", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(d)", 1237s # out_arg_d); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_d: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_d: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_d ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # gdouble arg_d) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(d)", 1237s # arg_d)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmp_xccsvoj.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmp_xccsvoj.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_s", 1237s # (gchar *) "s", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodS", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-s", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-s", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_s, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_s: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_s ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodS", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_s_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_s_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar **out_arg_s, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(s)", 1237s # out_arg_s); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_s_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_s_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar **out_arg_s, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodS", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(s)", 1237s # out_arg_s); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_s: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_s: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_s ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # const gchar *arg_s) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(s)", 1237s # arg_s)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmpezfv0_0p.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmpezfv0_0p.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_o", 1237s # (gchar *) "o", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodO", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-o", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-o", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_o, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_o: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_o ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodO", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_o_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_o_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar **out_arg_o, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(o)", 1237s # out_arg_o); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_o_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_o_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar **out_arg_o, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodO", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(o)", 1237s # out_arg_o); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_o: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_o: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_o ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # const gchar *arg_o) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(o)", 1237s # arg_o)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmpqjdplyw3.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmpqjdplyw3.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_g", 1237s # (gchar *) "g", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodG", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-g", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-g", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_g, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_g: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_g ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodG", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_g_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_g_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar **out_arg_g, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(g)", 1237s # out_arg_g); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_g_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_g_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar **out_arg_g, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodG", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(g)", 1237s # out_arg_g); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_g: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_g: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_g ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # const gchar *arg_g) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(g)", 1237s # arg_g)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmptmi6l09j.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmptmi6l09j.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_h", 1237s # (gchar *) "h", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodH", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-h", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-h", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_h, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_h: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_h ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodH", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_h_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_h_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GVariant **out_arg_h, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(@h)", 1237s # out_arg_h); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_h_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_h_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GVariant **out_arg_h, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodH", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(@h)", 1237s # out_arg_h); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_h: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_h: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_h ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # GVariant *arg_h) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(@h)", 1237s # arg_h)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmp4psbby__.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmp4psbby__.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_ay", 1237s # (gchar *) "ay", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodAy", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-ay", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first ov# Executing: glib/codegen.py.test 1237s erridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-ay", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_ay: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_ay ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodAy", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar **out_arg_ay, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(^ay)", 1237s # out_arg_ay); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar **out_arg_ay, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodAy", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(^ay)", 1237s # out_arg_ay); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_ay: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_ay: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_ay ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # const gchar *arg_ay) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(^ay)", 1237s # arg_ay)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmp281xce94.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmp281xce94.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_as", 1237s # (gchar *) "as", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodAs", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-as", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-as", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_as, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_as: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_as ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodAs", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_as_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_as_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar ***out_arg_as, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(^as)", 1237s # out_arg_as); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_as_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_as_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar ***out_arg_as, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodAs", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(^as)", 1237s # out_arg_as); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_as: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_as: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_as ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # const gchar *const *arg_as) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(^as)", 1237s # arg_as)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmpn6g047yp.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmpn6g047yp.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_ao", 1237s # (gchar *) "ao", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodAo", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-ao", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-ao", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_ao: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_ao ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodAo", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar ***out_arg_ao, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(^ao)", 1237s # out_arg_ao); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar ***out_arg_ao, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodAo", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(^ao)", 1237s # out_arg_ao); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_ao: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_ao: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_ao ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # const gchar *const *arg_ao) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(^ao)", 1237s # arg_ao)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmpfnqbpnrc.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmpfnqbpnrc.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_aay", 1237s # (gchar *) "aay", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodAay", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-aay", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-aay", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_aay: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_aay ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodAay", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar ***out_arg_aay, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(^aay)", 1237s # out_arg_aay); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # gchar ***out_arg_aay, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodAay", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(^aay)", 1237s # out_arg_aay); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_aay: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_aay: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_aay ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # const gchar *const *arg_aay) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(^aay)", 1237s # arg_aay)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s # 1237s # /tmp/tmpcej3bprl/tmp5bq9zi0d.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcej3bprl/tmp5bq9zi0d.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.UsefulInterface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectUsefulInterface 1237s # * @title: OrgProjectUsefulInterface 1237s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "arg_asv", 1237s # (gchar *) "a{sv}", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SingleArgMethodAsv", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-single-arg-method-asv", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1237s # { 1237s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.UsefulInterface", 1237s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-useful-interface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_useful_interface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1237s # */ 1237s # 1237s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-single-arg-method-asv", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_asv: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_useful_interface_call_single_arg_method_asv ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodAsv", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GVariant **out_arg_asv, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(@a{sv})", 1237s # out_arg_asv); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1237s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1237s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1237s # OrgProjectUsefulInterface *proxy, 1237s # GVariant **out_arg_asv, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SingleArgMethodAsv", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(@a{sv})", 1237s # out_arg_asv); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_complete_single_arg_method_asv: 1237s # * @object: A #OrgProjectUsefulInterface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @arg_asv: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_useful_interface_complete_single_arg_method_asv ( 1237s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # GVariant *arg_asv) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(@a{sv})", 1237s # arg_asv)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxy: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1237s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1237s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_useful_interface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeleton: 1237s # * 1237s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectUsefulInterfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_useful_interface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_useful_interface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_useful_interface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1237s # { 1237s # _org_project_useful_interface_skeleton_handle_method_call, 1237s # _org_project_useful_interface_skeleton_handle_get_property, 1237s # _org_project_useful_interface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_useful_interface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_useful_interface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_useful_interface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectUsefulInterface * 1237s # org_project_useful_interface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 1237s # gdbus-codegen: /usr/bin/gdbus-codegen 1237s # tmpdir: /tmp/tmpjramewka 1237s # /tmp/tmpjramewka/tmp7wppvtu4.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjramewka/tmp7wppvtu4.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # gboolean arg_an_b, 1237s # guchar arg_an_y, 1237s # gint16 arg_an_n, 1237s # guint16 arg_an_q, 1237s # gint arg_an_i, 1237s # guint arg_an_u, 1237s # gint64 arg_an_x, 1237s # guint64 arg_an_t, 1237s # gdouble arg_an_d, 1237s # const gchar *arg_an_s, 1237s # const gchar *arg_an_o, 1237s # const gchar *arg_an_g, 1237s # GVariant *arg_an_h, 1237s # const gchar *arg_an_ay, 1237s # const gchar *const *arg_an_as, 1237s # const gchar *const *arg_an_ao, 1237s # const gchar *const *arg_an_aay, 1237s # GVariant *arg_an_asv, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 20); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # g_marshal_value_peek_boolean (param_values + 2), 1237s # g_marshal_value_peek_uchar (param_values + 3), 1237s # g_marshal_value_peek_int (param_values + 4), 1237s # g_marshal_value_peek_uint (param_values + 5), 1237s # g_marshal_value_peek_int (param_values + 6), 1237s # g_marshal_value_peek_uint (param_values + 7), 1237s # g_marshal_value_peek_int64 (param_values + 8), 1237s # g_marshal_value_peek_uint64 (param_values + 9), 1237s # g_marshal_value_peek_double (param_values + 10), 1237s # g_marshal_value_peek_string (param_values + 11), 1237s # g_marshal_value_peek_string (param_values + 12), 1237s # g_marshal_value_peek_string (param_values + 13), 1237s # g_marshal_value_peek_variant (param_values + 14), 1237s # g_marshal_value_peek_string (param_values + 15), 1237s # g_marshal_value_peek_boxed (param_values + 16), 1237s # g_marshal_value_peek_boxed (param_values + 17), 1237s # g_marshal_value_peek_boxed (param_values + 18), 1237s # g_marshal_value_peek_variant (param_values + 19), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.CallableIface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectCallableIface 1237s # * @title: OrgProjectCallableIface 1237s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.CallableIface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_b", 1237s # (gchar *) "b", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_y", 1237s # (gchar *) "y", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_n", 1237s # (gchar *) "n", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_q", 1237s # (gchar *) "q", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_i", 1237s # (gchar *) "i", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_u", 1237s # (gchar *) "u", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_x", 1237s # (gchar *) "x", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_t", 1237s # (gchar *) "t", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_d", 1237s # (gchar *) "d", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_s", 1237s # (gchar *) "s", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_o", 1237s # (gchar *) "o", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_g", 1237s # (gchar *) "g", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_h", 1237s # (gchar *) "h", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_ay", 1237s # (gchar *) "ay", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_as", 1237s # (gchar *) "as", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_ao", 1237s # (gchar *) "ao", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_aay", 1237s # (gchar *) "aay", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_asv", 1237s # (gchar *) "a{sv}", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1237s # { 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "MethodWithManyArgs", 1237s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "handle-method-with-many-args", 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_b", 1237s # (gchar *) "b", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_y", 1237s # (gchar *) "y", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_n", 1237s # (gchar *) "n", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_q", 1237s # (gchar *) "q", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_i", 1237s # (gchar *) "i", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_u", 1237s # (gchar *) "u", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_x", 1237s # (gchar *) "x", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_t", 1237s # (gchar *) "t", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_d", 1237s # (gchar *) "d", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_s", 1237s # (gchar *) "s", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_o", 1237s # (gchar *) "o", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_g", 1237s # (gchar *) "g", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_h", 1237s # (gchar *) "h", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_ay", 1237s # (gchar *) "ay", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_as", 1237s # (gchar *) "as", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_ao", 1237s # (gchar *) "ao", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_aay", 1237s # (gchar *) "aay", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_asv", 1237s # (gchar *) "a{sv}", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 1237s # { 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "SameMethodWithManyArgs", 1237s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "handle-same-method-with-many-args", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1237s # { 1237s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1237s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.CallableIface", 1237s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-callable-iface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_callable_iface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_callable_iface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_callable_iface_method_marshal_method_with_many_args ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _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, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # inline static void 1237s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _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, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectCallableIface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectCallableIfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1237s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.CallableIface. 1237s # */ 1237s # 1237s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectCallableIface::handle-method-with-many-args: 1237s # * @object: A #OrgProjectCallableIface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * @arg_an_b: Argument passed by remote caller. 1237s # * @arg_an_y: Argument passed by remote caller. 1237s # * @arg_an_n: Argument passed by remote caller. 1237s # * @arg_an_q: Argument passed by remote caller. 1237s # * @arg_an_i: Argument passed by remote caller. 1237s # * @arg_an_u: Argument passed by remote caller. 1237s # * @arg_an_x: Argument passed by remote caller. 1237s # * @arg_an_t: Argument passed by remote caller. 1237s # * @arg_an_d: Argument passed by remote caller. 1237s # * @arg_an_s: Argument passed by remote caller. 1237s # * @arg_an_o: Argument passed by remote caller. 1237s # * @arg_an_g: Argument passed by remote caller. 1237s # * @arg_an_h: Argument passed by remote caller. 1237s # * @arg_an_ay: Argument passed by remote caller. 1237s # * @arg_an_as: Argument passed by remote caller. 1237s # * @arg_an_ao: Argument passed by remote caller. 1237s # * @arg_an_aay: Argument passed by remote caller. 1237s # * @arg_an_asv: Argument passed by remote caller. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-method-with-many-args", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_callable_iface_method_marshal_method_with_many_args, 1237s # G_TYPE_BOOLEAN, 1237s # 19, 1237s # 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); 1237s # 1237s # /** 1237s # * OrgProjectCallableIface::handle-same-method-with-many-args: 1237s # * @object: A #OrgProjectCallableIface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * @arg_an_b: Argument passed by remote caller. 1237s # * @arg_an_y: Argument passed by remote caller. 1237s # * @arg_an_n: Argument passed by remote caller. 1237s # * @arg_an_q: Argument passed by remote caller. 1237s # * @arg_an_i: Argument passed by remote caller. 1237s # * @arg_an_u: Argument passed by remote caller. 1237s # * @arg_an_x: Argument passed by remote caller. 1237s # * @arg_an_t: Argument passed by remote caller. 1237s # * @arg_an_d: Argument passed by remote caller. 1237s # * @arg_an_s: Argument passed by remote caller. 1237s # * @arg_an_o: Argument passed by remote caller. 1237s # * @arg_an_g: Argument passed by remote caller. 1237s # * @arg_an_h: Argument passed by remote caller. 1237s # * @arg_an_ay: Argument passed by remote caller. 1237s # * @arg_an_as: Argument passed by remote caller. 1237s # * @arg_an_ao: Argument passed by remote caller. 1237s # * @arg_an_aay: Argument passed by remote caller. 1237s # * @arg_an_asv: Argument passed by remote caller. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-same-method-with-many-args", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_callable_iface_method_marshal_same_method_with_many_args, 1237s # G_TYPE_BOOLEAN, 1237s # 19, 1237s # 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); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_call_method_with_many_args: 1237s # * @proxy: A #OrgProjectCallableIfaceProxy. 1237s # * @arg_an_b: Argument to pass with the method invocation. 1237s # * @arg_an_y: Argument to pass with the method invocation. 1237s # * @arg_an_n: Argument to pass with the method invocation. 1237s # * @arg_an_q: Argument to pass with the method invocation. 1237s # * @arg_an_i: Argument to pass with the method invocation. 1237s # * @arg_an_u: Argument to pass with the method invocation. 1237s # * @arg_an_x: Argument to pass with the method invocation. 1237s # * @arg_an_t: Argument to pass with the method invocation. 1237s # * @arg_an_d: Argument to pass with the method invocation. 1237s # * @arg_an_s: Argument to pass with the method invocation. 1237s # * @arg_an_o: Argument to pass with the method invocation. 1237s # * @arg_an_g: Argument to pass with the method invocation. 1237s # * @arg_an_h: Argument to pass with the method invocation. 1237s # * @arg_an_ay: Argument to pass with the method invocation. 1237s # * @arg_an_as: Argument to pass with the method invocation. 1237s # * @arg_an_ao: Argument to pass with the method invocation. 1237s # * @arg_an_aay: Argument to pass with the method invocation. 1237s # * @arg_an_asv: Argument to pass with the method invocation. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_callable_iface_call_method_with_many_args ( 1237s # OrgProjectCallableIface *proxy, 1237s # gboolean arg_an_b, 1237s # guchar arg_an_y, 1237s # gint16 arg_an_n, 1237s # guint16 arg_an_q, 1237s # gint arg_an_i, 1237s # guint arg_an_u, 1237s # gint64 arg_an_x, 1237s # guint64 arg_an_t, 1237s # gdouble arg_an_d, 1237s # const gchar *arg_an_s, 1237s # const gchar *arg_an_o, 1237s # const gchar *arg_an_g, 1237s # GVariant *arg_an_h, 1237s # const gchar *arg_an_ay, 1237s # const gchar *const *arg_an_as, 1237s # const gchar *const *arg_an_ao, 1237s # const gchar *const *arg_an_aay, 1237s # GVariant *arg_an_asv, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "MethodWithManyArgs", 1237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1237s # arg_an_b, 1237s # arg_an_y, 1237s # arg_an_n, 1237s # arg_an_q, 1237s # arg_an_i, 1237s # arg_an_u, 1237s # arg_an_x, 1237s # arg_an_t, 1237s # arg_an_d, 1237s # arg_an_s, 1237s # arg_an_o, 1237s # arg_an_g, 1237s # arg_an_h, 1237s # arg_an_ay, 1237s # arg_an_as, 1237s # arg_an_ao, 1237s # arg_an_aay, 1237s # arg_an_asv), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_call_method_with_many_args_finish: 1237s # * @proxy: A #OrgProjectCallableIfaceProxy. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_callable_iface_call_method_with_many_args_finish ( 1237s # OrgProjectCallableIface *proxy, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "()"); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_call_method_with_many_args_sync: 1237s # * @proxy: A #OrgProjectCallableIfaceProxy. 1237s # * @arg_an_b: Argument to pass with the method invocation. 1237s # * @arg_an_y: Argument to pass with the method invocation. 1237s # * @arg_an_n: Argument to pass with the method invocation. 1237s # * @arg_an_q: Argument to pass with the method invocation. 1237s # * @arg_an_i: Argument to pass with the method invocation. 1237s # * @arg_an_u: Argument to pass with the method invocation. 1237s # * @arg_an_x: Argument to pass with the method invocation. 1237s # * @arg_an_t: Argument to pass with the method invocation. 1237s # * @arg_an_d: Argument to pass with the method invocation. 1237s # * @arg_an_s: Argument to pass with the method invocation. 1237s # * @arg_an_o: Argument to pass with the method invocation. 1237s # * @arg_an_g: Argument to pass with the method invocation. 1237s # * @arg_an_h: Argument to pass with the method invocation. 1237s # * @arg_an_ay: Argument to pass with the method invocation. 1237s # * @arg_an_as: Argument to pass with the method invocation. 1237s # * @arg_an_ao: Argument to pass with the method invocation. 1237s # * @arg_an_aay: Argument to pass with the method invocation. 1237s # * @arg_an_asv: Argument to pass with the method invocation. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_callable_iface_call_method_with_many_args_sync ( 1237s # OrgProjectCallableIface *proxy, 1237s # gboolean arg_an_b, 1237s # guchar arg_an_y, 1237s # gint16 arg_an_n, 1237s # guint16 arg_an_q, 1237s # gint arg_an_i, 1237s # guint arg_an_u, 1237s # gint64 arg_an_x, 1237s # guint64 arg_an_t, 1237s # gdouble arg_an_d, 1237s # const gchar *arg_an_s, 1237s # const gchar *arg_an_o, 1237s # const gchar *arg_an_g, 1237s # GVariant *arg_an_h, 1237s # const gchar *arg_an_ay, 1237s # const gchar *const *arg_an_as, 1237s # const gchar *const *arg_an_ao, 1237s # const gchar *const *arg_an_aay, 1237s # GVariant *arg_an_asv, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "MethodWithManyArgs", 1237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1237s # arg_an_b, 1237s # arg_an_y, 1237s # arg_an_n, 1237s # arg_an_q, 1237s # arg_an_i, 1237s # arg_an_u, 1237s # arg_an_x, 1237s # arg_an_t, 1237s # arg_an_d, 1237s # arg_an_s, 1237s # arg_an_o, 1237s # arg_an_g, 1237s # arg_an_h, 1237s # arg_an_ay, 1237s # arg_an_as, 1237s # arg_an_ao, 1237s # arg_an_aay, 1237s # arg_an_asv), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "()"); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_call_same_method_with_many_args: 1237s # * @proxy: A #OrgProjectCallableIfaceProxy. 1237s # * @arg_an_b: Argument to pass with the method invocation. 1237s # * @arg_an_y: Argument to pass with the method invocation. 1237s # * @arg_an_n: Argument to pass with the method invocation. 1237s # * @arg_an_q: Argument to pass with the method invocation. 1237s # * @arg_an_i: Argument to pass with the method invocation. 1237s # * @arg_an_u: Argument to pass with the method invocation. 1237s # * @arg_an_x: Argument to pass with the method invocation. 1237s # * @arg_an_t: Argument to pass with the method invocation. 1237s # * @arg_an_d: Argument to pass with the method invocation. 1237s # * @arg_an_s: Argument to pass with the method invocation. 1237s # * @arg_an_o: Argument to pass with the method invocation. 1237s # * @arg_an_g: Argument to pass with the method invocation. 1237s # * @arg_an_h: Argument to pass with the method invocation. 1237s # * @arg_an_ay: Argument to pass with the method invocation. 1237s # * @arg_an_as: Argument to pass with the method invocation. 1237s # * @arg_an_ao: Argument to pass with the method invocation. 1237s # * @arg_an_aay: Argument to pass with the method invocation. 1237s # * @arg_an_asv: Argument to pass with the method invocation. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_callable_iface_call_same_method_with_many_args ( 1237s # OrgProjectCallableIface *proxy, 1237s # gboolean arg_an_b, 1237s # guchar arg_an_y, 1237s # gint16 arg_an_n, 1237s # guint16 arg_an_q, 1237s # gint arg_an_i, 1237s # guint arg_an_u, 1237s # gint64 arg_an_x, 1237s # guint64 arg_an_t, 1237s # gdouble arg_an_d, 1237s # const gchar *arg_an_s, 1237s # const gchar *arg_an_o, 1237s # const gchar *arg_an_g, 1237s # GVariant *arg_an_h, 1237s # const gchar *arg_an_ay, 1237s # const gchar *const *arg_an_as, 1237s # const gchar *const *arg_an_ao, 1237s # const gchar *const *arg_an_aay, 1237s # GVariant *arg_an_asv, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "SameMethodWithManyArgs", 1237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1237s # arg_an_b, 1237s # arg_an_y, 1237s # arg_an_n, 1237s # arg_an_q, 1237s # arg_an_i, 1237s # arg_an_u, 1237s # arg_an_x, 1237s # arg_an_t, 1237s # arg_an_d, 1237s # arg_an_s, 1237s # arg_an_o, 1237s # arg_an_g, 1237s # arg_an_h, 1237s # arg_an_ay, 1237s # arg_an_as, 1237s # arg_an_ao, 1237s # arg_an_aay, 1237s # arg_an_asv), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_call_same_method_with_many_args_finish: 1237s # * @proxy: A #OrgProjectCallableIfaceProxy. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_callable_iface_call_same_method_with_many_args_finish ( 1237s # OrgProjectCallableIface *proxy, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "()"); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_call_same_method_with_many_args_sync: 1237s # * @proxy: A #OrgProjectCallableIfaceProxy. 1237s # * @arg_an_b: Argument to pass with the method invocation. 1237s # * @arg_an_y: Argument to pass with the method invocation. 1237s # * @arg_an_n: Argument to pass with the method invocation. 1237s # * @arg_an_q: Argument to pass with the method invocation. 1237s # * @arg_an_i: Argument to pass with the method invocation. 1237s # * @arg_an_u: Argument to pass with the method invocation. 1237s # * @arg_an_x: Argument to pass with the method invocation. 1237s # * @arg_an_t: Argument to pass with the method invocation. 1237s # * @arg_an_d: Argument to pass with the method invocation. 1237s # * @arg_an_s: Argument to pass with the method invocation. 1237s # * @arg_an_o: Argument to pass with the method invocation. 1237s # * @arg_an_g: Argument to pass with the method invocation. 1237s # * @arg_an_h: Argument to pass with the method invocation. 1237s # * @arg_an_ay: Argument to pass with the method invocation. 1237s # * @arg_an_as: Argument to pass with the method invocation. 1237s # * @arg_an_ao: Argument to pass with the method invocation. 1237s # * @arg_an_aay: Argument to pass with the method invocation. 1237s # * @arg_an_asv: Argument to pass with the method invocation. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_callable_iface_call_same_method_with_many_args_sync ( 1237s # OrgProjectCallableIface *proxy, 1237s # gboolean arg_an_b, 1237s # guchar arg_an_y, 1237s # gint16 arg_an_n, 1237s # guint16 arg_an_q, 1237s # gint arg_an_i, 1237s # guint arg_an_u, 1237s # gint64 arg_an_x, 1237s # guint64 arg_an_t, 1237s # gdouble arg_an_d, 1237s # const gchar *arg_an_s, 1237s # const gchar *arg_an_o, 1237s # const gchar *arg_an_g, 1237s # GVariant *arg_an_h, 1237s # const gchar *arg_an_ay, 1237s # const gchar *const *arg_an_as, 1237s # const gchar *const *arg_an_ao, 1237s # const gchar *const *arg_an_aay, 1237s # GVariant *arg_an_asv, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "SameMethodWithManyArgs", 1237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1237s # arg_an_b, 1237s # arg_an_y, 1237s # arg_an_n, 1237s # arg_an_q, 1237s # arg_an_i, 1237s # arg_an_u, 1237s # arg_an_x, 1237s # arg_an_t, 1237s # arg_an_d, 1237s # arg_an_s, 1237s # arg_an_o, 1237s # arg_an_g, 1237s # arg_an_h, 1237s # arg_an_ay, 1237s # arg_an_as, 1237s # arg_an_ao, 1237s # arg_an_aay, 1237s # arg_an_asv), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "()"); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_complete_method_with_many_args: 1237s # * @object: A #OrgProjectCallableIface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_callable_iface_complete_method_with_many_args ( 1237s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("()")); 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_complete_same_method_with_many_args: 1237s # * @object: A #OrgProjectCallableIface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_callable_iface_complete_same_method_with_many_args ( 1237s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("()")); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectCallableIfaceProxy: 1237s # * 1237s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectCallableIfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectCallableIfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectCallableIfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_callable_iface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1237s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1237s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_callable_iface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectCallableIface * 1237s # org_project_callable_iface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectCallableIface * 1237s # org_project_callable_iface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_callable_iface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_callable_iface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectCallableIface * 1237s # org_project_callable_iface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectCallableIface * 1237s # org_project_callable_iface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectCallableIfaceSkeleton: 1237s # * 1237s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectCallableIfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectCallableIfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_callable_iface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_callable_iface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_callable_iface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1237s # { 1237s # _org_project_callable_iface_skeleton_handle_method_call, 1237s # _org_project_callable_iface_skeleton_handle_get_property, 1237s # _org_project_callable_iface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_callable_iface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_callable_iface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectCallableIface * 1237s # org_project_callable_iface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.OtherCallableIface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectOtherCallableIface 1237s # * @title: OrgProjectOtherCallableIface 1237s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_b", 1237s # (gchar *) "b", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_y", 1237s # (gchar *) "y", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_n", 1237s # (gchar *) "n", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_q", 1237s # (gchar *) "q", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_i", 1237s # (gchar *) "i", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_u", 1237s # (gchar *) "u", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_x", 1237s # (gchar *) "x", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_t", 1237s # (gchar *) "t", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_d", 1237s # (gchar *) "d", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_s", 1237s # (gchar *) "s", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_o", 1237s # (gchar *) "o", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_g", 1237s # (gchar *) "g", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_h", 1237s # (gchar *) "h", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_ay", 1237s # (gchar *) "ay", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_as", 1237s # (gchar *) "as", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_ao", 1237s # (gchar *) "ao", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_aay", 1237s # (gchar *) "aay", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_asv", 1237s # (gchar *) "a{sv}", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1237s # { 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "MethodWithManyArgs", 1237s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "handle-method-with-many-args", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1237s # { 1237s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.OtherCallableIface", 1237s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-other-callable-iface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_other_callable_iface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _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, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectOtherCallableIface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectOtherCallableIfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1237s # */ 1237s # 1237s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 1237s # * @object: A #OrgProjectOtherCallableIface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * @arg_an_b: Argument passed by remote caller. 1237s # * @arg_an_y: Argument passed by remote caller. 1237s # * @arg_an_n: Argument passed by remote caller. 1237s # * @arg_an_q: Argument passed by remote caller. 1237s # * @arg_an_i: Argument passed by remote caller. 1237s # * @arg_an_u: Argument passed by remote caller. 1237s # * @arg_an_x: Argument passed by remote caller. 1237s # * @arg_an_t: Argument passed by remote caller. 1237s # * @arg_an_d: Argument passed by remote caller. 1237s # * @arg_an_s: Argument passed by remote caller. 1237s # * @arg_an_o: Argument passed by remote caller. 1237s # * @arg_an_g: Argument passed by remote caller. 1237s # * @arg_an_h: Argument passed by remote caller. 1237s # * @arg_an_ay: Argument passed by remote caller. 1237s # * @arg_an_as: Argument passed by remote caller. 1237s # * @arg_an_ao: Argument passed by remote caller. 1237s # * @arg_an_aay: Argument passed by remote caller. 1237s # * @arg_an_asv: Argument passed by remote caller. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-method-with-many-args", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_other_callable_iface_method_marshal_method_with_many_args, 1237s # G_TYPE_BOOLEAN, 1237s # 19, 1237s # 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); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_call_method_with_many_args: 1237s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1237s # * @arg_an_b: Argument to pass with the method invocation. 1237s # * @arg_an_y: Argument to pass with the method invocation. 1237s # * @arg_an_n: Argument to pass with the method invocation. 1237s # * @arg_an_q: Argument to pass with the method invocation. 1237s # * @arg_an_i: Argument to pass with the method invocation. 1237s # * @arg_an_u: Argument to pass with the method invocation. 1237s # * @arg_an_x: Argument to pass with the method invocation. 1237s # * @arg_an_t: Argument to pass with the method invocation. 1237s # * @arg_an_d: Argument to pass with the method invocation. 1237s # * @arg_an_s: Argument to pass with the method invocation. 1237s # * @arg_an_o: Argument to pass with the method invocation. 1237s # * @arg_an_g: Argument to pass with the method invocation. 1237s # * @arg_an_h: Argument to pass with the method invocation. 1237s # * @arg_an_ay: Argument to pass with the method invocation. 1237s # * @arg_an_as: Argument to pass with the method invocation. 1237s # * @arg_an_ao: Argument to pass with the method invocation. 1237s # * @arg_an_aay: Argument to pass with the method invocation. 1237s # * @arg_an_asv: Argument to pass with the method invocation. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_other_callable_iface_call_method_with_many_args ( 1237s # OrgProjectOtherCallableIface *proxy, 1237s # gboolean arg_an_b, 1237s # guchar arg_an_y, 1237s # gint16 arg_an_n, 1237s # guint16 arg_an_q, 1237s # gint arg_an_i, 1237s # guint arg_an_u, 1237s # gint64 arg_an_x, 1237s # guint64 arg_an_t, 1237s # gdouble arg_an_d, 1237s # const gchar *arg_an_s, 1237s # const gchar *arg_an_o, 1237s # const gchar *arg_an_g, 1237s # GVariant *arg_an_h, 1237s # const gchar *arg_an_ay, 1237s # const gchar *const *arg_an_as, 1237s # const gchar *const *arg_an_ao, 1237s # const gchar *const *arg_an_aay, 1237s # GVariant *arg_an_asv, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "MethodWithManyArgs", 1237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1237s # arg_an_b, 1237s # arg_an_y, 1237s # arg_an_n, 1237s # arg_an_q, 1237s # arg_an_i, 1237s # arg_an_u, 1237s # arg_an_x, 1237s # arg_an_t, 1237s # arg_an_d, 1237s # arg_an_s, 1237s # arg_an_o, 1237s # arg_an_g, 1237s # arg_an_h, 1237s # arg_an_ay, 1237s # arg_an_as, 1237s # arg_an_ao, 1237s # arg_an_aay, 1237s # arg_an_asv), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_call_method_with_many_args_finish: 1237s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_other_callable_iface_call_method_with_many_args_finish ( 1237s # OrgProjectOtherCallableIface *proxy, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "()"); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_call_method_with_many_args_sync: 1237s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1237s # * @arg_an_b: Argument to pass with the method invocation. 1237s # * @arg_an_y: Argument to pass with the method invocation. 1237s # * @arg_an_n: Argument to pass with the method invocation. 1237s # * @arg_an_q: Argument to pass with the method invocation. 1237s # * @arg_an_i: Argument to pass with the method invocation. 1237s # * @arg_an_u: Argument to pass with the method invocation. 1237s # * @arg_an_x: Argument to pass with the method invocation. 1237s # * @arg_an_t: Argument to pass with the method invocation. 1237s # * @arg_an_d: Argument to pass with the method invocation. 1237s # * @arg_an_s: Argument to pass with the method invocation. 1237s # * @arg_an_o: Argument to pass with the method invocation. 1237s # * @arg_an_g: Argument to pass with the method invocation. 1237s # * @arg_an_h: Argument to pass with the method invocation. 1237s # * @arg_an_ay: Argument to pass with the method invocation. 1237s # * @arg_an_as: Argument to pass with the method invocation. 1237s # * @arg_an_ao: Argument to pass with the method invocation. 1237s # * @arg_an_aay: Argument to pass with the method invocation. 1237s # * @arg_an_asv: Argument to pass with the method invocation. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_other_callable_iface_call_method_with_many_args_sync ( 1237s # OrgProjectOtherCallableIface *proxy, 1237s # gboolean arg_an_b, 1237s # guchar arg_an_y, 1237s # gint16 arg_an_n, 1237s # guint16 arg_an_q, 1237s # gint arg_an_i, 1237s # guint arg_an_u, 1237s # gint64 arg_an_x, 1237s # guint64 arg_an_t, 1237s # gdouble arg_an_d, 1237s # const gchar *arg_an_s, 1237s # const gchar *arg_an_o, 1237s # const gchar *arg_an_g, 1237s # GVariant *arg_an_h, 1237s # const gchar *arg_an_ay, 1237s # const gchar *const *arg_an_as, 1237s # const gchar *const *arg_an_ao, 1237s # const gchar *const *arg_an_aay, 1237s # GVariant *arg_an_asv, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "MethodWithManyArgs", 1237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1237s # arg_an_b, 1237s # arg_an_y, 1237s # arg_an_n, 1237s # arg_an_q, 1237s # arg_an_i, 1237s # arg_an_u, 1237s # arg_an_x, 1237s # arg_an_t, 1237s # arg_an_d, 1237s # arg_an_s, 1237s # arg_an_o, 1237s # arg_an_g, 1237s # arg_an_h, 1237s # arg_an_ay, 1237s # arg_an_as, 1237s # arg_an_ao, 1237s # arg_an_aay, 1237s # arg_an_asv), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "()"); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_complete_method_with_many_args: 1237s # * @object: A #OrgProjectOtherCallableIface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_other_callable_iface_complete_method_with_many_args ( 1237s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("()")); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectOtherCallableIfaceProxy: 1237s # * 1237s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectOtherCallableIfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1237s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1237s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_other_callable_iface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectOtherCallableIface * 1237s # org_project_other_callable_iface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectOtherCallableIface * 1237s # org_project_other_callable_iface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_other_callable_iface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectOtherCallableIface * 1237s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectOtherCallableIface * 1237s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectOtherCallableIfaceSkeleton: 1237s # * 1237s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectOtherCallableIfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1237s # { 1237s # _org_project_other_callable_iface_skeleton_handle_method_call, 1237s # _org_project_other_callable_iface_skeleton_handle_get_property, 1237s # _org_project_other_callable_iface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_other_callable_iface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_other_callable_iface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectOtherCallableIface * 1237s # org_project_other_callable_iface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 1237s # gdbus-codegen: /usr/bin/gdbus-codegen 1237s # tmpdir: /tmp/tmptgkghjid 1237s # /tmp/tmptgkghjid/tmp71cllvks.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptgkghjid/tmp71cllvks.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 2); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface org.project.CallableIface 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:OrgProjectCallableIface 1237s # * @title: OrgProjectCallableIface 1237s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1237s # * 1237s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for org.project.CallableIface ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_b", 1237s # (gchar *) "b", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_y", 1237s # (gchar *) "y", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_n", 1237s # (gchar *) "n", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_q", 1237s # (gchar *) "q", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_i", 1237s # (gchar *) "i", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_u", 1237s # (gchar *) "u", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_x", 1237s # (gchar *) "x", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_t", 1237s # (gchar *) "t", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_d", 1237s # (gchar *) "d", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_s", 1237s # (gchar *) "s", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_o", 1237s # (gchar *) "o", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_g", 1237s # (gchar *) "g", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_h", 1237s # (gchar *) "h", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_ay", 1237s # (gchar *) "ay", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_as", 1237s # (gchar *) "as", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_ao", 1237s # (gchar *) "ao", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_aay", 1237s # (gchar *) "aay", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "an_asv", 1237s # (gchar *) "a{sv}", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 1237s # { 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 1237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "MethodWithManyArgs", 1237s # NULL, 1237s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-method-with-many-args", 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1237s # { 1237s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "org.project.CallableIface", 1237s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "org-project-callable-iface", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * org_project_callable_iface_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # org_project_callable_iface_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # org_project_callable_iface_method_marshal_method_with_many_args ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * OrgProjectCallableIface: 1237s # * 1237s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectCallableIfaceIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1237s # * 1237s # * Virtual table for the D-Bus interface org.project.CallableIface. 1237s # */ 1237s # 1237s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1237s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * OrgProjectCallableIface::handle-method-with-many-args: 1237s # * @object: A #OrgProjectCallableIface. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-method-with-many-args", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # org_project_callable_iface_method_marshal_method_with_many_args, 1237s # G_TYPE_BOOLEAN, 1237s # 1, 1237s # G_TYPE_DBUS_METHOD_INVOCATION); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_call_method_with_many_args: 1237s # * @proxy: A #OrgProjectCallableIfaceProxy. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # org_project_callable_iface_call_method_with_many_args ( 1237s # OrgProjectCallableIface *proxy, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1237s # "MethodWithManyArgs", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_call_method_with_many_args_finish: 1237s # * @proxy: A #OrgProjectCallableIfaceProxy. 1237s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_callable_iface_call_method_with_many_args_finish ( 1237s # OrgProjectCallableIface *proxy, 1237s # gboolean *out_an_b, 1237s # guchar *out_an_y, 1237s # gint16 *out_an_n, 1237s # guint16 *out_an_q, 1237s # gint *out_an_i, 1237s # guint *out_an_u, 1237s # gint64 *out_an_x, 1237s # guint64 *out_an_t, 1237s # gdouble *out_an_d, 1237s # gchar **out_an_s, 1237s # gchar **out_an_o, 1237s # gchar **out_an_g, 1237s # GVariant **out_an_h, 1237s # gchar **out_an_ay, 1237s # gchar ***out_an_as, 1237s # gchar ***out_an_ao, 1237s # gchar ***out_an_aay, 1237s # GVariant **out_an_asv, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1237s # out_an_b, 1237s # out_an_y, 1237s # out_an_n, 1237s # out_an_q, 1237s # out_an_i, 1237s # out_an_u, 1237s # out_an_x, 1237s # out_an_t, 1237s # out_an_d, 1237s # out_an_s, 1237s # out_an_o, 1237s # out_an_g, 1237s # out_an_h, 1237s # out_an_ay, 1237s # out_an_as, 1237s # out_an_ao, 1237s # out_an_aay, 1237s # out_an_asv); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_call_method_with_many_args_sync: 1237s # * @proxy: A #OrgProjectCallableIfaceProxy. 1237s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1237s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # org_project_callable_iface_call_method_with_many_args_sync ( 1237s # OrgProjectCallableIface *proxy, 1237s # gboolean *out_an_b, 1237s # guchar *out_an_y, 1237s # gint16 *out_an_n, 1237s # guint16 *out_an_q, 1237s # gint *out_an_i, 1237s # guint *out_an_u, 1237s # gint64 *out_an_x, 1237s # guint64 *out_an_t, 1237s # gdouble *out_an_d, 1237s # gchar **out_an_s, 1237s # gchar **out_an_o, 1237s # gchar **out_an_g, 1237s # GVariant **out_an_h, 1237s # gchar **out_an_ay, 1237s # gchar ***out_an_as, 1237s # gchar ***out_an_ao, 1237s # gchar ***out_an_aay, 1237s # GVariant **out_an_asv, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1237s # "MethodWithManyArgs", 1237s # g_variant_new ("()"), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1237s # out_an_b, 1237s # out_an_y, 1237s # out_an_n, 1237s # out_an_q, 1237s # out_an_i, 1237s # out_an_u, 1237s # out_an_x, 1237s # out_an_t, 1237s # out_an_d, 1237s # out_an_s, 1237s # out_an_o, 1237s # out_an_g, 1237s # out_an_h, 1237s # out_an_ay, 1237s # out_an_as, 1237s # out_an_ao, 1237s # out_an_aay, 1237s # out_an_asv); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_complete_method_with_many_args: 1237s # * @object: A #OrgProjectCallableIface. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @an_b: Parameter to return. 1237s # * @an_y: Parameter to return. 1237s # * @an_n: Parameter to return. 1237s # * @an_q: Parameter to return. 1237s # * @an_i: Parameter to return. 1237s # * @an_u: Parameter to return. 1237s # * @an_x: Parameter to return. 1237s # * @an_t: Parameter to return. 1237s # * @an_d: Parameter to return. 1237s # * @an_s: Parameter to return. 1237s # * @an_o: Parameter to return. 1237s # * @an_g: Parameter to return. 1237s # * @an_h: Parameter to return. 1237s # * @an_ay: Parameter to return. 1237s # * @an_as: Parameter to return. 1237s # * @an_ao: Parameter to return. 1237s # * @an_aay: Parameter to return. 1237s # * @an_asv: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # org_project_callable_iface_complete_method_with_many_args ( 1237s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # gboolean an_b, 1237s # guchar an_y, 1237s # gint16 an_n, 1237s # guint16 an_q, 1237s # gint an_i, 1237s # guint an_u, 1237s # gint64 an_x, 1237s # guint64 an_t, 1237s # gdouble an_d, 1237s # const gchar *an_s, 1237s # const gchar *an_o, 1237s # const gchar *an_g, 1237s # GVariant *an_h, 1237s # const gchar *an_ay, 1237s # const gchar *const *an_as, 1237s # const gchar *const *an_ao, 1237s # const gchar *const *an_aay, 1237s # GVariant *an_asv) 1237s # { 1237s # g_dbus_method_invocation_return_value (invocation, 1237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1237s # an_b, 1237s # an_y, 1237s # an_n, 1237s # an_q, 1237s # an_i, 1237s # an_u, 1237s # an_x, 1237s # an_t, 1237s # an_d, 1237s # an_s, 1237s # an_o, 1237s # an_g, 1237s # an_h, 1237s # an_ay, 1237s # an_as, 1237s # an_ao, 1237s # an_aay, 1237s # an_asv)); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectCallableIfaceProxy: 1237s # * 1237s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectCallableIfaceProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectCallableIfaceProxy. 1237s # */ 1237s # 1237s # struct _OrgProjectCallableIfaceProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_callable_iface_proxy_finalize (GObject *object) 1237s # { 1237s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1237s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1237s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1237s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_callable_iface_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectCallableIface * 1237s # org_project_callable_iface_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectCallableIface * 1237s # org_project_callable_iface_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * org_project_callable_iface_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # org_project_callable_iface_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectCallableIface * 1237s # org_project_callable_iface_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # OrgProjectCallableIface * 1237s # org_project_callable_iface_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * OrgProjectCallableIfaceSkeleton: 1237s # * 1237s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * OrgProjectCallableIfaceSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1237s # */ 1237s # 1237s # struct _OrgProjectCallableIfaceSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _org_project_callable_iface_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _org_project_callable_iface_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _org_project_callable_iface_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1237s # { 1237s # _org_project_callable_iface_skeleton_handle_method_call, 1237s # _org_project_callable_iface_skeleton_handle_get_property, 1237s # _org_project_callable_iface_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return org_project_callable_iface_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # org_project_callable_iface_skeleton_finalize (GObject *object) 1237s # { 1237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * org_project_callable_iface_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1237s # * 1237s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1237s # */ 1237s # OrgProjectCallableIface * 1237s # org_project_callable_iface_skeleton_new (void) 1237s # { 1237s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 1237s # gdbus-codegen: /usr/bin/gdbus-codegen 1237s # tmpdir: /tmp/tmpdr3jsp4g 1237s # /tmp/tmpdr3jsp4g/tmpzpxzuazb.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdr3jsp4g/tmpzpxzuazb.xml', '--output', '-', '--body'] 1237s # Return code: 0 1237s # Output: 1237s # /* 1237s # * This file is generated by gdbus-codegen, do not modify it. 1237s # * 1237s # * The license of this code is the same as for the D-Bus interface description 1237s # * it was derived from. Note that it links to GLib, so must comply with the 1237s # * LGPL linking clauses. 1237s # */ 1237s # 1237s # #ifdef HAVE_CONFIG_H 1237s # # include "config.h" 1237s # #endif 1237s # 1237s # #include 1237s # #ifdef G_OS_UNIX 1237s # # include 1237s # #endif 1237s # 1237s # #ifdef G_ENABLE_DEBUG 1237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1237s # #else /* !G_ENABLE_DEBUG */ 1237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1237s # * Do not access GValues directly in your code. Instead, use the 1237s # * g_value_get_*() functions 1237s # */ 1237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1237s # #endif /* !G_ENABLE_DEBUG */ 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusArgInfo parent_struct; 1237s # gboolean use_gvariant; 1237s # } _ExtendedGDBusArgInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusMethodInfo parent_struct; 1237s # const gchar *signal_name; 1237s # gboolean pass_fdlist; 1237s # } _ExtendedGDBusMethodInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusSignalInfo parent_struct; 1237s # const gchar *signal_name; 1237s # } _ExtendedGDBusSignalInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusPropertyInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # guint use_gvariant : 1; 1237s # guint emits_changed_signal : 1; 1237s # } _ExtendedGDBusPropertyInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # GDBusInterfaceInfo parent_struct; 1237s # const gchar *hyphen_name; 1237s # } _ExtendedGDBusInterfaceInfo; 1237s # 1237s # typedef struct 1237s # { 1237s # const _ExtendedGDBusPropertyInfo *info; 1237s # guint prop_id; 1237s # GValue orig_value; /* the value before the change */ 1237s # } ChangedProperty; 1237s # 1237s # static void 1237s # _changed_property_free (ChangedProperty *data) 1237s # { 1237s # g_value_unset (&data->orig_value); 1237s # g_free (data); 1237s # } 1237s # 1237s # static gboolean 1237s # _g_strv_equal0 (gchar **a, gchar **b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # guint n; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # if (g_strv_length (a) != g_strv_length (b)) 1237s # goto out; 1237s # for (n = 0; a[n] != NULL; n++) 1237s # if (g_strcmp0 (a[n], b[n]) != 0) 1237s # goto out; 1237s # ret = TRUE; 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _g_variant_equal0 (GVariant *a, GVariant *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # if (a == NULL && b == NULL) 1237s # { 1237s # ret = TRUE; 1237s # goto out; 1237s # } 1237s # if (a == NULL || b == NULL) 1237s # goto out; 1237s # ret = g_variant_equal (a, b); 1237s # out: 1237s # return ret; 1237s # } 1237s # 1237s # G_GNUC_UNUSED static gboolean 1237s # _g_value_equal (const GValue *a, const GValue *b) 1237s # { 1237s # gboolean ret = FALSE; 1237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1237s # switch (G_VALUE_TYPE (a)) 1237s # { 1237s # case G_TYPE_BOOLEAN: 1237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1237s # break; 1237s # case G_TYPE_UCHAR: 1237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1237s # break; 1237s # case G_TYPE_INT: 1237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1237s # break; 1237s # case G_TYPE_UINT: 1237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1237s # break; 1237s # case G_TYPE_INT64: 1237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1237s # break; 1237s # case G_TYPE_UINT64: 1237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1237s # break; 1237s # case G_TYPE_DOUBLE: 1237s # { 1237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1237s # gdouble da = g_value_get_double (a); 1237s # gdouble db = g_value_get_double (b); 1237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1237s # } 1237s # break; 1237s # case G_TYPE_STRING: 1237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1237s # break; 1237s # case G_TYPE_VARIANT: 1237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1237s # break; 1237s # default: 1237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1237s # else 1237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1237s # break; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static void 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint G_GNUC_UNUSED, 1237s # void *marshal_data) 1237s # { 1237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1237s # (void *data1, 1237s # GDBusMethodInvocation *arg_method_invocation, 1237s # GUnixFDList *arg_fd_list, 1237s # const gchar *arg_greeting, 1237s # void *data2); 1237s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 1237s # GCClosure *cc = (GCClosure*) closure; 1237s # void *data1, *data2; 1237s # gboolean v_return; 1237s # 1237s # g_return_if_fail (return_value != NULL); 1237s # g_return_if_fail (n_param_values == 4); 1237s # 1237s # if (G_CCLOSURE_SWAP_DATA (closure)) 1237s # { 1237s # data1 = closure->data; 1237s # data2 = g_value_peek_pointer (param_values + 0); 1237s # } 1237s # else 1237s # { 1237s # data1 = g_value_peek_pointer (param_values + 0); 1237s # data2 = closure->data; 1237s # } 1237s # 1237s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1237s # (marshal_data ? marshal_data : cc->callback); 1237s # 1237s # v_return = 1237s # callback (data1, 1237s # g_marshal_value_peek_object (param_values + 1), 1237s # g_marshal_value_peek_object (param_values + 2), 1237s # g_marshal_value_peek_string (param_values + 3), 1237s # data2); 1237s # 1237s # g_value_set_boolean (return_value, v_return); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ 1237s # * Code for interface test.FDPassing 1237s # * ------------------------------------------------------------------------ 1237s # */ 1237s # 1237s # /** 1237s # * SECTION:TestFDPassing 1237s # * @title: TestFDPassing 1237s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 1237s # * 1237s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 1237s # */ 1237s # 1237s # /* ---- Introspection data for test.FDPassing ---- */ 1237s # 1237s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "greeting", 1237s # (gchar *) "s", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 1237s # { 1237s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "response", 1237s # (gchar *) "s", 1237s # NULL 1237s # }, 1237s # FALSE 1237s # }; 1237s # 1237s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 1237s # { 1237s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "HelloFD", 1237s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 1237s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 1237s # NULL 1237s # }, 1237s # "handle-hello-fd", 1237s # TRUE 1237s # }; 1237s # 1237s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 1237s # { 1237s # &_test_fdpassing_method_info_hello_fd.parent_struct, 1237s # NULL 1237s # }; 1237s # 1237s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 1237s # { 1237s # { 1237s # -1, 1237s # (gchar *) "test.FDPassing", 1237s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 1237s # NULL, 1237s # NULL, 1237s # NULL 1237s # }, 1237s # "test-fdpassing", 1237s # }; 1237s # 1237s # 1237s # /** 1237s # * test_fdpassing_interface_info: 1237s # * 1237s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 1237s # * 1237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1237s # */ 1237s # GDBusInterfaceInfo * 1237s # test_fdpassing_interface_info (void) 1237s # { 1237s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 1237s # } 1237s # 1237s # /** 1237s # * test_fdpassing_override_properties: 1237s # * @klass: The class structure for a #GObject derived class. 1237s # * @property_id_begin: The property id to assign to the first overridden property. 1237s # * 1237s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 1237s # * The properties are overridden in the order they are defined. 1237s # * 1237s # * Returns: The last property id. 1237s # */ 1237s # guint 1237s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1237s # { 1237s # return property_id_begin - 1; 1237s # } 1237s # 1237s # 1237s # inline static void 1237s # test_fdpassing_method_marshal_hello_fd ( 1237s # GClosure *closure, 1237s # GValue *return_value, 1237s # unsigned int n_param_values, 1237s # const GValue *param_values, 1237s # void *invocation_hint, 1237s # void *marshal_data) 1237s # { 1237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 1237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1237s # } 1237s # 1237s # 1237s # /** 1237s # * TestFDPassing: 1237s # * 1237s # * Abstract interface type for the D-Bus interface test.FDPassing. 1237s # */ 1237s # 1237s # /** 1237s # * TestFDPassingIface: 1237s # * @parent_iface: The parent interface. 1237s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 1237s # * 1237s # * Virtual table for the D-Bus interface test.FDPassing. 1237s # */ 1237s # 1237s # typedef TestFDPassingIface TestFDPassingInterface; 1237s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 1237s # 1237s # static void 1237s # test_fdpassing_default_init (TestFDPassingIface *iface) 1237s # { 1237s # /* GObject signals for incoming D-Bus method calls: */ 1237s # /** 1237s # * TestFDPassing::handle-hello-fd: 1237s # * @object: A #TestFDPassing. 1237s # * @invocation: A #GDBusMethodInvocation. 1237s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1237s # * @arg_greeting: Argument passed by remote caller. 1237s # * 1237s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 1237s # * 1237s # * 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. 1237s # * 1237s # * 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. 1237s # */ 1237s # g_signal_new ("handle-hello-fd", 1237s # G_TYPE_FROM_INTERFACE (iface), 1237s # G_SIGNAL_RUN_LAST, 1237s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 1237s # g_signal_accumulator_true_handled, 1237s # NULL, 1237s # test_fdpassing_method_marshal_hello_fd, 1237s # G_TYPE_BOOLEAN, 1237s # 3, 1237s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 1237s # 1237s # } 1237s # 1237s # /** 1237s # * test_fdpassing_call_hello_fd: 1237s # * @proxy: A #TestFDPassingProxy. 1237s # * @arg_greeting: Argument to pass with the method invocation. 1237s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 1237s # * 1237s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 1237s # */ 1237s # void 1237s # test_fdpassing_call_hello_fd ( 1237s # TestFDPassing *proxy, 1237s # const gchar *arg_greeting, 1237s # GUnixFDList *fd_list, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 1237s # "HelloFD", 1237s # g_variant_new ("(s)", 1237s # arg_greeting), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # fd_list, 1237s # cancellable, 1237s # callback, 1237s # user_data); 1237s # } 1237s # 1237s # /** 1237s # * test_fdpassing_call_hello_fd_finish: 1237s # * @proxy: A #TestFDPassingProxy. 1237s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # test_fdpassing_call_hello_fd_finish ( 1237s # TestFDPassing *proxy, 1237s # gchar **out_response, 1237s # GUnixFDList **out_fd_list, 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(s)", 1237s # out_response); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * test_fdpassing_call_hello_fd_sync: 1237s # * @proxy: A #TestFDPassingProxy. 1237s # * @arg_greeting: Argument to pass with the method invocation. 1237s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1237s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1237s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL. 1237s # * 1237s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1237s # * 1237s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 1237s # * 1237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1237s # */ 1237s # gboolean 1237s # test_fdpassing_call_hello_fd_sync ( 1237s # TestFDPassing *proxy, 1237s # const gchar *arg_greeting, 1237s # GUnixFDList *fd_list, 1237s # gchar **out_response, 1237s # GUnixFDList **out_fd_list, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GVariant *_ret; 1237s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 1237s # "HelloFD", 1237s # g_variant_new ("(s)", 1237s # arg_greeting), 1237s # G_DBUS_CALL_FLAGS_NONE, 1237s # -1, 1237s # fd_list, 1237s # out_fd_list, 1237s # cancellable, 1237s # error); 1237s # if (_ret == NULL) 1237s # goto _out; 1237s # g_variant_get (_ret, 1237s # "(s)", 1237s # out_response); 1237s # g_variant_unref (_ret); 1237s # _out: 1237s # return _ret != NULL; 1237s # } 1237s # 1237s # /** 1237s # * test_fdpassing_complete_hello_fd: 1237s # * @object: A #TestFDPassing. 1237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1237s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1237s # * @response: Parameter to return. 1237s # * 1237s # * 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. 1237s # * 1237s # * This method will free @invocation, you cannot use it afterwards. 1237s # */ 1237s # void 1237s # test_fdpassing_complete_hello_fd ( 1237s # TestFDPassing *object G_GNUC_UNUSED, 1237s # GDBusMethodInvocation *invocation, 1237s # GUnixFDList *fd_list, 1237s # const gchar *response) 1237s # { 1237s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 1237s # g_variant_new ("(s)", 1237s # response), 1237s # fd_list); 1237s # } 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * TestFDPassingProxy: 1237s # * 1237s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * TestFDPassingProxyClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #TestFDPassingProxy. 1237s # */ 1237s # 1237s # struct _TestFDPassingProxyPrivate 1237s # { 1237s # GData *qdata; 1237s # }; 1237s # 1237s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1237s # G_ADD_PRIVATE (TestFDPassingProxy) 1237s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1237s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # test_fdpassing_proxy_finalize (GObject *object) 1237s # { 1237s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 1237s # g_datalist_clear (&proxy->priv->qdata); 1237s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 1237s # guint prop_id G_GNUC_UNUSED, 1237s # const GValue *value G_GNUC_UNUSED, 1237s # GParamSpec *pspec G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void 1237s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 1237s # const gchar *sender_name G_GNUC_UNUSED, 1237s # const gchar *signal_name, 1237s # GVariant *parameters) 1237s # { 1237s # _ExtendedGDBusSignalInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # gsize n; 1237s # guint signal_id; 1237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 1237s # if (info == NULL) 1237s # return; 1237s # num_params = g_variant_n_children (parameters); 1237s # paramv = g_new0 (GValue, num_params + 1); 1237s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 1237s # g_value_set_object (¶mv[0], proxy); 1237s # g_variant_iter_init (&iter, parameters); 1237s # n = 1; 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1237s # g_signal_emitv (paramv, signal_id, 0, NULL); 1237s # for (n = 0; n < num_params + 1; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static void 1237s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 1237s # GVariant *changed_properties, 1237s # const gchar *const *invalidated_properties) 1237s # { 1237s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 1237s # guint n; 1237s # const gchar *key; 1237s # GVariantIter *iter; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # g_variant_get (changed_properties, "a{sv}", &iter); 1237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 1237s # g_datalist_remove_data (&proxy->priv->qdata, key); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # g_variant_iter_free (iter); 1237s # for (n = 0; invalidated_properties[n] != NULL; n++) 1237s # { 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 1237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1237s # if (info != NULL) 1237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1237s # } 1237s # } 1237s # 1237s # static void 1237s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 1237s # #else 1237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 1237s # #endif 1237s # 1237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 1237s # } 1237s # 1237s # static void 1237s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusProxyClass *proxy_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = test_fdpassing_proxy_finalize; 1237s # gobject_class->get_property = test_fdpassing_proxy_get_property; 1237s # gobject_class->set_property = test_fdpassing_proxy_set_property; 1237s # 1237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1237s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 1237s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * test_fdpassing_proxy_new: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 1237s # * 1237s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # test_fdpassing_proxy_new ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * test_fdpassing_proxy_new_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with test_fdpassing_proxy_new(). 1237s # * 1237s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # TestFDPassing * 1237s # test_fdpassing_proxy_new_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return TEST_FDPASSING (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * test_fdpassing_proxy_new_sync: 1237s # * @connection: A #GDBusConnection. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # TestFDPassing * 1237s # test_fdpassing_proxy_new_sync ( 1237s # GDBusConnection *connection, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return TEST_FDPASSING (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /** 1237s # * test_fdpassing_proxy_new_for_bus: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1237s # * @user_data: User data to pass to @callback. 1237s # * 1237s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1237s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 1237s # * 1237s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1237s # */ 1237s # void 1237s # test_fdpassing_proxy_new_for_bus ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GAsyncReadyCallback callback, 1237s # gpointer user_data) 1237s # { 1237s # 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); 1237s # } 1237s # 1237s # /** 1237s # * test_fdpassing_proxy_new_for_bus_finish: 1237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 1237s # * 1237s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # TestFDPassing * 1237s # test_fdpassing_proxy_new_for_bus_finish ( 1237s # GAsyncResult *res, 1237s # GError **error) 1237s # { 1237s # GObject *ret; 1237s # GObject *source_object; 1237s # source_object = g_async_result_get_source_object (res); 1237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1237s # g_object_unref (source_object); 1237s # if (ret != NULL) 1237s # return TEST_FDPASSING (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # /** 1237s # * test_fdpassing_proxy_new_for_bus_sync: 1237s # * @bus_type: A #GBusType. 1237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1237s # * @name: A bus name (well-known or unique). 1237s # * @object_path: An object path. 1237s # * @cancellable: (nullable): A #GCancellable or %NULL. 1237s # * @error: Return location for error or %NULL 1237s # * 1237s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1237s # * 1237s # * The calling thread is blocked until a reply is received. 1237s # * 1237s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 1237s # * 1237s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1237s # */ 1237s # TestFDPassing * 1237s # test_fdpassing_proxy_new_for_bus_sync ( 1237s # GBusType bus_type, 1237s # GDBusProxyFlags flags, 1237s # const gchar *name, 1237s # const gchar *object_path, 1237s # GCancellable *cancellable, 1237s # GError **error) 1237s # { 1237s # GInitable *ret; 1237s # 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); 1237s # if (ret != NULL) 1237s # return TEST_FDPASSING (ret); 1237s # else 1237s # return NULL; 1237s # } 1237s # 1237s # 1237s # /* ------------------------------------------------------------------------ */ 1237s # 1237s # /** 1237s # * TestFDPassingSkeleton: 1237s # * 1237s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 1237s # */ 1237s # 1237s # /** 1237s # * TestFDPassingSkeletonClass: 1237s # * @parent_class: The parent class. 1237s # * 1237s # * Class structure for #TestFDPassingSkeleton. 1237s # */ 1237s # 1237s # struct _TestFDPassingSkeletonPrivate 1237s # { 1237s # GValue *properties; 1237s # GList *changed_properties; 1237s # GSource *changed_properties_idle_source; 1237s # GMainContext *context; 1237s # GMutex lock; 1237s # }; 1237s # 1237s # static void 1237s # _test_fdpassing_skeleton_handle_method_call ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name, 1237s # const gchar *method_name, 1237s # GVariant *parameters, 1237s # GDBusMethodInvocation *invocation, 1237s # gpointer user_data) 1237s # { 1237s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1237s # _ExtendedGDBusMethodInfo *info; 1237s # GVariantIter iter; 1237s # GVariant *child; 1237s # GValue *paramv; 1237s # gsize num_params; 1237s # guint num_extra; 1237s # gsize n; 1237s # guint signal_id; 1237s # GValue return_value = G_VALUE_INIT; 1237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1237s # g_assert (info != NULL); 1237s # num_params = g_variant_n_children (parameters); 1237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1237s # n = 0; 1237s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 1237s # g_value_set_object (¶mv[n++], skeleton); 1237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1237s # g_value_set_object (¶mv[n++], invocation); 1237s # if (info->pass_fdlist) 1237s # { 1237s # #ifdef G_OS_UNIX 1237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1237s # #else 1237s # g_assert_not_reached (); 1237s # #endif 1237s # } 1237s # g_variant_iter_init (&iter, parameters); 1237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1237s # { 1237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1237s # if (arg_info->use_gvariant) 1237s # { 1237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1237s # g_value_set_variant (¶mv[n], child); 1237s # n++; 1237s # } 1237s # else 1237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1237s # g_variant_unref (child); 1237s # } 1237s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1237s # if (!g_value_get_boolean (&return_value)) 1237s # 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); 1237s # g_value_unset (&return_value); 1237s # for (n = 0; n < num_params + num_extra; n++) 1237s # g_value_unset (¶mv[n]); 1237s # g_free (paramv); 1237s # } 1237s # 1237s # static GVariant * 1237s # _test_fdpassing_skeleton_handle_get_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # GVariant *ret; 1237s # ret = NULL; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # g_value_init (&value, pspec->value_type); 1237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1237s # g_value_unset (&value); 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static gboolean 1237s # _test_fdpassing_skeleton_handle_set_property ( 1237s # GDBusConnection *connection G_GNUC_UNUSED, 1237s # const gchar *sender G_GNUC_UNUSED, 1237s # const gchar *object_path G_GNUC_UNUSED, 1237s # const gchar *interface_name G_GNUC_UNUSED, 1237s # const gchar *property_name, 1237s # GVariant *variant, 1237s # GError **error, 1237s # gpointer user_data) 1237s # { 1237s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1237s # GValue value = G_VALUE_INIT; 1237s # GParamSpec *pspec; 1237s # _ExtendedGDBusPropertyInfo *info; 1237s # gboolean ret; 1237s # ret = FALSE; 1237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1237s # g_assert (info != NULL); 1237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1237s # if (pspec == NULL) 1237s # { 1237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1237s # } 1237s # else 1237s # { 1237s # if (info->use_gvariant) 1237s # g_value_set_variant (&value, variant); 1237s # else 1237s # g_dbus_gvariant_to_gvalue (variant, &value); 1237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1237s # g_value_unset (&value); 1237s # ret = TRUE; 1237s # } 1237s # return ret; 1237s # } 1237s # 1237s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 1237s # { 1237s # _test_fdpassing_skeleton_handle_method_call, 1237s # _test_fdpassing_skeleton_handle_get_property, 1237s # _test_fdpassing_skeleton_handle_set_property, 1237s # {NULL} 1237s # }; 1237s # 1237s # static GDBusInterfaceInfo * 1237s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return test_fdpassing_interface_info (); 1237s # } 1237s # 1237s # static GDBusInterfaceVTable * 1237s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1237s # { 1237s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 1237s # } 1237s # 1237s # static GVariant * 1237s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1237s # { 1237s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 1237s # 1237s # GVariantBuilder builder; 1237s # guint n; 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #else 1237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1237s # #endif 1237s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 1237s # goto out; 1237s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 1237s # { 1237s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 1237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1237s # { 1237s # GVariant *value; 1237s # 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); 1237s # if (value != NULL) 1237s # { 1237s # g_variant_take_ref (value); 1237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1237s # g_variant_unref (value); 1237s # } 1237s # } 1237s # } 1237s # out: 1237s # return g_variant_builder_end (&builder); 1237s # } 1237s # 1237s # static void 1237s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_ADD_PRIVATE (TestFDPassingSkeleton) 1237s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1237s # 1237s # #else 1237s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1237s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1237s # 1237s # #endif 1237s # static void 1237s # test_fdpassing_skeleton_finalize (GObject *object) 1237s # { 1237s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 1237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1237s # if (skeleton->priv->changed_properties_idle_source != NULL) 1237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1237s # g_main_context_unref (skeleton->priv->context); 1237s # g_mutex_clear (&skeleton->priv->lock); 1237s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 1237s # } 1237s # 1237s # static void 1237s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 1237s # { 1237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1237s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 1237s # #else 1237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 1237s # #endif 1237s # 1237s # g_mutex_init (&skeleton->priv->lock); 1237s # skeleton->priv->context = g_main_context_ref_thread_default (); 1237s # } 1237s # 1237s # static void 1237s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 1237s # { 1237s # GObjectClass *gobject_class; 1237s # GDBusInterfaceSkeletonClass *skeleton_class; 1237s # 1237s # gobject_class = G_OBJECT_CLASS (klass); 1237s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 1237s # 1237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1237s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 1237s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 1237s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 1237s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 1237s # 1237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1237s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 1237s # #endif 1237s # } 1237s # 1237s # static void 1237s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1237s # { 1237s # } 1237s # 1237s # /** 1237s # * test_fdpassing_skeleton_new: 1237s # * 1237s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 1237s # * 1237s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 1237s # */ 1237s # TestFDPassing * 1237s # test_fdpassing_skeleton_new (void) 1237s # { 1237s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 1237s # } 1237s # Error: 1237s ok 15 __main__.TestCodegen.test_generate_rst 1237s # gdbus-codegen: /usr/bin/gdbus-codegen 1237s # tmpdir: /tmp/tmpfvyudm8p 1237s # /tmp/tmpfvyudm8p/tmphusy52w2.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfvyudm8p/tmphusy52w2.xml', '--generate-rst', 'test'] 1237s # Return code: 0 1237s # Output: 1237s # 1237s # Error: 1237s ok 16 __main__.TestCodegen.test_generate_rst_method 1237s # gdbus-codegen: /usr/bin/gdbus-codegen 1237s # tmpdir: /tmp/tmpksjna_qd 1237s # /tmp/tmpksjna_qd/tmptkfzzth1.xml: 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # 1237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpksjna_qd/tmptkfzzth1.xml', '--generate-rst', 'test'] 1237s # Return code: 0 1237s # Output: 1237s # 1237s # Error: 1238s ok 17 __main__.TestCodegen.test_generate_rst_property 1238s # gdbus-codegen: /usr/bin/gdbus-codegen 1238s # tmpdir: /tmp/tmpvx6spulz 1238s # /tmp/tmpvx6spulz/tmpmcqeor7k.xml: 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvx6spulz/tmpmcqeor7k.xml', '--generate-rst', 'test'] 1238s # Return code: 0 1238s # Output: 1238s # 1238s # Error: 1238s ok 18 __main__.TestCodegen.test_generate_rst_signal 1238s # gdbus-codegen: /usr/bin/gdbus-codegen 1238s # tmpdir: /tmp/tmpx6ckdd6_ 1238s # /tmp/tmpx6ckdd6_/tmpwpadderr.xml: 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx6ckdd6_/tmpwpadderr.xml', '--generate-rst', 'test'] 1238s # Return code: 0 1238s # Output: 1238s # 1238s # Error: 1238s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 1238s # gdbus-codegen: /usr/bin/gdbus-codegen 1238s # tmpdir: /tmp/tmp2ppqijap 1238s # /tmp/tmp2ppqijap/tmppv3_ecn4.xml: 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2ppqijap/tmppv3_ecn4.xml', '--output', '-', '--body'] 1238s # Return code: 0 1238s # Output: 1238s # /* 1238s # * This file is generated by gdbus-codegen, do not modify it. 1238s # * 1238s # * The license of this code is the same as for the D-Bus interface description 1238s # * it was derived from. Note that it links to GLib, so must comply with the 1238s # * LGPL linking clauses. 1238s # */ 1238s # 1238s # #ifdef HAVE_CONFIG_H 1238s # # include "config.h" 1238s # #endif 1238s # 1238s # #include 1238s # #ifdef G_OS_UNIX 1238s # # include 1238s # #endif 1238s # 1238s # #ifdef G_ENABLE_DEBUG 1238s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1238s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1238s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1238s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1238s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1238s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1238s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1238s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1238s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1238s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1238s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1238s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1238s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1238s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1238s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1238s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1238s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1238s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1238s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1238s # #else /* !G_ENABLE_DEBUG */ 1238s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1238s # * Do not access GValues directly in your code. Instead, use the 1238s # * g_value_get_*() functions 1238s # */ 1238s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1238s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1238s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1238s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1238s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1238s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1238s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1238s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1238s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1238s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1238s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1238s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1238s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1238s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1238s # #endif /* !G_ENABLE_DEBUG */ 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusArgInfo parent_struct; 1238s # gboolean use_gvariant; 1238s # } _ExtendedGDBusArgInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusMethodInfo parent_struct; 1238s # const gchar *signal_name; 1238s # gboolean pass_fdlist; 1238s # } _ExtendedGDBusMethodInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusSignalInfo parent_struct; 1238s # const gchar *signal_name; 1238s # } _ExtendedGDBusSignalInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusPropertyInfo parent_struct; 1238s # const gchar *hyphen_name; 1238s # guint use_gvariant : 1; 1238s # guint emits_changed_signal : 1; 1238s # } _ExtendedGDBusPropertyInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusInterfaceInfo parent_struct; 1238s # const gchar *hyphen_name; 1238s # } _ExtendedGDBusInterfaceInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # const _ExtendedGDBusPropertyInfo *info; 1238s # guint prop_id; 1238s # GValue orig_value; /* the value before the change */ 1238s # } ChangedProperty; 1238s # 1238s # static void 1238s # _changed_property_free (ChangedProperty *data) 1238s # { 1238s # g_value_unset (&data->orig_value); 1238s # g_free (data); 1238s # } 1238s # 1238s # static gboolean 1238s # _g_strv_equal0 (gchar **a, gchar **b) 1238s # { 1238s # gboolean ret = FALSE; 1238s # guint n; 1238s # if (a == NULL && b == NULL) 1238s # { 1238s # ret = TRUE; 1238s # goto out; 1238s # } 1238s # if (a == NULL || b == NULL) 1238s # goto out; 1238s # if (g_strv_length (a) != g_strv_length (b)) 1238s # goto out; 1238s # for (n = 0; a[n] != NULL; n++) 1238s # if (g_strcmp0 (a[n], b[n]) != 0) 1238s # goto out; 1238s # ret = TRUE; 1238s # out: 1238s # return ret; 1238s # } 1238s # 1238s # static gboolean 1238s # _g_variant_equal0 (GVariant *a, GVariant *b) 1238s # { 1238s # gboolean ret = FALSE; 1238s # if (a == NULL && b == NULL) 1238s # { 1238s # ret = TRUE; 1238s # goto out; 1238s # } 1238s # if (a == NULL || b == NULL) 1238s # goto out; 1238s # ret = g_variant_equal (a, b); 1238s # out: 1238s # return ret; 1238s # } 1238s # 1238s # G_GNUC_UNUSED static gboolean 1238s # _g_value_equal (const GValue *a, const GValue *b) 1238s # { 1238s # gboolean ret = FALSE; 1238s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1238s # switch (G_VALUE_TYPE (a)) 1238s # { 1238s # case G_TYPE_BOOLEAN: 1238s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1238s # break; 1238s # case G_TYPE_UCHAR: 1238s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1238s # break; 1238s # case G_TYPE_INT: 1238s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1238s # break; 1238s # case G_TYPE_UINT: 1238s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1238s # break; 1238s # case G_TYPE_INT64: 1238s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1238s # break; 1238s # case G_TYPE_UINT64: 1238s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1238s # break; 1238s # case G_TYPE_DOUBLE: 1238s # { 1238s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1238s # gdouble da = g_value_get_double (a); 1238s # gdouble db = g_value_get_double (b); 1238s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1238s # } 1238s # break; 1238s # case G_TYPE_STRING: 1238s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1238s # break; 1238s # case G_TYPE_VARIANT: 1238s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1238s # break; 1238s # default: 1238s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1238s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1238s # else 1238s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1238s # break; 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static void 1238s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1238s # GClosure *closure, 1238s # GValue *return_value G_GNUC_UNUSED, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint G_GNUC_UNUSED, 1238s # void *marshal_data) 1238s # { 1238s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1238s # (void *data1, 1238s # gboolean arg_an_b, 1238s # guchar arg_an_y, 1238s # gint16 arg_an_n, 1238s # guint16 arg_an_q, 1238s # gint arg_an_i, 1238s # guint arg_an_u, 1238s # gint64 arg_an_x, 1238s # guint64 arg_an_t, 1238s # gdouble arg_an_d, 1238s # const gchar *arg_an_s, 1238s # const gchar *arg_an_o, 1238s # const gchar *arg_an_g, 1238s # GVariant *arg_an_h, 1238s # const gchar *arg_an_ay, 1238s # const gchar *const *arg_an_as, 1238s # const gchar *const *arg_an_ao, 1238s # const gchar *const *arg_an_aay, 1238s # GVariant *arg_an_asv, 1238s # void *data2); 1238s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1238s # GCClosure *cc = (GCClosure*) closure; 1238s # void *data1, *data2; 1238s # 1238s # g_return_if_fail (n_param_values == 19); 1238s # 1238s # if (G_CCLOSURE_SWAP_DATA (closure)) 1238s # { 1238s # data1 = closure->data; 1238s # data2 = g_value_peek_pointer (param_values + 0); 1238s # } 1238s # else 1238s # { 1238s # data1 = g_value_peek_pointer (param_values + 0); 1238s # data2 = closure->data; 1238s # } 1238s # 1238s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1238s # (marshal_data ? marshal_data : cc->callback); 1238s # 1238s # callback (data1, 1238s # g_marshal_value_peek_boolean (param_values + 1), 1238s # g_marshal_value_peek_uchar (param_values + 2), 1238s # g_marshal_value_peek_int (param_values + 3), 1238s # g_marshal_value_peek_uint (param_values + 4), 1238s # g_marshal_value_peek_int (param_values + 5), 1238s # g_marshal_value_peek_uint (param_values + 6), 1238s # g_marshal_value_peek_int64 (param_values + 7), 1238s # g_marshal_value_peek_uint64 (param_values + 8), 1238s # g_marshal_value_peek_double (param_values + 9), 1238s # g_marshal_value_peek_string (param_values + 10), 1238s # g_marshal_value_peek_string (param_values + 11), 1238s # g_marshal_value_peek_string (param_values + 12), 1238s # g_marshal_value_peek_variant (param_values + 13), 1238s # g_marshal_value_peek_string (param_values + 14), 1238s # g_marshal_value_peek_boxed (param_values + 15), 1238s # g_marshal_value_peek_boxed (param_values + 16), 1238s # g_marshal_value_peek_boxed (param_values + 17), 1238s # g_marshal_value_peek_variant (param_values + 18), 1238s # data2); 1238s # } 1238s # 1238s # /* ------------------------------------------------------------------------ 1238s # * Code for interface org.project.SignalingIface 1238s # * ------------------------------------------------------------------------ 1238s # */ 1238s # 1238s # /** 1238s # * SECTION:OrgProjectSignalingIface 1238s # * @title: OrgProjectSignalingIface 1238s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1238s # * 1238s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1238s # */ 1238s # 1238s # enum 1238s # { 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1238s # }; 1238s # 1238s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1238s # 1238s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_b", 1238s # (gchar *) "b", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_y", 1238s # (gchar *) "y", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_n", 1238s # (gchar *) "n", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_q", 1238s # (gchar *) "q", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_i", 1238s # (gchar *) "i", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_u", 1238s # (gchar *) "u", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_x", 1238s # (gchar *) "x", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_t", 1238s # (gchar *) "t", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_d", 1238s # (gchar *) "d", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_s", 1238s # (gchar *) "s", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_o", 1238s # (gchar *) "o", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_g", 1238s # (gchar *) "g", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_h", 1238s # (gchar *) "h", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_ay", 1238s # (gchar *) "ay", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_as", 1238s # (gchar *) "as", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_ao", 1238s # (gchar *) "ao", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_aay", 1238s # (gchar *) "aay", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_asv", 1238s # (gchar *) "a{sv}", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SignalWithManyArgs", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "signal-with-many-args" 1238s # }; 1238s # 1238s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "org.project.SignalingIface", 1238s # NULL, 1238s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1238s # NULL, 1238s # NULL 1238s # }, 1238s # "org-project-signaling-iface", 1238s # }; 1238s # 1238s # 1238s # /** 1238s # * org_project_signaling_iface_interface_info: 1238s # * 1238s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1238s # * 1238s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1238s # */ 1238s # GDBusInterfaceInfo * 1238s # org_project_signaling_iface_interface_info (void) 1238s # { 1238s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_override_properties: 1238s # * @klass: The class structure for a #GObject derived class. 1238s # * @property_id_begin: The property id to assign to the first overridden property. 1238s # * 1238s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1238s # * The properties are overridden in the order they are defined. 1238s # * 1238s # * Returns: The last property id. 1238s # */ 1238s # guint 1238s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1238s # { 1238s # return property_id_begin - 1; 1238s # } 1238s # 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface: 1238s # * 1238s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceIface: 1238s # * @parent_iface: The parent interface. 1238s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1238s # * 1238s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1238s # */ 1238s # 1238s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1238s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1238s # 1238s # static void 1238s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1238s # { 1238s # /* GObject signals for received D-Bus signals: */ 1238s # /** 1238s # * OrgProjectSignalingIface::signal-with-many-args: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_b: Argument. 1238s # * @arg_an_y: Argument. 1238s # * @arg_an_n: Argument. 1238s # * @arg_an_q: Argument. 1238s # * @arg_an_i: Argument. 1238s # * @arg_an_u: Argument. 1238s # * @arg_an_x: Argument. 1238s # * @arg_an_t: Argument. 1238s # * @arg_an_d: Argument. 1238s # * @arg_an_s: Argument. 1238s # * @arg_an_o: Argument. 1238s # * @arg_an_g: Argument. 1238s # * @arg_an_h: Argument. 1238s # * @arg_an_ay: Argument. 1238s # * @arg_an_as: Argument. 1238s # * @arg_an_ao: Argument. 1238s # * @arg_an_aay: Argument. 1238s # * @arg_an_asv: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1238s # g_signal_new ("signal-with-many-args", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1238s # G_TYPE_NONE, 1238s # 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); 1238s # 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_signal_with_many_args: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_b: Argument to pass with the signal. 1238s # * @arg_an_y: Argument to pass with the signal. 1238s # * @arg_an_n: Argument to pass with the signal. 1238s # * @arg_an_q: Argument to pass with the signal. 1238s # * @arg_an_i: Argument to pass with the signal. 1238s # * @arg_an_u: Argument to pass with the signal. 1238s # * @arg_an_x: Argument to pass with the signal. 1238s # * @arg_an_t: Argument to pass with the signal. 1238s # * @arg_an_d: Argument to pass with the signal. 1238s # * @arg_an_s: Argument to pass with the signal. 1238s # * @arg_an_o: Argument to pass with the signal. 1238s # * @arg_an_g: Argument to pass with the signal. 1238s # * @arg_an_h: Argument to pass with the signal. 1238s # * @arg_an_ay: Argument to pass with the signal. 1238s # * @arg_an_as: Argument to pass with the signal. 1238s # * @arg_an_ao: Argument to pass with the signal. 1238s # * @arg_an_aay: Argument to pass with the signal. 1238s # * @arg_an_asv: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SignalWithManyArgs" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_signal_with_many_args ( 1238s # OrgProjectSignalingIface *object, 1238s # gboolean arg_an_b, 1238s # guchar arg_an_y, 1238s # gint16 arg_an_n, 1238s # guint16 arg_an_q, 1238s # gint arg_an_i, 1238s # guint arg_an_u, 1238s # gint64 arg_an_x, 1238s # guint64 arg_an_t, 1238s # gdouble arg_an_d, 1238s # const gchar *arg_an_s, 1238s # const gchar *arg_an_o, 1238s # const gchar *arg_an_g, 1238s # GVariant *arg_an_h, 1238s # const gchar *arg_an_ay, 1238s # const gchar *const *arg_an_as, 1238s # const gchar *const *arg_an_ao, 1238s # const gchar *const *arg_an_aay, 1238s # GVariant *arg_an_asv) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /* ------------------------------------------------------------------------ */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceProxy: 1238s # * 1238s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceProxyClass: 1238s # * @parent_class: The parent class. 1238s # * 1238s # * Class structure for #OrgProjectSignalingIfaceProxy. 1238s # */ 1238s # 1238s # struct _OrgProjectSignalingIfaceProxyPrivate 1238s # { 1238s # GData *qdata; 1238s # }; 1238s # 1238s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1238s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1238s # 1238s # #else 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1238s # 1238s # #endif 1238s # static void 1238s # org_project_signaling_iface_proxy_finalize (GObject *object) 1238s # { 1238s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1238s # g_datalist_clear (&proxy->priv->qdata); 1238s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1238s # guint prop_id G_GNUC_UNUSED, 1238s # GValue *value G_GNUC_UNUSED, 1238s # GParamSpec *pspec G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1238s # guint prop_id G_GNUC_UNUSED, 1238s # const GValue *value G_GNUC_UNUSED, 1238s # GParamSpec *pspec G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1238s # const gchar *sender_name G_GNUC_UNUSED, 1238s # const gchar *signal_name, 1238s # GVariant *parameters) 1238s # { 1238s # _ExtendedGDBusSignalInfo *info; 1238s # GVariantIter iter; 1238s # GVariant *child; 1238s # GValue *paramv; 1238s # gsize num_params; 1238s # gsize n; 1238s # guint signal_id; 1238s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1238s # if (info == NULL) 1238s # return; 1238s # num_params = g_variant_n_children (parameters); 1238s # paramv = g_new0 (GValue, num_params + 1); 1238s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1238s # g_value_set_object (¶mv[0], proxy); 1238s # g_variant_iter_init (&iter, parameters); 1238s # n = 1; 1238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1238s # { 1238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1238s # if (arg_info->use_gvariant) 1238s # { 1238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1238s # g_value_set_variant (¶mv[n], child); 1238s # n++; 1238s # } 1238s # else 1238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1238s # g_variant_unref (child); 1238s # } 1238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1238s # g_signal_emitv (paramv, signal_id, 0, NULL); 1238s # for (n = 0; n < num_params + 1; n++) 1238s # g_value_unset (¶mv[n]); 1238s # g_free (paramv); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1238s # GVariant *changed_properties, 1238s # const gchar *const *invalidated_properties) 1238s # { 1238s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1238s # guint n; 1238s # const gchar *key; 1238s # GVariantIter *iter; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # g_variant_get (changed_properties, "a{sv}", &iter); 1238s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1238s # { 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1238s # g_datalist_remove_data (&proxy->priv->qdata, key); 1238s # if (info != NULL) 1238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1238s # } 1238s # g_variant_iter_free (iter); 1238s # for (n = 0; invalidated_properties[n] != NULL; n++) 1238s # { 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1238s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1238s # if (info != NULL) 1238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1238s # } 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1238s # { 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1238s # #else 1238s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1238s # #endif 1238s # 1238s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1238s # { 1238s # GObjectClass *gobject_class; 1238s # GDBusProxyClass *proxy_class; 1238s # 1238s # gobject_class = G_OBJECT_CLASS (klass); 1238s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1238s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1238s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1238s # 1238s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1238s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1238s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1238s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1238s # #endif 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new: 1238s # * @connection: A #GDBusConnection. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1238s # * @user_data: User data to pass to @callback. 1238s # * 1238s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1238s # * 1238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1238s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1238s # * 1238s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_proxy_new ( 1238s # GDBusConnection *connection, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GAsyncReadyCallback callback, 1238s # gpointer user_data) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_finish: 1238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_proxy_new_finish ( 1238s # GAsyncResult *res, 1238s # GError **error) 1238s # { 1238s # GObject *ret; 1238s # GObject *source_object; 1238s # source_object = g_async_result_get_source_object (res); 1238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1238s # g_object_unref (source_object); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_sync: 1238s # * @connection: A #GDBusConnection. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1238s # * 1238s # * The calling thread is blocked until a reply is received. 1238s # * 1238s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_proxy_new_sync ( 1238s # GDBusConnection *connection, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GError **error) 1238s # { 1238s # GInitable *ret; 1238s # 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); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_for_bus: 1238s # * @bus_type: A #GBusType. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: A bus name (well-known or unique). 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1238s # * @user_data: User data to pass to @callback. 1238s # * 1238s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1238s # * 1238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1238s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1238s # * 1238s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_proxy_new_for_bus ( 1238s # GBusType bus_type, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GAsyncReadyCallback callback, 1238s # gpointer user_data) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1238s # GAsyncResult *res, 1238s # GError **error) 1238s # { 1238s # GObject *ret; 1238s # GObject *source_object; 1238s # source_object = g_async_result_get_source_object (res); 1238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1238s # g_object_unref (source_object); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1238s # * @bus_type: A #GBusType. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: A bus name (well-known or unique). 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1238s # * 1238s # * The calling thread is blocked until a reply is received. 1238s # * 1238s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1238s # GBusType bus_type, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GError **error) 1238s # { 1238s # GInitable *ret; 1238s # 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); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # 1238s # /* ------------------------------------------------------------------------ */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceSkeleton: 1238s # * 1238s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceSkeletonClass: 1238s # * @parent_class: The parent class. 1238s # * 1238s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1238s # */ 1238s # 1238s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1238s # { 1238s # GValue *properties; 1238s # GList *changed_properties; 1238s # GSource *changed_properties_idle_source; 1238s # GMainContext *context; 1238s # GMutex lock; 1238s # }; 1238s # 1238s # static void 1238s # _org_project_signaling_iface_skeleton_handle_method_call ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name, 1238s # const gchar *method_name, 1238s # GVariant *parameters, 1238s # GDBusMethodInvocation *invocation, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1238s # _ExtendedGDBusMethodInfo *info; 1238s # GVariantIter iter; 1238s # GVariant *child; 1238s # GValue *paramv; 1238s # gsize num_params; 1238s # guint num_extra; 1238s # gsize n; 1238s # guint signal_id; 1238s # GValue return_value = G_VALUE_INIT; 1238s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1238s # g_assert (info != NULL); 1238s # num_params = g_variant_n_children (parameters); 1238s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1238s # n = 0; 1238s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1238s # g_value_set_object (¶mv[n++], skeleton); 1238s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1238s # g_value_set_object (¶mv[n++], invocation); 1238s # if (info->pass_fdlist) 1238s # { 1238s # #ifdef G_OS_UNIX 1238s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1238s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1238s # #else 1238s # g_assert_not_reached (); 1238s # #endif 1238s # } 1238s # g_variant_iter_init (&iter, parameters); 1238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1238s # { 1238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1238s # if (arg_info->use_gvariant) 1238s # { 1238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1238s # g_value_set_variant (¶mv[n], child); 1238s # n++; 1238s # } 1238s # else 1238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1238s # g_variant_unref (child); 1238s # } 1238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1238s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1238s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1238s # if (!g_value_get_boolean (&return_value)) 1238s # 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); 1238s # g_value_unset (&return_value); 1238s # for (n = 0; n < num_params + num_extra; n++) 1238s # g_value_unset (¶mv[n]); 1238s # g_free (paramv); 1238s # } 1238s # 1238s # static GVariant * 1238s # _org_project_signaling_iface_skeleton_handle_get_property ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name G_GNUC_UNUSED, 1238s # const gchar *property_name, 1238s # GError **error, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1238s # GValue value = G_VALUE_INIT; 1238s # GParamSpec *pspec; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # GVariant *ret; 1238s # ret = NULL; 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1238s # g_assert (info != NULL); 1238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1238s # if (pspec == NULL) 1238s # { 1238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1238s # } 1238s # else 1238s # { 1238s # g_value_init (&value, pspec->value_type); 1238s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1238s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1238s # g_value_unset (&value); 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static gboolean 1238s # _org_project_signaling_iface_skeleton_handle_set_property ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name G_GNUC_UNUSED, 1238s # const gchar *property_name, 1238s # GVariant *variant, 1238s # GError **error, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1238s # GValue value = G_VALUE_INIT; 1238s # GParamSpec *pspec; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # gboolean ret; 1238s # ret = FALSE; 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1238s # g_assert (info != NULL); 1238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1238s # if (pspec == NULL) 1238s # { 1238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1238s # } 1238s # else 1238s # { 1238s # if (info->use_gvariant) 1238s # g_value_set_variant (&value, variant); 1238s # else 1238s # g_dbus_gvariant_to_gvalue (variant, &value); 1238s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1238s # g_value_unset (&value); 1238s # ret = TRUE; 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1238s # { 1238s # _org_project_signaling_iface_skeleton_handle_method_call, 1238s # _org_project_signaling_iface_skeleton_handle_get_property, 1238s # _org_project_signaling_iface_skeleton_handle_set_property, 1238s # {NULL} 1238s # }; 1238s # 1238s # static GDBusInterfaceInfo * 1238s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1238s # { 1238s # return org_project_signaling_iface_interface_info (); 1238s # } 1238s # 1238s # static GDBusInterfaceVTable * 1238s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1238s # { 1238s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1238s # } 1238s # 1238s # static GVariant * 1238s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1238s # 1238s # GVariantBuilder builder; 1238s # guint n; 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1238s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1238s # #else 1238s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1238s # #endif 1238s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1238s # goto out; 1238s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1238s # { 1238s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1238s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1238s # { 1238s # GVariant *value; 1238s # 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); 1238s # if (value != NULL) 1238s # { 1238s # g_variant_take_ref (value); 1238s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1238s # g_variant_unref (value); 1238s # } 1238s # } 1238s # } 1238s # out: 1238s # return g_variant_builder_end (&builder); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1238s # OrgProjectSignalingIface *object, 1238s # gboolean arg_an_b, 1238s # guchar arg_an_y, 1238s # gint16 arg_an_n, 1238s # guint16 arg_an_q, 1238s # gint arg_an_i, 1238s # guint arg_an_u, 1238s # gint64 arg_an_x, 1238s # guint64 arg_an_t, 1238s # gdouble arg_an_d, 1238s # const gchar *arg_an_s, 1238s # const gchar *arg_an_o, 1238s # const gchar *arg_an_g, 1238s # GVariant *arg_an_h, 1238s # const gchar *arg_an_ay, 1238s # const gchar *const *arg_an_as, 1238s # const gchar *const *arg_an_ao, 1238s # const gchar *const *arg_an_aay, 1238s # GVariant *arg_an_asv) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1238s # arg_an_b, 1238s # arg_an_y, 1238s # arg_an_n, 1238s # arg_an_q, 1238s # arg_an_i, 1238s # arg_an_u, 1238s # arg_an_x, 1238s # arg_an_t, 1238s # arg_an_d, 1238s # arg_an_s, 1238s # arg_an_o, 1238s # arg_an_g, 1238s # arg_an_h, 1238s # arg_an_ay, 1238s # arg_an_as, 1238s # arg_an_ao, 1238s # arg_an_aay, 1238s # arg_an_asv)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1238s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1238s # 1238s # #else 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1238s # 1238s # #endif 1238s # static void 1238s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1238s # if (skeleton->priv->changed_properties_idle_source != NULL) 1238s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1238s # g_main_context_unref (skeleton->priv->context); 1238s # g_mutex_clear (&skeleton->priv->lock); 1238s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1238s # { 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1238s # #else 1238s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1238s # #endif 1238s # 1238s # g_mutex_init (&skeleton->priv->lock); 1238s # skeleton->priv->context = g_main_context_ref_thread_default (); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1238s # { 1238s # GObjectClass *gobject_class; 1238s # GDBusInterfaceSkeletonClass *skeleton_class; 1238s # 1238s # gobject_class = G_OBJECT_CLASS (klass); 1238s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1238s # 1238s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1238s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1238s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1238s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1238s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1238s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1238s # #endif 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1238s # { 1238s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_skeleton_new: 1238s # * 1238s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_skeleton_new (void) 1238s # { 1238s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1238s # } 1238s # Error: 1238s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 1238s # gdbus-codegen: /usr/bin/gdbus-codegen 1238s # tmpdir: /tmp/tmpie452gpw 1238s # /tmp/tmpie452gpw/tmpsdhwd31g.xml: 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpie452gpw/tmpsdhwd31g.xml', '--output', '-', '--body'] 1238s # Return code: 0 1238s # Output: 1238s # /* 1238s # * This file is generated by gdbus-codegen, do not modify it. 1238s # * 1238s # * The license of this code is the same as for the D-Bus interface description 1238s # * it was derived from. Note that it links to GLib, so must comply with the 1238s # * LGPL linking clauses. 1238s # */ 1238s # 1238s # #ifdef HAVE_CONFIG_H 1238s # # include "config.h" 1238s # #endif 1238s # 1238s # #include 1238s # #ifdef G_OS_UNIX 1238s # # include 1238s # #endif 1238s # 1238s # #ifdef G_ENABLE_DEBUG 1238s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1238s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1238s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1238s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1238s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1238s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1238s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1238s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1238s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1238s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1238s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1238s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1238s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1238s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1238s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1238s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1238s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1238s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1238s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1238s # #else /* !G_ENABLE_DEBUG */ 1238s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1238s # * Do not access GValues directly in your code. Instead, use the 1238s # * g_value_get_*() functions 1238s # */ 1238s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1238s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1238s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1238s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1238s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1238s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1238s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1238s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1238s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1238s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1238s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1238s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1238s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1238s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1238s # #endif /* !G_ENABLE_DEBUG */ 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusArgInfo parent_struct; 1238s # gboolean use_gvariant; 1238s # } _ExtendedGDBusArgInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusMethodInfo parent_struct; 1238s # const gchar *signal_name; 1238s # gboolean pass_fdlist; 1238s # } _ExtendedGDBusMethodInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusSignalInfo parent_struct; 1238s # const gchar *signal_name; 1238s # } _ExtendedGDBusSignalInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusPropertyInfo parent_struct; 1238s # const gchar *hyphen_name; 1238s # guint use_gvariant : 1; 1238s # guint emits_changed_signal : 1; 1238s # } _ExtendedGDBusPropertyInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusInterfaceInfo parent_struct; 1238s # const gchar *hyphen_name; 1238s # } _ExtendedGDBusInterfaceInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # const _ExtendedGDBusPropertyInfo *info; 1238s # guint prop_id; 1238s # GValue orig_value; /* the value before the change */ 1238s # } ChangedProperty; 1238s # 1238s # static void 1238s # _changed_property_free (ChangedProperty *data) 1238s # { 1238s # g_value_unset (&data->orig_value); 1238s # g_free (data); 1238s # } 1238s # 1238s # static gboolean 1238s # _g_strv_equal0 (gchar **a, gchar **b) 1238s # { 1238s # gboolean ret = FALSE; 1238s # guint n; 1238s # if (a == NULL && b == NULL) 1238s # { 1238s # ret = TRUE; 1238s # goto out; 1238s # } 1238s # if (a == NULL || b == NULL) 1238s # goto out; 1238s # if (g_strv_length (a) != g_strv_length (b)) 1238s # goto out; 1238s # for (n = 0; a[n] != NULL; n++) 1238s # if (g_strcmp0 (a[n], b[n]) != 0) 1238s # goto out; 1238s # ret = TRUE; 1238s # out: 1238s # return ret; 1238s # } 1238s # 1238s # static gboolean 1238s # _g_variant_equal0 (GVariant *a, GVariant *b) 1238s # { 1238s # gboolean ret = FALSE; 1238s # if (a == NULL && b == NULL) 1238s # { 1238s # ret = TRUE; 1238s # goto out; 1238s # } 1238s # if (a == NULL || b == NULL) 1238s # goto out; 1238s # ret = g_variant_equal (a, b); 1238s # out: 1238s # return ret; 1238s # } 1238s # 1238s # G_GNUC_UNUSED static gboolean 1238s # _g_value_equal (const GValue *a, const GValue *b) 1238s # { 1238s # gboolean ret = FALSE; 1238s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1238s # switch (G_VALUE_TYPE (a)) 1238s # { 1238s # case G_TYPE_BOOLEAN: 1238s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1238s # break; 1238s # case G_TYPE_UCHAR: 1238s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1238s # break; 1238s # case G_TYPE_INT: 1238s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1238s # break; 1238s # case G_TYPE_UINT: 1238s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1238s # break; 1238s # case G_TYPE_INT64: 1238s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1238s # break; 1238s # case G_TYPE_UINT64: 1238s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1238s # break; 1238s # case G_TYPE_DOUBLE: 1238s # { 1238s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1238s # gdouble da = g_value_get_double (a); 1238s # gdouble db = g_value_get_double (b); 1238s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1238s # } 1238s # break; 1238s # case G_TYPE_STRING: 1238s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1238s # break; 1238s # case G_TYPE_VARIANT: 1238s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1238s # break; 1238s # default: 1238s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1238s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1238s # else 1238s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1238s # break; 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static void 1238s # _g_dbus_codegen_marshal_VOID__INT64 ( 1238s # GClosure *closure, 1238s # GValue *return_value G_GNUC_UNUSED, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint G_GNUC_UNUSED, 1238s # void *marshal_data) 1238s # { 1238s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1238s # (void *data1, 1238s # gint64 arg_an_x, 1238s # void *data2); 1238s # _GDbusCodegenMarshalVoid_Int64Func callback; 1238s # GCClosure *cc = (GCClosure*) closure; 1238s # void *data1, *data2; 1238s # 1238s # g_return_if_fail (n_param_values == 2); 1238s # 1238s # if (G_CCLOSURE_SWAP_DATA (closure)) 1238s # { 1238s # data1 = closure->data; 1238s # data2 = g_value_peek_pointer (param_values + 0); 1238s # } 1238s # else 1238s # { 1238s # data1 = g_value_peek_pointer (param_values + 0); 1238s # data2 = closure->data; 1238s # } 1238s # 1238s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1238s # (marshal_data ? marshal_data : cc->callback); 1238s # 1238s # callback (data1, 1238s # g_marshal_value_peek_int64 (param_values + 1), 1238s # data2); 1238s # } 1238s # 1238s # static void 1238s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1238s # GClosure *closure, 1238s # GValue *return_value G_GNUC_UNUSED, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint G_GNUC_UNUSED, 1238s # void *marshal_data) 1238s # { 1238s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1238s # (void *data1, 1238s # guint64 arg_an_t, 1238s # void *data2); 1238s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1238s # GCClosure *cc = (GCClosure*) closure; 1238s # void *data1, *data2; 1238s # 1238s # g_return_if_fail (n_param_values == 2); 1238s # 1238s # if (G_CCLOSURE_SWAP_DATA (closure)) 1238s # { 1238s # data1 = closure->data; 1238s # data2 = g_value_peek_pointer (param_values + 0); 1238s # } 1238s # else 1238s # { 1238s # data1 = g_value_peek_pointer (param_values + 0); 1238s # data2 = closure->data; 1238s # } 1238s # 1238s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1238s # (marshal_data ? marshal_data : cc->callback); 1238s # 1238s # callback (data1, 1238s # g_marshal_value_peek_uint64 (param_values + 1), 1238s # data2); 1238s # } 1238s # 1238s # /* ------------------------------------------------------------------------ 1238s # * Code for interface org.project.SignalingIface 1238s # * ------------------------------------------------------------------------ 1238s # */ 1238s # 1238s # /** 1238s # * SECTION:OrgProjectSignalingIface 1238s # * @title: OrgProjectSignalingIface 1238s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1238s # * 1238s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1238s # */ 1238s # 1238s # enum 1238s # { 1238s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1238s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1238s # }; 1238s # 1238s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 1238s # 1238s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "NoArgSignal", 1238s # NULL, 1238s # NULL 1238s # }, 1238s # "no-arg-signal" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_b", 1238s # (gchar *) "b", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalB", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-b" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_y", 1238s # (gchar *) "y", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalY", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-y" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_n", 1238s # (gchar *) "n", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalN", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-n" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_q", 1238s # (gchar *) "q", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalQ", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-q" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_i", 1238s # (gchar *) "i", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalI", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-i" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_u", 1238s # (gchar *) "u", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalU", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-u" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_x", 1238s # (gchar *) "x", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalX", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-x" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_t", 1238s # (gchar *) "t", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalT", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-t" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_d", 1238s # (gchar *) "d", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalD", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-d" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_s", 1238s # (gchar *) "s", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalS", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-s" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_o", 1238s # (gchar *) "o", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalO", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-o" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_g", 1238s # (gchar *) "g", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalG", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-g" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_h", 1238s # (gchar *) "h", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalH", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-h" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_ay", 1238s # (gchar *) "ay", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalAY", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-ay" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_as", 1238s # (gchar *) "as", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalAS", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-as" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_ao", 1238s # (gchar *) "ao", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalAO", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-ao" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_aay", 1238s # (gchar *) "aay", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalAAY", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-aay" 1238s # }; 1238s # 1238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "an_asv", 1238s # (gchar *) "a{sv}", 1238s # NULL 1238s # }, 1238s # FALSE 1238s # }; 1238s # 1238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SingleArgSignalASV", 1238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1238s # NULL 1238s # }, 1238s # "single-arg-signal-asv" 1238s # }; 1238s # 1238s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1238s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "org.project.SignalingIface", 1238s # NULL, 1238s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1238s # NULL, 1238s # NULL 1238s # }, 1238s # "org-project-signaling-iface", 1238s # }; 1238s # 1238s # 1238s # /** 1238s # * org_project_signaling_iface_interface_info: 1238s # * 1238s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1238s # * 1238s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1238s # */ 1238s # GDBusInterfaceInfo * 1238s # org_project_signaling_iface_interface_info (void) 1238s # { 1238s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_override_properties: 1238s # * @klass: The class structure for a #GObject derived class. 1238s # * @property_id_begin: The property id to assign to the first overridden property. 1238s # * 1238s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1238s # * The properties are overridden in the order they are defined. 1238s # * 1238s # * Returns: The last property id. 1238s # */ 1238s # guint 1238s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1238s # { 1238s # return property_id_begin - 1; 1238s # } 1238s # 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__VOID (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__UCHAR (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__INT (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__UINT (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__INT (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__UINT (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__DOUBLE (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__STRING (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__STRING (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__STRING (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__VARIANT (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__STRING (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__BOXED (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__BOXED (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__BOXED (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__VARIANT (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface: 1238s # * 1238s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceIface: 1238s # * @parent_iface: The parent interface. 1238s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 1238s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1238s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1238s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1238s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1238s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1238s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1238s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1238s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1238s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1238s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1238s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1238s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1238s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1238s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1238s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1238s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1238s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1238s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1238s # * 1238s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1238s # */ 1238s # 1238s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1238s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1238s # 1238s # static void 1238s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1238s # { 1238s # /* GObject signals for received D-Bus signals: */ 1238s # /** 1238s # * OrgProjectSignalingIface::no-arg-signal: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 1238s # g_signal_new ("no-arg-signal", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_no_arg_signal, 1238s # G_TYPE_NONE, 1238s # 0); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-b: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_b: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1238s # g_signal_new ("single-arg-signal-b", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_BOOLEAN); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-y: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_y: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1238s # g_signal_new ("single-arg-signal-y", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_UCHAR); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-n: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_n: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1238s # g_signal_new ("single-arg-signal-n", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_INT); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-q: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_q: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1238s # g_signal_new ("single-arg-signal-q", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_UINT); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-i: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_i: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1238s # g_signal_new ("single-arg-signal-i", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_INT); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-u: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_u: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1238s # g_signal_new ("single-arg-signal-u", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_UINT); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-x: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_x: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1238s # g_signal_new ("single-arg-signal-x", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_INT64); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-t: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_t: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1238s # g_signal_new ("single-arg-signal-t", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_UINT64); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-d: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_d: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1238s # g_signal_new ("single-arg-signal-d", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_DOUBLE); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-s: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_s: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1238s # g_signal_new ("single-arg-signal-s", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_STRING); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-o: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_o: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1238s # g_signal_new ("single-arg-signal-o", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_STRING); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-g: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_g: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1238s # g_signal_new ("single-arg-signal-g", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_STRING); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-h: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_h: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1238s # g_signal_new ("single-arg-signal-h", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_VARIANT); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-ay: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_ay: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1238s # g_signal_new ("single-arg-signal-ay", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_STRING); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-as: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_as: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1238s # g_signal_new ("single-arg-signal-as", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_STRV); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-ao: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_ao: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1238s # g_signal_new ("single-arg-signal-ao", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_STRV); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-aay: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_aay: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1238s # g_signal_new ("single-arg-signal-aay", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_STRV); 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface::single-arg-signal-asv: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_asv: Argument. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1238s # g_signal_new ("single-arg-signal-asv", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1238s # G_TYPE_NONE, 1238s # 1, G_TYPE_VARIANT); 1238s # 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_no_arg_signal: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * 1238s # * Emits the "NoArgSignal" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_no_arg_signal ( 1238s # OrgProjectSignalingIface *object) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_b: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_b: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalB" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_b ( 1238s # OrgProjectSignalingIface *object, 1238s # gboolean arg_an_b) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_y: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_y: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalY" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_y ( 1238s # OrgProjectSignalingIface *object, 1238s # guchar arg_an_y) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_n: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_n: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalN" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_n ( 1238s # OrgProjectSignalingIface *object, 1238s # gint16 arg_an_n) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_q: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_q: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalQ" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_q ( 1238s # OrgProjectSignalingIface *object, 1238s # guint16 arg_an_q) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_i: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_i: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalI" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_i ( 1238s # OrgProjectSignalingIface *object, 1238s # gint arg_an_i) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_u: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_u: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalU" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_u ( 1238s # OrgProjectSignalingIface *object, 1238s # guint arg_an_u) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_x: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_x: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalX" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_x ( 1238s # OrgProjectSignalingIface *object, 1238s # gint64 arg_an_x) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_t: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_t: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalT" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_t ( 1238s # OrgProjectSignalingIface *object, 1238s # guint64 arg_an_t) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_d: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_d: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalD" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_d ( 1238s # OrgProjectSignalingIface *object, 1238s # gdouble arg_an_d) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_s: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_s: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalS" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_s ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *arg_an_s) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_o: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_o: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalO" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_o ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *arg_an_o) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_g: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_g: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalG" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_g ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *arg_an_g) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_h: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_h: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalH" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_h ( 1238s # OrgProjectSignalingIface *object, 1238s # GVariant *arg_an_h) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_ay: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalAY" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *arg_an_ay) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_as: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_as: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalAS" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_as ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *const *arg_an_as) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_ao: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalAO" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *const *arg_an_ao) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_aay: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalAAY" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *const *arg_an_aay) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * @arg_an_asv: Argument to pass with the signal. 1238s # * 1238s # * Emits the "SingleArgSignalASV" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1238s # OrgProjectSignalingIface *object, 1238s # GVariant *arg_an_asv) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 1238s # } 1238s # 1238s # /* ------------------------------------------------------------------------ */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceProxy: 1238s # * 1238s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceProxyClass: 1238s # * @parent_class: The parent class. 1238s # * 1238s # * Class structure for #OrgProjectSignalingIfaceProxy. 1238s # */ 1238s # 1238s # struct _OrgProjectSignalingIfaceProxyPrivate 1238s # { 1238s # GData *qdata; 1238s # }; 1238s # 1238s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1238s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1238s # 1238s # #else 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1238s # 1238s # #endif 1238s # static void 1238s # org_project_signaling_iface_proxy_finalize (GObject *object) 1238s # { 1238s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1238s # g_datalist_clear (&proxy->priv->qdata); 1238s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1238s # guint prop_id G_GNUC_UNUSED, 1238s # GValue *value G_GNUC_UNUSED, 1238s # GParamSpec *pspec G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1238s # guint prop_id G_GNUC_UNUSED, 1238s # const GValue *value G_GNUC_UNUSED, 1238s # GParamSpec *pspec G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1238s # const gchar *sender_name G_GNUC_UNUSED, 1238s # const gchar *signal_name, 1238s # GVariant *parameters) 1238s # { 1238s # _ExtendedGDBusSignalInfo *info; 1238s # GVariantIter iter; 1238s # GVariant *child; 1238s # GValue *paramv; 1238s # gsize num_params; 1238s # gsize n; 1238s # guint signal_id; 1238s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1238s # if (info == NULL) 1238s # return; 1238s # num_params = g_variant_n_children (parameters); 1238s # paramv = g_new0 (GValue, num_params + 1); 1238s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1238s # g_value_set_object (¶mv[0], proxy); 1238s # g_variant_iter_init (&iter, parameters); 1238s # n = 1; 1238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1238s # { 1238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1238s # if (arg_info->use_gvariant) 1238s # { 1238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1238s # g_value_set_variant (¶mv[n], child); 1238s # n++; 1238s # } 1238s # else 1238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1238s # g_variant_unref (child); 1238s # } 1238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1238s # g_signal_emitv (paramv, signal_id, 0, NULL); 1238s # for (n = 0; n < num_params + 1; n++) 1238s # g_value_unset (¶mv[n]); 1238s # g_free (paramv); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1238s # GVariant *changed_properties, 1238s # const gchar *const *invalidated_properties) 1238s # { 1238s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1238s # guint n; 1238s # const gchar *key; 1238s # GVariantIter *iter; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # g_variant_get (changed_properties, "a{sv}", &iter); 1238s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1238s # { 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1238s # g_datalist_remove_data (&proxy->priv->qdata, key); 1238s # if (info != NULL) 1238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1238s # } 1238s # g_variant_iter_free (iter); 1238s # for (n = 0; invalidated_properties[n] != NULL; n++) 1238s # { 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1238s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1238s # if (info != NULL) 1238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1238s # } 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1238s # { 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1238s # #else 1238s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1238s # #endif 1238s # 1238s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1238s # { 1238s # GObjectClass *gobject_class; 1238s # GDBusProxyClass *proxy_class; 1238s # 1238s # gobject_class = G_OBJECT_CLASS (klass); 1238s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1238s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1238s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1238s # 1238s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1238s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1238s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1238s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1238s # #endif 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new: 1238s # * @connection: A #GDBusConnection. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1238s # * @user_data: User data to pass to @callback. 1238s # * 1238s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1238s # * 1238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1238s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1238s # * 1238s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_proxy_new ( 1238s # GDBusConnection *connection, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GAsyncReadyCallback callback, 1238s # gpointer user_data) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_finish: 1238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_proxy_new_finish ( 1238s # GAsyncResult *res, 1238s # GError **error) 1238s # { 1238s # GObject *ret; 1238s # GObject *source_object; 1238s # source_object = g_async_result_get_source_object (res); 1238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1238s # g_object_unref (source_object); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_sync: 1238s # * @connection: A #GDBusConnection. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1238s # * 1238s # * The calling thread is blocked until a reply is received. 1238s # * 1238s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_proxy_new_sync ( 1238s # GDBusConnection *connection, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GError **error) 1238s # { 1238s # GInitable *ret; 1238s # 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); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_for_bus: 1238s # * @bus_type: A #GBusType. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: A bus name (well-known or unique). 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1238s # * @user_data: User data to pass to @callback. 1238s # * 1238s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1238s # * 1238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1238s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1238s # * 1238s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_proxy_new_for_bus ( 1238s # GBusType bus_type, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GAsyncReadyCallback callback, 1238s # gpointer user_data) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1238s # GAsyncResult *res, 1238s # GError **error) 1238s # { 1238s # GObject *ret; 1238s # GObject *source_object; 1238s # source_object = g_async_result_get_source_object (res); 1238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1238s # g_object_unref (source_object); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1238s # * @bus_type: A #GBusType. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: A bus name (well-known or unique). 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1238s # * 1238s # * The calling thread is blocked until a reply is received. 1238s # * 1238s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1238s # GBusType bus_type, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GError **error) 1238s # { 1238s # GInitable *ret; 1238s # 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); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # 1238s # /* ------------------------------------------------------------------------ */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceSkeleton: 1238s # * 1238s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceSkeletonClass: 1238s # * @parent_class: The parent class. 1238s # * 1238s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1238s # */ 1238s # 1238s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1238s # { 1238s # GValue *properties; 1238s # GList *changed_properties; 1238s # GSource *changed_properties_idle_source; 1238s # GMainContext *context; 1238s # GMutex lock; 1238s # }; 1238s # 1238s # static void 1238s # _org_project_signaling_iface_skeleton_handle_method_call ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name, 1238s # const gchar *method_name, 1238s # GVariant *parameters, 1238s # GDBusMethodInvocation *invocation, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1238s # _ExtendedGDBusMethodInfo *info; 1238s # GVariantIter iter; 1238s # GVariant *child; 1238s # GValue *paramv; 1238s # gsize num_params; 1238s # guint num_extra; 1238s # gsize n; 1238s # guint signal_id; 1238s # GValue return_value = G_VALUE_INIT; 1238s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1238s # g_assert (info != NULL); 1238s # num_params = g_variant_n_children (parameters); 1238s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1238s # n = 0; 1238s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1238s # g_value_set_object (¶mv[n++], skeleton); 1238s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1238s # g_value_set_object (¶mv[n++], invocation); 1238s # if (info->pass_fdlist) 1238s # { 1238s # #ifdef G_OS_UNIX 1238s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1238s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1238s # #else 1238s # g_assert_not_reached (); 1238s # #endif 1238s # } 1238s # g_variant_iter_init (&iter, parameters); 1238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1238s # { 1238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1238s # if (arg_info->use_gvariant) 1238s # { 1238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1238s # g_value_set_variant (¶mv[n], child); 1238s # n++; 1238s # } 1238s # else 1238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1238s # g_variant_unref (child); 1238s # } 1238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1238s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1238s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1238s # if (!g_value_get_boolean (&return_value)) 1238s # 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); 1238s # g_value_unset (&return_value); 1238s # for (n = 0; n < num_params + num_extra; n++) 1238s # g_value_unset (¶mv[n]); 1238s # g_free (paramv); 1238s # } 1238s # 1238s # static GVariant * 1238s # _org_project_signaling_iface_skeleton_handle_get_property ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name G_GNUC_UNUSED, 1238s # const gchar *property_name, 1238s # GError **error, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1238s # GValue value = G_VALUE_INIT; 1238s # GParamSpec *pspec; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # GVariant *ret; 1238s # ret = NULL; 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1238s # g_assert (info != NULL); 1238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1238s # if (pspec == NULL) 1238s # { 1238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1238s # } 1238s # else 1238s # { 1238s # g_value_init (&value, pspec->value_type); 1238s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1238s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1238s # g_value_unset (&value); 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static gboolean 1238s # _org_project_signaling_iface_skeleton_handle_set_property ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name G_GNUC_UNUSED, 1238s # const gchar *property_name, 1238s # GVariant *variant, 1238s # GError **error, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1238s # GValue value = G_VALUE_INIT; 1238s # GParamSpec *pspec; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # gboolean ret; 1238s # ret = FALSE; 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1238s # g_assert (info != NULL); 1238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1238s # if (pspec == NULL) 1238s # { 1238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1238s # } 1238s # else 1238s # { 1238s # if (info->use_gvariant) 1238s # g_value_set_variant (&value, variant); 1238s # else 1238s # g_dbus_gvariant_to_gvalue (variant, &value); 1238s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1238s # g_value_unset (&value); 1238s # ret = TRUE; 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1238s # { 1238s # _org_project_signaling_iface_skeleton_handle_method_call, 1238s # _org_project_signaling_iface_skeleton_handle_get_property, 1238s # _org_project_signaling_iface_skeleton_handle_set_property, 1238s # {NULL} 1238s # }; 1238s # 1238s # static GDBusInterfaceInfo * 1238s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1238s # { 1238s # return org_project_signaling_iface_interface_info (); 1238s # } 1238s # 1238s # static GDBusInterfaceVTable * 1238s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1238s # { 1238s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1238s # } 1238s # 1238s # static GVariant * 1238s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1238s # 1238s # GVariantBuilder builder; 1238s # guint n; 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1238s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1238s # #else 1238s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1238s # #endif 1238s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1238s # goto out; 1238s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1238s # { 1238s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1238s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1238s # { 1238s # GVariant *value; 1238s # 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); 1238s # if (value != NULL) 1238s # { 1238s # g_variant_take_ref (value); 1238s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1238s # g_variant_unref (value); 1238s # } 1238s # } 1238s # } 1238s # out: 1238s # return g_variant_builder_end (&builder); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_no_arg_signal ( 1238s # OrgProjectSignalingIface *object) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1238s # OrgProjectSignalingIface *object, 1238s # gboolean arg_an_b) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1238s # arg_an_b)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1238s # OrgProjectSignalingIface *object, 1238s # guchar arg_an_y) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1238s # arg_an_y)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1238s # OrgProjectSignalingIface *object, 1238s # gint16 arg_an_n) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1238s # arg_an_n)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1238s # OrgProjectSignalingIface *object, 1238s # guint16 arg_an_q) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1238s # arg_an_q)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1238s # OrgProjectSignalingIface *object, 1238s # gint arg_an_i) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1238s # arg_an_i)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1238s # OrgProjectSignalingIface *object, 1238s # guint arg_an_u) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1238s # arg_an_u)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1238s # OrgProjectSignalingIface *object, 1238s # gint64 arg_an_x) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1238s # arg_an_x)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1238s # OrgProjectSignalingIface *object, 1238s # guint64 arg_an_t) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1238s # arg_an_t)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1238s # OrgProjectSignalingIface *object, 1238s # gdouble arg_an_d) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1238s # arg_an_d)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *arg_an_s) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1238s # arg_an_s)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *arg_an_o) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1238s # arg_an_o)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *arg_an_g) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1238s # arg_an_g)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1238s # OrgProjectSignalingIface *object, 1238s # GVariant *arg_an_h) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1238s # arg_an_h)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *arg_an_ay) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1238s # arg_an_ay)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *const *arg_an_as) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1238s # arg_an_as)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *const *arg_an_ao) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1238s # arg_an_ao)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1238s # OrgProjectSignalingIface *object, 1238s # const gchar *const *arg_an_aay) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1238s # arg_an_aay)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1238s # OrgProjectSignalingIface *object, 1238s # GVariant *arg_an_asv) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1238s # arg_an_asv)); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1238s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1238s # 1238s # #else 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1238s # 1238s # #endif 1238s # static void 1238s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1238s # if (skeleton->priv->changed_properties_idle_source != NULL) 1238s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1238s # g_main_context_unref (skeleton->priv->context); 1238s # g_mutex_clear (&skeleton->priv->lock); 1238s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1238s # { 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1238s # #else 1238s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1238s # #endif 1238s # 1238s # g_mutex_init (&skeleton->priv->lock); 1238s # skeleton->priv->context = g_main_context_ref_thread_default (); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1238s # { 1238s # GObjectClass *gobject_class; 1238s # GDBusInterfaceSkeletonClass *skeleton_class; 1238s # 1238s # gobject_class = G_OBJECT_CLASS (klass); 1238s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1238s # 1238s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1238s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1238s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1238s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1238s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1238s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1238s # #endif 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1238s # { 1238s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 1238s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1238s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1238s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1238s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1238s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1238s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1238s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1238s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1238s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1238s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1238s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1238s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1238s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1238s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1238s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1238s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1238s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1238s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_skeleton_new: 1238s # * 1238s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_skeleton_new (void) 1238s # { 1238s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1238s # } 1238s # Error: 1238s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 1238s # gdbus-codegen: /usr/bin/gdbus-codegen 1238s # tmpdir: /tmp/tmptkacn4yi 1238s # /tmp/tmptkacn4yi/tmpj1f3xdqy.xml: 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptkacn4yi/tmpj1f3xdqy.xml', '--output', '-', '--body'] 1238s # Return code: 0 1238s # Output: 1238s # /* 1238s # * This file is generated by gdbus-codegen, do not modify it. 1238s # * 1238s # * The license of this code is the same as for the D-Bus interface description 1238s # * it was derived from. Note that it links to GLib, so must comply with the 1238s # * LGPL linking clauses. 1238s # */ 1238s # 1238s # #ifdef HAVE_CONFIG_H 1238s # # include "config.h" 1238s # #endif 1238s # 1238s # #include 1238s # #ifdef G_OS_UNIX 1238s # # include 1238s # #endif 1238s # 1238s # #ifdef G_ENABLE_DEBUG 1238s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1238s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1238s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1238s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1238s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1238s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1238s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1238s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1238s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1238s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1238s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1238s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1238s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1238s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1238s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1238s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1238s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1238s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1238s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1238s # #else /* !G_ENABLE_DEBUG */ 1238s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1238s # * Do not access GValues directly in your code. Instead, use the 1238s # * g_value_get_*() functions 1238s # */ 1238s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1238s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1238s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1238s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1238s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1238s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1238s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1238s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1238s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1238s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1238s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1238s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1238s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1238s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1238s # #endif /* !G_ENABLE_DEBUG */ 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusArgInfo parent_struct; 1238s # gboolean use_gvariant; 1238s # } _ExtendedGDBusArgInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusMethodInfo parent_struct; 1238s # const gchar *signal_name; 1238s # gboolean pass_fdlist; 1238s # } _ExtendedGDBusMethodInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusSignalInfo parent_struct; 1238s # const gchar *signal_name; 1238s # } _ExtendedGDBusSignalInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusPropertyInfo parent_struct; 1238s # const gchar *hyphen_name; 1238s # guint use_gvariant : 1; 1238s # guint emits_changed_signal : 1; 1238s # } _ExtendedGDBusPropertyInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusInterfaceInfo parent_struct; 1238s # const gchar *hyphen_name; 1238s # } _ExtendedGDBusInterfaceInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # const _ExtendedGDBusPropertyInfo *info; 1238s # guint prop_id; 1238s # GValue orig_value; /* the value before the change */ 1238s # } ChangedProperty; 1238s # 1238s # static void 1238s # _changed_property_free (ChangedProperty *data) 1238s # { 1238s # g_value_unset (&data->orig_value); 1238s # g_free (data); 1238s # } 1238s # 1238s # static gboolean 1238s # _g_strv_equal0 (gchar **a, gchar **b) 1238s # { 1238s # gboolean ret = FALSE; 1238s # guint n; 1238s # if (a == NULL && b == NULL) 1238s # { 1238s # ret = TRUE; 1238s # goto out; 1238s # } 1238s # if (a == NULL || b == NULL) 1238s # goto out; 1238s # if (g_strv_length (a) != g_strv_length (b)) 1238s # goto out; 1238s # for (n = 0; a[n] != NULL; n++) 1238s # if (g_strcmp0 (a[n], b[n]) != 0) 1238s # goto out; 1238s # ret = TRUE; 1238s # out: 1238s # return ret; 1238s # } 1238s # 1238s # static gboolean 1238s # _g_variant_equal0 (GVariant *a, GVariant *b) 1238s # { 1238s # gboolean ret = FALSE; 1238s # if (a == NULL && b == NULL) 1238s # { 1238s # ret = TRUE; 1238s # goto out; 1238s # } 1238s # if (a == NULL || b == NULL) 1238s # goto out; 1238s # ret = g_variant_equal (a, b); 1238s # out: 1238s # return ret; 1238s # } 1238s # 1238s # G_GNUC_UNUSED static gboolean 1238s # _g_value_equal (const GValue *a, const GValue *b) 1238s # { 1238s # gboolean ret = FALSE; 1238s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1238s # switch (G_VALUE_TYPE (a)) 1238s # { 1238s # case G_TYPE_BOOLEAN: 1238s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1238s # break; 1238s # case G_TYPE_UCHAR: 1238s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1238s # break; 1238s # case G_TYPE_INT: 1238s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1238s # break; 1238s # case G_TYPE_UINT: 1238s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1238s # break; 1238s # case G_TYPE_INT64: 1238s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1238s # break; 1238s # case G_TYPE_UINT64: 1238s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1238s # break; 1238s # case G_TYPE_DOUBLE: 1238s # { 1238s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1238s # gdouble da = g_value_get_double (a); 1238s # gdouble db = g_value_get_double (b); 1238s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1238s # } 1238s # break; 1238s # case G_TYPE_STRING: 1238s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1238s # break; 1238s # case G_TYPE_VARIANT: 1238s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1238s # break; 1238s # default: 1238s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1238s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1238s # else 1238s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1238s # break; 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # /* ------------------------------------------------------------------------ 1238s # * Code for interface org.project.UsefulInterface 1238s # * ------------------------------------------------------------------------ 1238s # */ 1238s # 1238s # /** 1238s # * SECTION:OrgProjectUsefulInterface 1238s # * @title: OrgProjectUsefulInterface 1238s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1238s # * 1238s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1238s # */ 1238s # 1238s # enum 1238s # { 1238s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 1238s # }; 1238s # 1238s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 1238s # 1238s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SimpleSignal", 1238s # NULL, 1238s # NULL 1238s # }, 1238s # "simple-signal" 1238s # }; 1238s # 1238s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 1238s # { 1238s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "org.project.UsefulInterface", 1238s # NULL, 1238s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 1238s # NULL, 1238s # NULL 1238s # }, 1238s # "org-project-useful-interface", 1238s # }; 1238s # 1238s # 1238s # /** 1238s # * org_project_useful_interface_interface_info: 1238s # * 1238s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1238s # * 1238s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1238s # */ 1238s # GDBusInterfaceInfo * 1238s # org_project_useful_interface_interface_info (void) 1238s # { 1238s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1238s # } 1238s # 1238s # /** 1238s # * org_project_useful_interface_override_properties: 1238s # * @klass: The class structure for a #GObject derived class. 1238s # * @property_id_begin: The property id to assign to the first overridden property. 1238s # * 1238s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1238s # * The properties are overridden in the order they are defined. 1238s # * 1238s # * Returns: The last property id. 1238s # */ 1238s # guint 1238s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1238s # { 1238s # return property_id_begin - 1; 1238s # } 1238s # 1238s # 1238s # inline static void 1238s # org_project_useful_interface_signal_marshal_simple_signal ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__VOID (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # 1238s # /** 1238s # * OrgProjectUsefulInterface: 1238s # * 1238s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectUsefulInterfaceIface: 1238s # * @parent_iface: The parent interface. 1238s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 1238s # * 1238s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1238s # */ 1238s # 1238s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1238s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1238s # 1238s # static void 1238s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1238s # { 1238s # /* GObject signals for received D-Bus signals: */ 1238s # /** 1238s # * OrgProjectUsefulInterface::simple-signal: 1238s # * @object: A #OrgProjectUsefulInterface. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 1238s # g_signal_new ("simple-signal", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 1238s # NULL, 1238s # NULL, 1238s # org_project_useful_interface_signal_marshal_simple_signal, 1238s # G_TYPE_NONE, 1238s # 0); 1238s # 1238s # } 1238s # 1238s # /** 1238s # * org_project_useful_interface_emit_simple_signal: 1238s # * @object: A #OrgProjectUsefulInterface. 1238s # * 1238s # * Emits the "SimpleSignal" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_useful_interface_emit_simple_signal ( 1238s # OrgProjectUsefulInterface *object) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 1238s # } 1238s # 1238s # /* ------------------------------------------------------------------------ */ 1238s # 1238s # /** 1238s # * OrgProjectUsefulInterfaceProxy: 1238s # * 1238s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectUsefulInterfaceProxyClass: 1238s # * @parent_class: The parent class. 1238s # * 1238s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1238s # */ 1238s # 1238s # struct _OrgProjectUsefulInterfaceProxyPrivate 1238s # { 1238s # GData *qdata; 1238s # }; 1238s # 1238s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1238s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1238s # 1238s # #else 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1238s # 1238s # #endif 1238s # static void 1238s # org_project_useful_interface_proxy_finalize (GObject *object) 1238s # { 1238s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1238s # g_datalist_clear (&proxy->priv->qdata); 1238s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1238s # } 1238s # 1238s # static void 1238s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1238s # guint prop_id G_GNUC_UNUSED, 1238s # GValue *value G_GNUC_UNUSED, 1238s # GParamSpec *pspec G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1238s # guint prop_id G_GNUC_UNUSED, 1238s # const GValue *value G_GNUC_UNUSED, 1238s # GParamSpec *pspec G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1238s # const gchar *sender_name G_GNUC_UNUSED, 1238s # const gchar *signal_name, 1238s # GVariant *parameters) 1238s # { 1238s # _ExtendedGDBusSignalInfo *info; 1238s # GVariantIter iter; 1238s # GVariant *child; 1238s # GValue *paramv; 1238s # gsize num_params; 1238s # gsize n; 1238s # guint signal_id; 1238s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1238s # if (info == NULL) 1238s # return; 1238s # num_params = g_variant_n_children (parameters); 1238s # paramv = g_new0 (GValue, num_params + 1); 1238s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1238s # g_value_set_object (¶mv[0], proxy); 1238s # g_variant_iter_init (&iter, parameters); 1238s # n = 1; 1238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1238s # { 1238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1238s # if (arg_info->use_gvariant) 1238s # { 1238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1238s # g_value_set_variant (¶mv[n], child); 1238s # n++; 1238s # } 1238s # else 1238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1238s # g_variant_unref (child); 1238s # } 1238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1238s # g_signal_emitv (paramv, signal_id, 0, NULL); 1238s # for (n = 0; n < num_params + 1; n++) 1238s # g_value_unset (¶mv[n]); 1238s # g_free (paramv); 1238s # } 1238s # 1238s # static void 1238s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1238s # GVariant *changed_properties, 1238s # const gchar *const *invalidated_properties) 1238s # { 1238s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1238s # guint n; 1238s # const gchar *key; 1238s # GVariantIter *iter; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # g_variant_get (changed_properties, "a{sv}", &iter); 1238s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1238s # { 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1238s # g_datalist_remove_data (&proxy->priv->qdata, key); 1238s # if (info != NULL) 1238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1238s # } 1238s # g_variant_iter_free (iter); 1238s # for (n = 0; invalidated_properties[n] != NULL; n++) 1238s # { 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1238s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1238s # if (info != NULL) 1238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1238s # } 1238s # } 1238s # 1238s # static void 1238s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1238s # { 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1238s # #else 1238s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1238s # #endif 1238s # 1238s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1238s # } 1238s # 1238s # static void 1238s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1238s # { 1238s # GObjectClass *gobject_class; 1238s # GDBusProxyClass *proxy_class; 1238s # 1238s # gobject_class = G_OBJECT_CLASS (klass); 1238s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1238s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1238s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1238s # 1238s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1238s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1238s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1238s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1238s # #endif 1238s # } 1238s # 1238s # static void 1238s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # /** 1238s # * org_project_useful_interface_proxy_new: 1238s # * @connection: A #GDBusConnection. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1238s # * @user_data: User data to pass to @callback. 1238s # * 1238s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1238s # * 1238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1238s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1238s # * 1238s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1238s # */ 1238s # void 1238s # org_project_useful_interface_proxy_new ( 1238s # GDBusConnection *connection, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GAsyncReadyCallback callback, 1238s # gpointer user_data) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /** 1238s # * org_project_useful_interface_proxy_new_finish: 1238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectUsefulInterface * 1238s # org_project_useful_interface_proxy_new_finish ( 1238s # GAsyncResult *res, 1238s # GError **error) 1238s # { 1238s # GObject *ret; 1238s # GObject *source_object; 1238s # source_object = g_async_result_get_source_object (res); 1238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1238s # g_object_unref (source_object); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # /** 1238s # * org_project_useful_interface_proxy_new_sync: 1238s # * @connection: A #GDBusConnection. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1238s # * 1238s # * The calling thread is blocked until a reply is received. 1238s # * 1238s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectUsefulInterface * 1238s # org_project_useful_interface_proxy_new_sync ( 1238s # GDBusConnection *connection, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GError **error) 1238s # { 1238s # GInitable *ret; 1238s # 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); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # 1238s # /** 1238s # * org_project_useful_interface_proxy_new_for_bus: 1238s # * @bus_type: A #GBusType. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: A bus name (well-known or unique). 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1238s # * @user_data: User data to pass to @callback. 1238s # * 1238s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1238s # * 1238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1238s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1238s # * 1238s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1238s # */ 1238s # void 1238s # org_project_useful_interface_proxy_new_for_bus ( 1238s # GBusType bus_type, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GAsyncReadyCallback callback, 1238s # gpointer user_data) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /** 1238s # * org_project_useful_interface_proxy_new_for_bus_finish: 1238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectUsefulInterface * 1238s # org_project_useful_interface_proxy_new_for_bus_finish ( 1238s # GAsyncResult *res, 1238s # GError **error) 1238s # { 1238s # GObject *ret; 1238s # GObject *source_object; 1238s # source_object = g_async_result_get_source_object (res); 1238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1238s # g_object_unref (source_object); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # /** 1238s # * org_project_useful_interface_proxy_new_for_bus_sync: 1238s # * @bus_type: A #GBusType. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: A bus name (well-known or unique). 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1238s # * 1238s # * The calling thread is blocked until a reply is received. 1238s # * 1238s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectUsefulInterface * 1238s # org_project_useful_interface_proxy_new_for_bus_sync ( 1238s # GBusType bus_type, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GError **error) 1238s # { 1238s # GInitable *ret; 1238s # 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); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # 1238s # /* ------------------------------------------------------------------------ */ 1238s # 1238s # /** 1238s # * OrgProjectUsefulInterfaceSkeleton: 1238s # * 1238s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectUsefulInterfaceSkeletonClass: 1238s # * @parent_class: The parent class. 1238s # * 1238s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1238s # */ 1238s # 1238s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1238s # { 1238s # GValue *properties; 1238s # GList *changed_properties; 1238s # GSource *changed_properties_idle_source; 1238s # GMainContext *context; 1238s # GMutex lock; 1238s # }; 1238s # 1238s # static void 1238s # _org_project_useful_interface_skeleton_handle_method_call ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name, 1238s # const gchar *method_name, 1238s # GVariant *parameters, 1238s # GDBusMethodInvocation *invocation, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1238s # _ExtendedGDBusMethodInfo *info; 1238s # GVariantIter iter; 1238s # GVariant *child; 1238s # GValue *paramv; 1238s # gsize num_params; 1238s # guint num_extra; 1238s # gsize n; 1238s # guint signal_id; 1238s # GValue return_value = G_VALUE_INIT; 1238s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1238s # g_assert (info != NULL); 1238s # num_params = g_variant_n_children (parameters); 1238s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1238s # n = 0; 1238s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1238s # g_value_set_object (¶mv[n++], skeleton); 1238s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1238s # g_value_set_object (¶mv[n++], invocation); 1238s # if (info->pass_fdlist) 1238s # { 1238s # #ifdef G_OS_UNIX 1238s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1238s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1238s # #else 1238s # g_assert_not_reached (); 1238s # #endif 1238s # } 1238s # g_variant_iter_init (&iter, parameters); 1238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1238s # { 1238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1238s # if (arg_info->use_gvariant) 1238s # { 1238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1238s # g_value_set_variant (¶mv[n], child); 1238s # n++; 1238s # } 1238s # else 1238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1238s # g_variant_unref (child); 1238s # } 1238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1238s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1238s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1238s # if (!g_value_get_boolean (&return_value)) 1238s # 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); 1238s # g_value_unset (&return_value); 1238s # for (n = 0; n < num_params + num_extra; n++) 1238s # g_value_unset (¶mv[n]); 1238s # g_free (paramv); 1238s # } 1238s # 1238s # static GVariant * 1238s # _org_project_useful_interface_skeleton_handle_get_property ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name G_GNUC_UNUSED, 1238s # const gchar *property_name, 1238s # GError **error, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1238s # GValue value = G_VALUE_INIT; 1238s # GParamSpec *pspec; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # GVariant *ret; 1238s # ret = NULL; 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1238s # g_assert (info != NULL); 1238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1238s # if (pspec == NULL) 1238s # { 1238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1238s # } 1238s # else 1238s # { 1238s # g_value_init (&value, pspec->value_type); 1238s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1238s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1238s # g_value_unset (&value); 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static gboolean 1238s # _org_project_useful_interface_skeleton_handle_set_property ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name G_GNUC_UNUSED, 1238s # const gchar *property_name, 1238s # GVariant *variant, 1238s # GError **error, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1238s # GValue value = G_VALUE_INIT; 1238s # GParamSpec *pspec; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # gboolean ret; 1238s # ret = FALSE; 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1238s # g_assert (info != NULL); 1238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1238s # if (pspec == NULL) 1238s # { 1238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1238s # } 1238s # else 1238s # { 1238s # if (info->use_gvariant) 1238s # g_value_set_variant (&value, variant); 1238s # else 1238s # g_dbus_gvariant_to_gvalue (variant, &value); 1238s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1238s # g_value_unset (&value); 1238s # ret = TRUE; 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1238s # { 1238s # _org_project_useful_interface_skeleton_handle_method_call, 1238s # _org_project_useful_interface_skeleton_handle_get_property, 1238s # _org_project_useful_interface_skeleton_handle_set_property, 1238s # {NULL} 1238s # }; 1238s # 1238s # static GDBusInterfaceInfo * 1238s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1238s # { 1238s # return org_project_useful_interface_interface_info (); 1238s # } 1238s # 1238s # static GDBusInterfaceVTable * 1238s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1238s # { 1238s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1238s # } 1238s # 1238s # static GVariant * 1238s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1238s # { 1238s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1238s # 1238s # GVariantBuilder builder; 1238s # guint n; 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1238s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1238s # #else 1238s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1238s # #endif 1238s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1238s # goto out; 1238s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1238s # { 1238s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1238s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1238s # { 1238s # GVariant *value; 1238s # 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); 1238s # if (value != NULL) 1238s # { 1238s # g_variant_take_ref (value); 1238s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1238s # g_variant_unref (value); 1238s # } 1238s # } 1238s # } 1238s # out: 1238s # return g_variant_builder_end (&builder); 1238s # } 1238s # 1238s # static void 1238s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # _org_project_useful_interface_on_signal_simple_signal ( 1238s # OrgProjectUsefulInterface *object) 1238s # { 1238s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1238s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1238s # 1238s # #else 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1238s # 1238s # #endif 1238s # static void 1238s # org_project_useful_interface_skeleton_finalize (GObject *object) 1238s # { 1238s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1238s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1238s # if (skeleton->priv->changed_properties_idle_source != NULL) 1238s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1238s # g_main_context_unref (skeleton->priv->context); 1238s # g_mutex_clear (&skeleton->priv->lock); 1238s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1238s # } 1238s # 1238s # static void 1238s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1238s # { 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1238s # #else 1238s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1238s # #endif 1238s # 1238s # g_mutex_init (&skeleton->priv->lock); 1238s # skeleton->priv->context = g_main_context_ref_thread_default (); 1238s # } 1238s # 1238s # static void 1238s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1238s # { 1238s # GObjectClass *gobject_class; 1238s # GDBusInterfaceSkeletonClass *skeleton_class; 1238s # 1238s # gobject_class = G_OBJECT_CLASS (klass); 1238s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1238s # 1238s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1238s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1238s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1238s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1238s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1238s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1238s # #endif 1238s # } 1238s # 1238s # static void 1238s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 1238s # { 1238s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 1238s # } 1238s # 1238s # /** 1238s # * org_project_useful_interface_skeleton_new: 1238s # * 1238s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1238s # */ 1238s # OrgProjectUsefulInterface * 1238s # org_project_useful_interface_skeleton_new (void) 1238s # { 1238s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1238s # } 1238s # 1238s # /* ------------------------------------------------------------------------ 1238s # * Code for interface org.project.OtherIface 1238s # * ------------------------------------------------------------------------ 1238s # */ 1238s # 1238s # /** 1238s # * SECTION:OrgProjectOtherIface 1238s # * @title: OrgProjectOtherIface 1238s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 1238s # * 1238s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 1238s # */ 1238s # 1238s # enum 1238s # { 1238s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 1238s # }; 1238s # 1238s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 1238s # 1238s # /* ---- Introspection data for org.project.OtherIface ---- */ 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SimpleSignal", 1238s # NULL, 1238s # NULL 1238s # }, 1238s # "simple-signal" 1238s # }; 1238s # 1238s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 1238s # { 1238s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "org.project.OtherIface", 1238s # NULL, 1238s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 1238s # NULL, 1238s # NULL 1238s # }, 1238s # "org-project-other-iface", 1238s # }; 1238s # 1238s # 1238s # /** 1238s # * org_project_other_iface_interface_info: 1238s # * 1238s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 1238s # * 1238s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1238s # */ 1238s # GDBusInterfaceInfo * 1238s # org_project_other_iface_interface_info (void) 1238s # { 1238s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_iface_override_properties: 1238s # * @klass: The class structure for a #GObject derived class. 1238s # * @property_id_begin: The property id to assign to the first overridden property. 1238s # * 1238s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 1238s # * The properties are overridden in the order they are defined. 1238s # * 1238s # * Returns: The last property id. 1238s # */ 1238s # guint 1238s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1238s # { 1238s # return property_id_begin - 1; 1238s # } 1238s # 1238s # 1238s # inline static void 1238s # org_project_other_iface_signal_marshal_simple_signal ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__VOID (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # 1238s # /** 1238s # * OrgProjectOtherIface: 1238s # * 1238s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectOtherIfaceIface: 1238s # * @parent_iface: The parent interface. 1238s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 1238s # * 1238s # * Virtual table for the D-Bus interface org.project.OtherIface. 1238s # */ 1238s # 1238s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 1238s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 1238s # 1238s # static void 1238s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 1238s # { 1238s # /* GObject signals for received D-Bus signals: */ 1238s # /** 1238s # * OrgProjectOtherIface::simple-signal: 1238s # * @object: A #OrgProjectOtherIface. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 1238s # g_signal_new ("simple-signal", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 1238s # NULL, 1238s # NULL, 1238s # org_project_other_iface_signal_marshal_simple_signal, 1238s # G_TYPE_NONE, 1238s # 0); 1238s # 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_iface_emit_simple_signal: 1238s # * @object: A #OrgProjectOtherIface. 1238s # * 1238s # * Emits the "SimpleSignal" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_other_iface_emit_simple_signal ( 1238s # OrgProjectOtherIface *object) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 1238s # } 1238s # 1238s # /* ------------------------------------------------------------------------ */ 1238s # 1238s # /** 1238s # * OrgProjectOtherIfaceProxy: 1238s # * 1238s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectOtherIfaceProxyClass: 1238s # * @parent_class: The parent class. 1238s # * 1238s # * Class structure for #OrgProjectOtherIfaceProxy. 1238s # */ 1238s # 1238s # struct _OrgProjectOtherIfaceProxyPrivate 1238s # { 1238s # GData *qdata; 1238s # }; 1238s # 1238s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1238s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1238s # 1238s # #else 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1238s # 1238s # #endif 1238s # static void 1238s # org_project_other_iface_proxy_finalize (GObject *object) 1238s # { 1238s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 1238s # g_datalist_clear (&proxy->priv->qdata); 1238s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 1238s # } 1238s # 1238s # static void 1238s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1238s # guint prop_id G_GNUC_UNUSED, 1238s # GValue *value G_GNUC_UNUSED, 1238s # GParamSpec *pspec G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1238s # guint prop_id G_GNUC_UNUSED, 1238s # const GValue *value G_GNUC_UNUSED, 1238s # GParamSpec *pspec G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 1238s # const gchar *sender_name G_GNUC_UNUSED, 1238s # const gchar *signal_name, 1238s # GVariant *parameters) 1238s # { 1238s # _ExtendedGDBusSignalInfo *info; 1238s # GVariantIter iter; 1238s # GVariant *child; 1238s # GValue *paramv; 1238s # gsize num_params; 1238s # gsize n; 1238s # guint signal_id; 1238s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 1238s # if (info == NULL) 1238s # return; 1238s # num_params = g_variant_n_children (parameters); 1238s # paramv = g_new0 (GValue, num_params + 1); 1238s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 1238s # g_value_set_object (¶mv[0], proxy); 1238s # g_variant_iter_init (&iter, parameters); 1238s # n = 1; 1238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1238s # { 1238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1238s # if (arg_info->use_gvariant) 1238s # { 1238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1238s # g_value_set_variant (¶mv[n], child); 1238s # n++; 1238s # } 1238s # else 1238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1238s # g_variant_unref (child); 1238s # } 1238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1238s # g_signal_emitv (paramv, signal_id, 0, NULL); 1238s # for (n = 0; n < num_params + 1; n++) 1238s # g_value_unset (¶mv[n]); 1238s # g_free (paramv); 1238s # } 1238s # 1238s # static void 1238s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1238s # GVariant *changed_properties, 1238s # const gchar *const *invalidated_properties) 1238s # { 1238s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 1238s # guint n; 1238s # const gchar *key; 1238s # GVariantIter *iter; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # g_variant_get (changed_properties, "a{sv}", &iter); 1238s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1238s # { 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 1238s # g_datalist_remove_data (&proxy->priv->qdata, key); 1238s # if (info != NULL) 1238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1238s # } 1238s # g_variant_iter_free (iter); 1238s # for (n = 0; invalidated_properties[n] != NULL; n++) 1238s # { 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 1238s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1238s # if (info != NULL) 1238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1238s # } 1238s # } 1238s # 1238s # static void 1238s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 1238s # { 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 1238s # #else 1238s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 1238s # #endif 1238s # 1238s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 1238s # } 1238s # 1238s # static void 1238s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 1238s # { 1238s # GObjectClass *gobject_class; 1238s # GDBusProxyClass *proxy_class; 1238s # 1238s # gobject_class = G_OBJECT_CLASS (klass); 1238s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 1238s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 1238s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 1238s # 1238s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1238s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 1238s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1238s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 1238s # #endif 1238s # } 1238s # 1238s # static void 1238s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_iface_proxy_new: 1238s # * @connection: A #GDBusConnection. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1238s # * @user_data: User data to pass to @callback. 1238s # * 1238s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 1238s # * 1238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1238s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 1238s # * 1238s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1238s # */ 1238s # void 1238s # org_project_other_iface_proxy_new ( 1238s # GDBusConnection *connection, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GAsyncReadyCallback callback, 1238s # gpointer user_data) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_iface_proxy_new_finish: 1238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Finishes an operation started with org_project_other_iface_proxy_new(). 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectOtherIface * 1238s # org_project_other_iface_proxy_new_finish ( 1238s # GAsyncResult *res, 1238s # GError **error) 1238s # { 1238s # GObject *ret; 1238s # GObject *source_object; 1238s # source_object = g_async_result_get_source_object (res); 1238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1238s # g_object_unref (source_object); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_OTHER_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_iface_proxy_new_sync: 1238s # * @connection: A #GDBusConnection. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 1238s # * 1238s # * The calling thread is blocked until a reply is received. 1238s # * 1238s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectOtherIface * 1238s # org_project_other_iface_proxy_new_sync ( 1238s # GDBusConnection *connection, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GError **error) 1238s # { 1238s # GInitable *ret; 1238s # 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); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_OTHER_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # 1238s # /** 1238s # * org_project_other_iface_proxy_new_for_bus: 1238s # * @bus_type: A #GBusType. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: A bus name (well-known or unique). 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1238s # * @user_data: User data to pass to @callback. 1238s # * 1238s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1238s # * 1238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1238s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 1238s # * 1238s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1238s # */ 1238s # void 1238s # org_project_other_iface_proxy_new_for_bus ( 1238s # GBusType bus_type, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GAsyncReadyCallback callback, 1238s # gpointer user_data) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_iface_proxy_new_for_bus_finish: 1238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectOtherIface * 1238s # org_project_other_iface_proxy_new_for_bus_finish ( 1238s # GAsyncResult *res, 1238s # GError **error) 1238s # { 1238s # GObject *ret; 1238s # GObject *source_object; 1238s # source_object = g_async_result_get_source_object (res); 1238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1238s # g_object_unref (source_object); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_OTHER_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_iface_proxy_new_for_bus_sync: 1238s # * @bus_type: A #GBusType. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: A bus name (well-known or unique). 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1238s # * 1238s # * The calling thread is blocked until a reply is received. 1238s # * 1238s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectOtherIface * 1238s # org_project_other_iface_proxy_new_for_bus_sync ( 1238s # GBusType bus_type, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GError **error) 1238s # { 1238s # GInitable *ret; 1238s # 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); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_OTHER_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # 1238s # /* ------------------------------------------------------------------------ */ 1238s # 1238s # /** 1238s # * OrgProjectOtherIfaceSkeleton: 1238s # * 1238s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectOtherIfaceSkeletonClass: 1238s # * @parent_class: The parent class. 1238s # * 1238s # * Class structure for #OrgProjectOtherIfaceSkeleton. 1238s # */ 1238s # 1238s # struct _OrgProjectOtherIfaceSkeletonPrivate 1238s # { 1238s # GValue *properties; 1238s # GList *changed_properties; 1238s # GSource *changed_properties_idle_source; 1238s # GMainContext *context; 1238s # GMutex lock; 1238s # }; 1238s # 1238s # static void 1238s # _org_project_other_iface_skeleton_handle_method_call ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name, 1238s # const gchar *method_name, 1238s # GVariant *parameters, 1238s # GDBusMethodInvocation *invocation, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1238s # _ExtendedGDBusMethodInfo *info; 1238s # GVariantIter iter; 1238s # GVariant *child; 1238s # GValue *paramv; 1238s # gsize num_params; 1238s # guint num_extra; 1238s # gsize n; 1238s # guint signal_id; 1238s # GValue return_value = G_VALUE_INIT; 1238s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1238s # g_assert (info != NULL); 1238s # num_params = g_variant_n_children (parameters); 1238s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1238s # n = 0; 1238s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 1238s # g_value_set_object (¶mv[n++], skeleton); 1238s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1238s # g_value_set_object (¶mv[n++], invocation); 1238s # if (info->pass_fdlist) 1238s # { 1238s # #ifdef G_OS_UNIX 1238s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1238s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1238s # #else 1238s # g_assert_not_reached (); 1238s # #endif 1238s # } 1238s # g_variant_iter_init (&iter, parameters); 1238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1238s # { 1238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1238s # if (arg_info->use_gvariant) 1238s # { 1238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1238s # g_value_set_variant (¶mv[n], child); 1238s # n++; 1238s # } 1238s # else 1238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1238s # g_variant_unref (child); 1238s # } 1238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1238s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1238s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1238s # if (!g_value_get_boolean (&return_value)) 1238s # 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); 1238s # g_value_unset (&return_value); 1238s # for (n = 0; n < num_params + num_extra; n++) 1238s # g_value_unset (¶mv[n]); 1238s # g_free (paramv); 1238s # } 1238s # 1238s # static GVariant * 1238s # _org_project_other_iface_skeleton_handle_get_property ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name G_GNUC_UNUSED, 1238s # const gchar *property_name, 1238s # GError **error, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1238s # GValue value = G_VALUE_INIT; 1238s # GParamSpec *pspec; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # GVariant *ret; 1238s # ret = NULL; 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1238s # g_assert (info != NULL); 1238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1238s # if (pspec == NULL) 1238s # { 1238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1238s # } 1238s # else 1238s # { 1238s # g_value_init (&value, pspec->value_type); 1238s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1238s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1238s # g_value_unset (&value); 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static gboolean 1238s # _org_project_other_iface_skeleton_handle_set_property ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name G_GNUC_UNUSED, 1238s # const gchar *property_name, 1238s # GVariant *variant, 1238s # GError **error, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1238s # GValue value = G_VALUE_INIT; 1238s # GParamSpec *pspec; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # gboolean ret; 1238s # ret = FALSE; 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1238s # g_assert (info != NULL); 1238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1238s # if (pspec == NULL) 1238s # { 1238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1238s # } 1238s # else 1238s # { 1238s # if (info->use_gvariant) 1238s # g_value_set_variant (&value, variant); 1238s # else 1238s # g_dbus_gvariant_to_gvalue (variant, &value); 1238s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1238s # g_value_unset (&value); 1238s # ret = TRUE; 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 1238s # { 1238s # _org_project_other_iface_skeleton_handle_method_call, 1238s # _org_project_other_iface_skeleton_handle_get_property, 1238s # _org_project_other_iface_skeleton_handle_set_property, 1238s # {NULL} 1238s # }; 1238s # 1238s # static GDBusInterfaceInfo * 1238s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1238s # { 1238s # return org_project_other_iface_interface_info (); 1238s # } 1238s # 1238s # static GDBusInterfaceVTable * 1238s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1238s # { 1238s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 1238s # } 1238s # 1238s # static GVariant * 1238s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1238s # { 1238s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 1238s # 1238s # GVariantBuilder builder; 1238s # guint n; 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1238s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1238s # #else 1238s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1238s # #endif 1238s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 1238s # goto out; 1238s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1238s # { 1238s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 1238s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1238s # { 1238s # GVariant *value; 1238s # 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); 1238s # if (value != NULL) 1238s # { 1238s # g_variant_take_ref (value); 1238s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1238s # g_variant_unref (value); 1238s # } 1238s # } 1238s # } 1238s # out: 1238s # return g_variant_builder_end (&builder); 1238s # } 1238s # 1238s # static void 1238s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # _org_project_other_iface_on_signal_simple_signal ( 1238s # OrgProjectOtherIface *object) 1238s # { 1238s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1238s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1238s # 1238s # #else 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1238s # 1238s # #endif 1238s # static void 1238s # org_project_other_iface_skeleton_finalize (GObject *object) 1238s # { 1238s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1238s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1238s # if (skeleton->priv->changed_properties_idle_source != NULL) 1238s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1238s # g_main_context_unref (skeleton->priv->context); 1238s # g_mutex_clear (&skeleton->priv->lock); 1238s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 1238s # } 1238s # 1238s # static void 1238s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 1238s # { 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 1238s # #else 1238s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 1238s # #endif 1238s # 1238s # g_mutex_init (&skeleton->priv->lock); 1238s # skeleton->priv->context = g_main_context_ref_thread_default (); 1238s # } 1238s # 1238s # static void 1238s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 1238s # { 1238s # GObjectClass *gobject_class; 1238s # GDBusInterfaceSkeletonClass *skeleton_class; 1238s # 1238s # gobject_class = G_OBJECT_CLASS (klass); 1238s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 1238s # 1238s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1238s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 1238s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 1238s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 1238s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1238s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 1238s # #endif 1238s # } 1238s # 1238s # static void 1238s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 1238s # { 1238s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_iface_skeleton_new: 1238s # * 1238s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 1238s # */ 1238s # OrgProjectOtherIface * 1238s # org_project_other_iface_skeleton_new (void) 1238s # { 1238s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 1238s # } 1238s # Error: 1238s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 1238s # gdbus-codegen: /usr/bin/gdbus-codegen 1238s # tmpdir: /tmp/tmpxbztthdl 1238s # /tmp/tmpxbztthdl/tmpkwb1320l.xml: 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # 1238s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxbztthdl/tmpkwb1320l.xml', '--output', '-', '--body'] 1238s # Return code: 0 1238s # Output: 1238s # /* 1238s # * This file is generated by gdbus-codegen, do not modify it. 1238s # * 1238s # * The license of this code is the same as for the D-Bus interface description 1238s # * it was derived from. Note that it links to GLib, so must comply with the 1238s # * LGPL linking clauses. 1238s # */ 1238s # 1238s # #ifdef HAVE_CONFIG_H 1238s # # include "config.h" 1238s # #endif 1238s # 1238s # #include 1238s # #ifdef G_OS_UNIX 1238s # # include 1238s # #endif 1238s # 1238s # #ifdef G_ENABLE_DEBUG 1238s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1238s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1238s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1238s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1238s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1238s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1238s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1238s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1238s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1238s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1238s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1238s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1238s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1238s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1238s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1238s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1238s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1238s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1238s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1238s # #else /* !G_ENABLE_DEBUG */ 1238s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1238s # * Do not access GValues directly in your code. Instead, use the 1238s # * g_value_get_*() functions 1238s # */ 1238s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1238s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1238s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1238s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1238s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1238s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1238s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1238s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1238s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1238s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1238s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1238s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1238s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1238s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1238s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1238s # #endif /* !G_ENABLE_DEBUG */ 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusArgInfo parent_struct; 1238s # gboolean use_gvariant; 1238s # } _ExtendedGDBusArgInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusMethodInfo parent_struct; 1238s # const gchar *signal_name; 1238s # gboolean pass_fdlist; 1238s # } _ExtendedGDBusMethodInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusSignalInfo parent_struct; 1238s # const gchar *signal_name; 1238s # } _ExtendedGDBusSignalInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusPropertyInfo parent_struct; 1238s # const gchar *hyphen_name; 1238s # guint use_gvariant : 1; 1238s # guint emits_changed_signal : 1; 1238s # } _ExtendedGDBusPropertyInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # GDBusInterfaceInfo parent_struct; 1238s # const gchar *hyphen_name; 1238s # } _ExtendedGDBusInterfaceInfo; 1238s # 1238s # typedef struct 1238s # { 1238s # const _ExtendedGDBusPropertyInfo *info; 1238s # guint prop_id; 1238s # GValue orig_value; /* the value before the change */ 1238s # } ChangedProperty; 1238s # 1238s # static void 1238s # _changed_property_free (ChangedProperty *data) 1238s # { 1238s # g_value_unset (&data->orig_value); 1238s # g_free (data); 1238s # } 1238s # 1238s # static gboolean 1238s # _g_strv_equal0 (gchar **a, gchar **b) 1238s # { 1238s # gboolean ret = FALSE; 1238s # guint n; 1238s # if (a == NULL && b == NULL) 1238s # { 1238s # ret = TRUE; 1238s # goto out; 1238s # } 1238s # if (a == NULL || b == NULL) 1238s # goto out; 1238s # if (g_strv_length (a) != g_strv_length (b)) 1238s # goto out; 1238s # for (n = 0; a[n] != NULL; n++) 1238s # if (g_strcmp0 (a[n], b[n]) != 0) 1238s # goto out; 1238s # ret = TRUE; 1238s # out: 1238s # return ret; 1238s # } 1238s # 1238s # static gboolean 1238s # _g_variant_equal0 (GVariant *a, GVariant *b) 1238s # { 1238s # gboolean ret = FALSE; 1238s # if (a == NULL && b == NULL) 1238s # { 1238s # ret = TRUE; 1238s # goto out; 1238s # } 1238s # if (a == NULL || b == NULL) 1238s # goto out; 1238s # ret = g_variant_equal (a, b); 1238s # out: 1238s # return ret; 1238s # } 1238s # 1238s # G_GNUC_UNUSED static gboolean 1238s # _g_value_equal (const GValue *a, const GValue *b) 1238s # { 1238s # gboolean ret = FALSE; 1238s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1238s # switch (G_VALUE_TYPE (a)) 1238s # { 1238s # case G_TYPE_BOOLEAN: 1238s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1238s # break; 1238s # case G_TYPE_UCHAR: 1238s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1238s # break; 1238s # case G_TYPE_INT: 1238s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1238s # break; 1238s # case G_TYPE_UINT: 1238s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1238s # break; 1238s # case G_TYPE_INT64: 1238s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1238s # break; 1238s # case G_TYPE_UINT64: 1238s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1238s # break; 1238s # case G_TYPE_DOUBLE: 1238s # { 1238s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1238s # gdouble da = g_value_get_double (a); 1238s # gdouble db = g_value_get_double (b); 1238s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1238s # } 1238s # break; 1238s # case G_TYPE_STRING: 1238s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1238s # break; 1238s # case G_TYPE_VARIANT: 1238s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1238s # break; 1238s # default: 1238s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1238s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1238s # else 1238s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1238s # break; 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # /* ------------------------------------------------------------------------ 1238s # * Code for interface org.project.SignalingIface 1238s # * ------------------------------------------------------------------------ 1238s # */ 1238s # 1238s # /** 1238s # * SECTION:OrgProjectSignalingIface 1238s # * @title: OrgProjectSignalingIface 1238s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1238s # * 1238s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1238s # */ 1238s # 1238s # enum 1238s # { 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1238s # }; 1238s # 1238s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1238s # 1238s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SimpleSignal", 1238s # NULL, 1238s # NULL 1238s # }, 1238s # "simple-signal" 1238s # }; 1238s # 1238s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1238s # { 1238s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "org.project.SignalingIface", 1238s # NULL, 1238s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1238s # NULL, 1238s # NULL 1238s # }, 1238s # "org-project-signaling-iface", 1238s # }; 1238s # 1238s # 1238s # /** 1238s # * org_project_signaling_iface_interface_info: 1238s # * 1238s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1238s # * 1238s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1238s # */ 1238s # GDBusInterfaceInfo * 1238s # org_project_signaling_iface_interface_info (void) 1238s # { 1238s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_override_properties: 1238s # * @klass: The class structure for a #GObject derived class. 1238s # * @property_id_begin: The property id to assign to the first overridden property. 1238s # * 1238s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1238s # * The properties are overridden in the order they are defined. 1238s # * 1238s # * Returns: The last property id. 1238s # */ 1238s # guint 1238s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1238s # { 1238s # return property_id_begin - 1; 1238s # } 1238s # 1238s # 1238s # inline static void 1238s # org_project_signaling_iface_signal_marshal_simple_signal ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__VOID (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # 1238s # /** 1238s # * OrgProjectSignalingIface: 1238s # * 1238s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceIface: 1238s # * @parent_iface: The parent interface. 1238s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1238s # * 1238s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1238s # */ 1238s # 1238s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1238s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1238s # 1238s # static void 1238s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1238s # { 1238s # /* GObject signals for received D-Bus signals: */ 1238s # /** 1238s # * OrgProjectSignalingIface::simple-signal: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1238s # g_signal_new ("simple-signal", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1238s # NULL, 1238s # NULL, 1238s # org_project_signaling_iface_signal_marshal_simple_signal, 1238s # G_TYPE_NONE, 1238s # 0); 1238s # 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_emit_simple_signal: 1238s # * @object: A #OrgProjectSignalingIface. 1238s # * 1238s # * Emits the "SimpleSignal" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_emit_simple_signal ( 1238s # OrgProjectSignalingIface *object) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1238s # } 1238s # 1238s # /* ------------------------------------------------------------------------ */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceProxy: 1238s # * 1238s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceProxyClass: 1238s # * @parent_class: The parent class. 1238s # * 1238s # * Class structure for #OrgProjectSignalingIfaceProxy. 1238s # */ 1238s # 1238s # struct _OrgProjectSignalingIfaceProxyPrivate 1238s # { 1238s # GData *qdata; 1238s # }; 1238s # 1238s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1238s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1238s # 1238s # #else 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1238s # 1238s # #endif 1238s # static void 1238s # org_project_signaling_iface_proxy_finalize (GObject *object) 1238s # { 1238s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1238s # g_datalist_clear (&proxy->priv->qdata); 1238s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1238s # guint prop_id G_GNUC_UNUSED, 1238s # GValue *value G_GNUC_UNUSED, 1238s # GParamSpec *pspec G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1238s # guint prop_id G_GNUC_UNUSED, 1238s # const GValue *value G_GNUC_UNUSED, 1238s # GParamSpec *pspec G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1238s # const gchar *sender_name G_GNUC_UNUSED, 1238s # const gchar *signal_name, 1238s # GVariant *parameters) 1238s # { 1238s # _ExtendedGDBusSignalInfo *info; 1238s # GVariantIter iter; 1238s # GVariant *child; 1238s # GValue *paramv; 1238s # gsize num_params; 1238s # gsize n; 1238s # guint signal_id; 1238s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1238s # if (info == NULL) 1238s # return; 1238s # num_params = g_variant_n_children (parameters); 1238s # paramv = g_new0 (GValue, num_params + 1); 1238s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1238s # g_value_set_object (¶mv[0], proxy); 1238s # g_variant_iter_init (&iter, parameters); 1238s # n = 1; 1238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1238s # { 1238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1238s # if (arg_info->use_gvariant) 1238s # { 1238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1238s # g_value_set_variant (¶mv[n], child); 1238s # n++; 1238s # } 1238s # else 1238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1238s # g_variant_unref (child); 1238s # } 1238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1238s # g_signal_emitv (paramv, signal_id, 0, NULL); 1238s # for (n = 0; n < num_params + 1; n++) 1238s # g_value_unset (¶mv[n]); 1238s # g_free (paramv); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1238s # GVariant *changed_properties, 1238s # const gchar *const *invalidated_properties) 1238s # { 1238s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1238s # guint n; 1238s # const gchar *key; 1238s # GVariantIter *iter; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # g_variant_get (changed_properties, "a{sv}", &iter); 1238s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1238s # { 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1238s # g_datalist_remove_data (&proxy->priv->qdata, key); 1238s # if (info != NULL) 1238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1238s # } 1238s # g_variant_iter_free (iter); 1238s # for (n = 0; invalidated_properties[n] != NULL; n++) 1238s # { 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1238s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1238s # if (info != NULL) 1238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1238s # } 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1238s # { 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1238s # #else 1238s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1238s # #endif 1238s # 1238s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1238s # { 1238s # GObjectClass *gobject_class; 1238s # GDBusProxyClass *proxy_class; 1238s # 1238s # gobject_class = G_OBJECT_CLASS (klass); 1238s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1238s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1238s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1238s # 1238s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1238s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1238s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1238s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1238s # #endif 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new: 1238s # * @connection: A #GDBusConnection. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1238s # * @user_data: User data to pass to @callback. 1238s # * 1238s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1238s # * 1238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1238s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1238s # * 1238s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_proxy_new ( 1238s # GDBusConnection *connection, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GAsyncReadyCallback callback, 1238s # gpointer user_data) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_finish: 1238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_proxy_new_finish ( 1238s # GAsyncResult *res, 1238s # GError **error) 1238s # { 1238s # GObject *ret; 1238s # GObject *source_object; 1238s # source_object = g_async_result_get_source_object (res); 1238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1238s # g_object_unref (source_object); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_sync: 1238s # * @connection: A #GDBusConnection. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1238s # * 1238s # * The calling thread is blocked until a reply is received. 1238s # * 1238s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_proxy_new_sync ( 1238s # GDBusConnection *connection, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GError **error) 1238s # { 1238s # GInitable *ret; 1238s # 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); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_for_bus: 1238s # * @bus_type: A #GBusType. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: A bus name (well-known or unique). 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1238s # * @user_data: User data to pass to @callback. 1238s # * 1238s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1238s # * 1238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1238s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1238s # * 1238s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1238s # */ 1238s # void 1238s # org_project_signaling_iface_proxy_new_for_bus ( 1238s # GBusType bus_type, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GAsyncReadyCallback callback, 1238s # gpointer user_data) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1238s # GAsyncResult *res, 1238s # GError **error) 1238s # { 1238s # GObject *ret; 1238s # GObject *source_object; 1238s # source_object = g_async_result_get_source_object (res); 1238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1238s # g_object_unref (source_object); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1238s # * @bus_type: A #GBusType. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: A bus name (well-known or unique). 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1238s # * 1238s # * The calling thread is blocked until a reply is received. 1238s # * 1238s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1238s # GBusType bus_type, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GError **error) 1238s # { 1238s # GInitable *ret; 1238s # 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); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # 1238s # /* ------------------------------------------------------------------------ */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceSkeleton: 1238s # * 1238s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectSignalingIfaceSkeletonClass: 1238s # * @parent_class: The parent class. 1238s # * 1238s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1238s # */ 1238s # 1238s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1238s # { 1238s # GValue *properties; 1238s # GList *changed_properties; 1238s # GSource *changed_properties_idle_source; 1238s # GMainContext *context; 1238s # GMutex lock; 1238s # }; 1238s # 1238s # static void 1238s # _org_project_signaling_iface_skeleton_handle_method_call ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name, 1238s # const gchar *method_name, 1238s # GVariant *parameters, 1238s # GDBusMethodInvocation *invocation, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1238s # _ExtendedGDBusMethodInfo *info; 1238s # GVariantIter iter; 1238s # GVariant *child; 1238s # GValue *paramv; 1238s # gsize num_params; 1238s # guint num_extra; 1238s # gsize n; 1238s # guint signal_id; 1238s # GValue return_value = G_VALUE_INIT; 1238s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1238s # g_assert (info != NULL); 1238s # num_params = g_variant_n_children (parameters); 1238s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1238s # n = 0; 1238s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1238s # g_value_set_object (¶mv[n++], skeleton); 1238s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1238s # g_value_set_object (¶mv[n++], invocation); 1238s # if (info->pass_fdlist) 1238s # { 1238s # #ifdef G_OS_UNIX 1238s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1238s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1238s # #else 1238s # g_assert_not_reached (); 1238s # #endif 1238s # } 1238s # g_variant_iter_init (&iter, parameters); 1238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1238s # { 1238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1238s # if (arg_info->use_gvariant) 1238s # { 1238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1238s # g_value_set_variant (¶mv[n], child); 1238s # n++; 1238s # } 1238s # else 1238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1238s # g_variant_unref (child); 1238s # } 1238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1238s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1238s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1238s # if (!g_value_get_boolean (&return_value)) 1238s # 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); 1238s # g_value_unset (&return_value); 1238s # for (n = 0; n < num_params + num_extra; n++) 1238s # g_value_unset (¶mv[n]); 1238s # g_free (paramv); 1238s # } 1238s # 1238s # static GVariant * 1238s # _org_project_signaling_iface_skeleton_handle_get_property ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name G_GNUC_UNUSED, 1238s # const gchar *property_name, 1238s # GError **error, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1238s # GValue value = G_VALUE_INIT; 1238s # GParamSpec *pspec; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # GVariant *ret; 1238s # ret = NULL; 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1238s # g_assert (info != NULL); 1238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1238s # if (pspec == NULL) 1238s # { 1238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1238s # } 1238s # else 1238s # { 1238s # g_value_init (&value, pspec->value_type); 1238s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1238s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1238s # g_value_unset (&value); 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static gboolean 1238s # _org_project_signaling_iface_skeleton_handle_set_property ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name G_GNUC_UNUSED, 1238s # const gchar *property_name, 1238s # GVariant *variant, 1238s # GError **error, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1238s # GValue value = G_VALUE_INIT; 1238s # GParamSpec *pspec; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # gboolean ret; 1238s # ret = FALSE; 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1238s # g_assert (info != NULL); 1238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1238s # if (pspec == NULL) 1238s # { 1238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1238s # } 1238s # else 1238s # { 1238s # if (info->use_gvariant) 1238s # g_value_set_variant (&value, variant); 1238s # else 1238s # g_dbus_gvariant_to_gvalue (variant, &value); 1238s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1238s # g_value_unset (&value); 1238s # ret = TRUE; 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1238s # { 1238s # _org_project_signaling_iface_skeleton_handle_method_call, 1238s # _org_project_signaling_iface_skeleton_handle_get_property, 1238s # _org_project_signaling_iface_skeleton_handle_set_property, 1238s # {NULL} 1238s # }; 1238s # 1238s # static GDBusInterfaceInfo * 1238s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1238s # { 1238s # return org_project_signaling_iface_interface_info (); 1238s # } 1238s # 1238s # static GDBusInterfaceVTable * 1238s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1238s # { 1238s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1238s # } 1238s # 1238s # static GVariant * 1238s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1238s # 1238s # GVariantBuilder builder; 1238s # guint n; 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1238s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1238s # #else 1238s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1238s # #endif 1238s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1238s # goto out; 1238s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1238s # { 1238s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1238s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1238s # { 1238s # GVariant *value; 1238s # 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); 1238s # if (value != NULL) 1238s # { 1238s # g_variant_take_ref (value); 1238s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1238s # g_variant_unref (value); 1238s # } 1238s # } 1238s # } 1238s # out: 1238s # return g_variant_builder_end (&builder); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # _org_project_signaling_iface_on_signal_simple_signal ( 1238s # OrgProjectSignalingIface *object) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1238s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1238s # 1238s # #else 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1238s # 1238s # #endif 1238s # static void 1238s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1238s # { 1238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1238s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1238s # if (skeleton->priv->changed_properties_idle_source != NULL) 1238s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1238s # g_main_context_unref (skeleton->priv->context); 1238s # g_mutex_clear (&skeleton->priv->lock); 1238s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1238s # { 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1238s # #else 1238s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1238s # #endif 1238s # 1238s # g_mutex_init (&skeleton->priv->lock); 1238s # skeleton->priv->context = g_main_context_ref_thread_default (); 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1238s # { 1238s # GObjectClass *gobject_class; 1238s # GDBusInterfaceSkeletonClass *skeleton_class; 1238s # 1238s # gobject_class = G_OBJECT_CLASS (klass); 1238s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1238s # 1238s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1238s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1238s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1238s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1238s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1238s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1238s # #endif 1238s # } 1238s # 1238s # static void 1238s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1238s # { 1238s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1238s # } 1238s # 1238s # /** 1238s # * org_project_signaling_iface_skeleton_new: 1238s # * 1238s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1238s # */ 1238s # OrgProjectSignalingIface * 1238s # org_project_signaling_iface_skeleton_new (void) 1238s # { 1238s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1238s # } 1238s # 1238s # /* ------------------------------------------------------------------------ 1238s # * Code for interface org.project.OtherSignalingIface 1238s # * ------------------------------------------------------------------------ 1238s # */ 1238s # 1238s # /** 1238s # * SECTION:OrgProjectOtherSignalingIface 1238s # * @title: OrgProjectOtherSignalingIface 1238s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 1238s # * 1238s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 1238s # */ 1238s # 1238s # enum 1238s # { 1238s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 1238s # }; 1238s # 1238s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1238s # 1238s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 1238s # 1238s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "SimpleSignal", 1238s # NULL, 1238s # NULL 1238s # }, 1238s # "simple-signal" 1238s # }; 1238s # 1238s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 1238s # { 1238s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 1238s # NULL 1238s # }; 1238s # 1238s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 1238s # { 1238s # { 1238s # -1, 1238s # (gchar *) "org.project.OtherSignalingIface", 1238s # NULL, 1238s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 1238s # NULL, 1238s # NULL 1238s # }, 1238s # "org-project-other-signaling-iface", 1238s # }; 1238s # 1238s # 1238s # /** 1238s # * org_project_other_signaling_iface_interface_info: 1238s # * 1238s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 1238s # * 1238s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1238s # */ 1238s # GDBusInterfaceInfo * 1238s # org_project_other_signaling_iface_interface_info (void) 1238s # { 1238s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_signaling_iface_override_properties: 1238s # * @klass: The class structure for a #GObject derived class. 1238s # * @property_id_begin: The property id to assign to the first overridden property. 1238s # * 1238s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 1238s # * The properties are overridden in the order they are defined. 1238s # * 1238s # * Returns: The last property id. 1238s # */ 1238s # guint 1238s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1238s # { 1238s # return property_id_begin - 1; 1238s # } 1238s # 1238s # 1238s # inline static void 1238s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 1238s # GClosure *closure, 1238s # GValue *return_value, 1238s # unsigned int n_param_values, 1238s # const GValue *param_values, 1238s # void *invocation_hint, 1238s # void *marshal_data) 1238s # { 1238s # g_cclosure_marshal_VOID__VOID (closure, 1238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1238s # } 1238s # 1238s # 1238s # /** 1238s # * OrgProjectOtherSignalingIface: 1238s # * 1238s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectOtherSignalingIfaceIface: 1238s # * @parent_iface: The parent interface. 1238s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 1238s # * 1238s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 1238s # */ 1238s # 1238s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 1238s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 1238s # 1238s # static void 1238s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 1238s # { 1238s # /* GObject signals for received D-Bus signals: */ 1238s # /** 1238s # * OrgProjectOtherSignalingIface::simple-signal: 1238s # * @object: A #OrgProjectOtherSignalingIface. 1238s # * 1238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1238s # * 1238s # * 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. 1238s # */ 1238s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1238s # g_signal_new ("simple-signal", 1238s # G_TYPE_FROM_INTERFACE (iface), 1238s # G_SIGNAL_RUN_LAST, 1238s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 1238s # NULL, 1238s # NULL, 1238s # org_project_other_signaling_iface_signal_marshal_simple_signal, 1238s # G_TYPE_NONE, 1238s # 0); 1238s # 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_signaling_iface_emit_simple_signal: 1238s # * @object: A #OrgProjectOtherSignalingIface. 1238s # * 1238s # * Emits the "SimpleSignal" D-Bus signal. 1238s # */ 1238s # void 1238s # org_project_other_signaling_iface_emit_simple_signal ( 1238s # OrgProjectOtherSignalingIface *object) 1238s # { 1238s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1238s # } 1238s # 1238s # /* ------------------------------------------------------------------------ */ 1238s # 1238s # /** 1238s # * OrgProjectOtherSignalingIfaceProxy: 1238s # * 1238s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectOtherSignalingIfaceProxyClass: 1238s # * @parent_class: The parent class. 1238s # * 1238s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 1238s # */ 1238s # 1238s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 1238s # { 1238s # GData *qdata; 1238s # }; 1238s # 1238s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1238s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1238s # 1238s # #else 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1238s # 1238s # #endif 1238s # static void 1238s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 1238s # { 1238s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 1238s # g_datalist_clear (&proxy->priv->qdata); 1238s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 1238s # } 1238s # 1238s # static void 1238s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1238s # guint prop_id G_GNUC_UNUSED, 1238s # GValue *value G_GNUC_UNUSED, 1238s # GParamSpec *pspec G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1238s # guint prop_id G_GNUC_UNUSED, 1238s # const GValue *value G_GNUC_UNUSED, 1238s # GParamSpec *pspec G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1238s # const gchar *sender_name G_GNUC_UNUSED, 1238s # const gchar *signal_name, 1238s # GVariant *parameters) 1238s # { 1238s # _ExtendedGDBusSignalInfo *info; 1238s # GVariantIter iter; 1238s # GVariant *child; 1238s # GValue *paramv; 1238s # gsize num_params; 1238s # gsize n; 1238s # guint signal_id; 1238s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 1238s # if (info == NULL) 1238s # return; 1238s # num_params = g_variant_n_children (parameters); 1238s # paramv = g_new0 (GValue, num_params + 1); 1238s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1238s # g_value_set_object (¶mv[0], proxy); 1238s # g_variant_iter_init (&iter, parameters); 1238s # n = 1; 1238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1238s # { 1238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1238s # if (arg_info->use_gvariant) 1238s # { 1238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1238s # g_value_set_variant (¶mv[n], child); 1238s # n++; 1238s # } 1238s # else 1238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1238s # g_variant_unref (child); 1238s # } 1238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1238s # g_signal_emitv (paramv, signal_id, 0, NULL); 1238s # for (n = 0; n < num_params + 1; n++) 1238s # g_value_unset (¶mv[n]); 1238s # g_free (paramv); 1238s # } 1238s # 1238s # static void 1238s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1238s # GVariant *changed_properties, 1238s # const gchar *const *invalidated_properties) 1238s # { 1238s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 1238s # guint n; 1238s # const gchar *key; 1238s # GVariantIter *iter; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # g_variant_get (changed_properties, "a{sv}", &iter); 1238s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1238s # { 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 1238s # g_datalist_remove_data (&proxy->priv->qdata, key); 1238s # if (info != NULL) 1238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1238s # } 1238s # g_variant_iter_free (iter); 1238s # for (n = 0; invalidated_properties[n] != NULL; n++) 1238s # { 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1238s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1238s # if (info != NULL) 1238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1238s # } 1238s # } 1238s # 1238s # static void 1238s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 1238s # { 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 1238s # #else 1238s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 1238s # #endif 1238s # 1238s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 1238s # } 1238s # 1238s # static void 1238s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 1238s # { 1238s # GObjectClass *gobject_class; 1238s # GDBusProxyClass *proxy_class; 1238s # 1238s # gobject_class = G_OBJECT_CLASS (klass); 1238s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 1238s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 1238s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 1238s # 1238s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1238s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 1238s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1238s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 1238s # #endif 1238s # } 1238s # 1238s # static void 1238s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_signaling_iface_proxy_new: 1238s # * @connection: A #GDBusConnection. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1238s # * @user_data: User data to pass to @callback. 1238s # * 1238s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 1238s # * 1238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1238s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 1238s # * 1238s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1238s # */ 1238s # void 1238s # org_project_other_signaling_iface_proxy_new ( 1238s # GDBusConnection *connection, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GAsyncReadyCallback callback, 1238s # gpointer user_data) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_signaling_iface_proxy_new_finish: 1238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectOtherSignalingIface * 1238s # org_project_other_signaling_iface_proxy_new_finish ( 1238s # GAsyncResult *res, 1238s # GError **error) 1238s # { 1238s # GObject *ret; 1238s # GObject *source_object; 1238s # source_object = g_async_result_get_source_object (res); 1238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1238s # g_object_unref (source_object); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_signaling_iface_proxy_new_sync: 1238s # * @connection: A #GDBusConnection. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 1238s # * 1238s # * The calling thread is blocked until a reply is received. 1238s # * 1238s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectOtherSignalingIface * 1238s # org_project_other_signaling_iface_proxy_new_sync ( 1238s # GDBusConnection *connection, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GError **error) 1238s # { 1238s # GInitable *ret; 1238s # 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); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # 1238s # /** 1238s # * org_project_other_signaling_iface_proxy_new_for_bus: 1238s # * @bus_type: A #GBusType. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: A bus name (well-known or unique). 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1238s # * @user_data: User data to pass to @callback. 1238s # * 1238s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1238s # * 1238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1238s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1238s # * 1238s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1238s # */ 1238s # void 1238s # org_project_other_signaling_iface_proxy_new_for_bus ( 1238s # GBusType bus_type, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GAsyncReadyCallback callback, 1238s # gpointer user_data) 1238s # { 1238s # 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); 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 1238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectOtherSignalingIface * 1238s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 1238s # GAsyncResult *res, 1238s # GError **error) 1238s # { 1238s # GObject *ret; 1238s # GObject *source_object; 1238s # source_object = g_async_result_get_source_object (res); 1238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1238s # g_object_unref (source_object); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 1238s # * @bus_type: A #GBusType. 1238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1238s # * @name: A bus name (well-known or unique). 1238s # * @object_path: An object path. 1238s # * @cancellable: (nullable): A #GCancellable or %NULL. 1238s # * @error: Return location for error or %NULL 1238s # * 1238s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1238s # * 1238s # * The calling thread is blocked until a reply is received. 1238s # * 1238s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1238s # */ 1238s # OrgProjectOtherSignalingIface * 1238s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 1238s # GBusType bus_type, 1238s # GDBusProxyFlags flags, 1238s # const gchar *name, 1238s # const gchar *object_path, 1238s # GCancellable *cancellable, 1238s # GError **error) 1238s # { 1238s # GInitable *ret; 1238s # 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); 1238s # if (ret != NULL) 1238s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1238s # else 1238s # return NULL; 1238s # } 1238s # 1238s # 1238s # /* ------------------------------------------------------------------------ */ 1238s # 1238s # /** 1238s # * OrgProjectOtherSignalingIfaceSkeleton: 1238s # * 1238s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1238s # */ 1238s # 1238s # /** 1238s # * OrgProjectOtherSignalingIfaceSkeletonClass: 1238s # * @parent_class: The parent class. 1238s # * 1238s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 1238s # */ 1238s # 1238s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 1238s # { 1238s # GValue *properties; 1238s # GList *changed_properties; 1238s # GSource *changed_properties_idle_source; 1238s # GMainContext *context; 1238s # GMutex lock; 1238s # }; 1238s # 1238s # static void 1238s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name, 1238s # const gchar *method_name, 1238s # GVariant *parameters, 1238s # GDBusMethodInvocation *invocation, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1238s # _ExtendedGDBusMethodInfo *info; 1238s # GVariantIter iter; 1238s # GVariant *child; 1238s # GValue *paramv; 1238s # gsize num_params; 1238s # guint num_extra; 1238s # gsize n; 1238s # guint signal_id; 1238s # GValue return_value = G_VALUE_INIT; 1238s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1238s # g_assert (info != NULL); 1238s # num_params = g_variant_n_children (parameters); 1238s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1238s # n = 0; 1238s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1238s # g_value_set_object (¶mv[n++], skeleton); 1238s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1238s # g_value_set_object (¶mv[n++], invocation); 1238s # if (info->pass_fdlist) 1238s # { 1238s # #ifdef G_OS_UNIX 1238s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1238s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1238s # #else 1238s # g_assert_not_reached (); 1238s # #endif 1238s # } 1238s # g_variant_iter_init (&iter, parameters); 1238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1238s # { 1238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1238s # if (arg_info->use_gvariant) 1238s # { 1238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1238s # g_value_set_variant (¶mv[n], child); 1238s # n++; 1238s # } 1238s # else 1238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1238s # g_variant_unref (child); 1238s # } 1238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1238s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1238s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1238s # if (!g_value_get_boolean (&return_value)) 1238s # 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); 1238s # g_value_unset (&return_value); 1238s # for (n = 0; n < num_params + num_extra; n++) 1238s # g_value_unset (¶mv[n]); 1238s # g_free (paramv); 1238s # } 1238s # 1238s # static GVariant * 1238s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name G_GNUC_UNUSED, 1238s # const gchar *property_name, 1238s # GError **error, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1238s # GValue value = G_VALUE_INIT; 1238s # GParamSpec *pspec; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # GVariant *ret; 1238s # ret = NULL; 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1238s # g_assert (info != NULL); 1238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1238s # if (pspec == NULL) 1238s # { 1238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1238s # } 1238s # else 1238s # { 1238s # g_value_init (&value, pspec->value_type); 1238s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1238s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1238s # g_value_unset (&value); 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static gboolean 1238s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 1238s # GDBusConnection *connection G_GNUC_UNUSED, 1238s # const gchar *sender G_GNUC_UNUSED, 1238s # const gchar *object_path G_GNUC_UNUSED, 1238s # const gchar *interface_name G_GNUC_UNUSED, 1238s # const gchar *property_name, 1238s # GVariant *variant, 1238s # GError **error, 1238s # gpointer user_data) 1238s # { 1238s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1238s # GValue value = G_VALUE_INIT; 1238s # GParamSpec *pspec; 1238s # _ExtendedGDBusPropertyInfo *info; 1238s # gboolean ret; 1238s # ret = FALSE; 1238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1238s # g_assert (info != NULL); 1238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1238s # if (pspec == NULL) 1238s # { 1238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1238s # } 1238s # else 1238s # { 1238s # if (info->use_gvariant) 1238s # g_value_set_variant (&value, variant); 1238s # else 1238s # g_dbus_gvariant_to_gvalue (variant, &value); 1238s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1238s # g_value_unset (&value); 1238s # ret = TRUE; 1238s # } 1238s # return ret; 1238s # } 1238s # 1238s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 1238s # { 1238s # _org_project_other_signaling_iface_skeleton_handle_method_call, 1238s # _org_project_other_signaling_iface_skeleton_handle_get_property, 1238s # _org_project_other_signaling_iface_skeleton_handle_set_property, 1238s # {NULL} 1238s # }; 1238s # 1238s # static GDBusInterfaceInfo * 1238s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1238s # { 1238s # return org_project_other_signaling_iface_interface_info (); 1238s # } 1238s # 1238s # static GDBusInterfaceVTable * 1238s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1238s # { 1238s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 1238s # } 1238s # 1238s # static GVariant * 1238s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1238s # { 1238s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 1238s # 1238s # GVariantBuilder builder; 1238s # guint n; 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1238s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1238s # #else 1238s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1238s # #endif 1238s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 1238s # goto out; 1238s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1238s # { 1238s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 1238s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1238s # { 1238s # GVariant *value; 1238s # 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); 1238s # if (value != NULL) 1238s # { 1238s # g_variant_take_ref (value); 1238s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1238s # g_variant_unref (value); 1238s # } 1238s # } 1238s # } 1238s # out: 1238s # return g_variant_builder_end (&builder); 1238s # } 1238s # 1238s # static void 1238s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1238s # { 1238s # } 1238s # 1238s # static void 1238s # _org_project_other_signaling_iface_on_signal_simple_signal ( 1238s # OrgProjectOtherSignalingIface *object) 1238s # { 1238s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1238s # 1238s # GList *connections, *l; 1238s # GVariant *signal_variant; 1238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1238s # 1238s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1238s # for (l = connections; l != NULL; l = l->next) 1238s # { 1238s # GDBusConnection *connection = l->data; 1238s # g_dbus_connection_emit_signal (connection, 1238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 1238s # signal_variant, NULL); 1238s # } 1238s # g_variant_unref (signal_variant); 1238s # g_list_free_full (connections, g_object_unref); 1238s # } 1238s # 1238s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1238s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1238s # 1238s # #else 1238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1238s # 1238s # #endif 1238s # static void 1238s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 1238s # { 1238s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1238s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1238s # if (skeleton->priv->changed_properties_idle_source != NULL) 1238s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1238s # g_main_context_unref (skeleton->priv->context); 1238s # g_mutex_clear (&skeleton->priv->lock); 1238s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 1238s # } 1238s # 1238s # static void 1238s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 1238s # { 1238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1238s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 1238s # #else 1238s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 1238s # #endif 1238s # 1238s # g_mutex_init (&skeleton->priv->lock); 1238s # skeleton->priv->context = g_main_context_ref_thread_default (); 1238s # } 1238s # 1238s # static void 1238s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 1238s # { 1238s # GObjectClass *gobject_class; 1238s # GDBusInterfaceSkeletonClass *skeleton_class; 1238s # 1238s # gobject_class = G_OBJECT_CLASS (klass); 1238s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 1238s # 1238s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1238s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 1238s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 1238s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 1238s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 1238s # 1238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1238s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 1238s # #endif 1238s # } 1238s # 1238s # static void 1238s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 1238s # { 1238s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 1238s # } 1238s # 1238s # /** 1238s # * org_project_other_signaling_iface_skeleton_new: 1238s # * 1238s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 1238s # * 1238s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 1238s # */ 1238s # OrgProjectOtherSignalingIface * 1238s # org_project_other_signaling_iface_skeleton_new (void) 1238s # { 1238s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 1238s # } 1238s # Error: 1239s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 1239s # gdbus-codegen: /usr/bin/gdbus-codegen 1239s # tmpdir: /tmp/tmppxi8_eee 1239s # /tmp/tmppxi8_eee/tmp_xvd385d.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmp_xvd385d.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_b", 1239s # (gchar *) "b", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalB", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-b" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-b: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_b: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1239s # g_signal_new ("single-arg-signal-b", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_BOOLEAN); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_b: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_b: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalB" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_b ( 1239s # OrgProjectSignalingIface *object, 1239s # gboolean arg_arg_b) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1239s # OrgProjectSignalingIface *object, 1239s # gboolean arg_arg_b) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1239s # arg_arg_b)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmpp462nxmc.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmpp462nxmc.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_y", 1239s # (gchar *) "y", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalY", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-y" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__UCHAR (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-y: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_y: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1239s # g_signal_new ("single-arg-signal-y", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_UCHAR); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_y: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_y: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalY" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_y ( 1239s # OrgProjectSignalingIface *object, 1239s # guchar arg_arg_y) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1239s # OrgProjectSignalingIface *object, 1239s # guchar arg_arg_y) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1239s # arg_arg_y)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmph8bzrv8v.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmph8bzrv8v.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_n", 1239s # (gchar *) "n", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalN", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-n" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__INT (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-n: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_n: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1239s # g_signal_new ("single-arg-signal-n", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_INT); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_n: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_n: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalN" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_n ( 1239s # OrgProjectSignalingIface *object, 1239s # gint16 arg_arg_n) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1239s # OrgProjectSignalingIface *object, 1239s # gint16 arg_arg_n) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1239s # arg_arg_n)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmpdzba9_ep.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmpdzba9_ep.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_q", 1239s # (gchar *) "q", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalQ", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-q" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__UINT (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-q: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_q: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1239s # g_signal_new ("single-arg-signal-q", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_UINT); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_q: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_q: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalQ" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_q ( 1239s # OrgProjectSignalingIface *object, 1239s # guint16 arg_arg_q) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1239s # OrgProjectSignalingIface *object, 1239s # guint16 arg_arg_q) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1239s # arg_arg_q)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmpzoi_9o_4.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmpzoi_9o_4.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_i", 1239s # (gchar *) "i", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalI", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-i" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__INT (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-i: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_i: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1239s # g_signal_new ("single-arg-signal-i", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_INT); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_i: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_i: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalI" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_i ( 1239s # OrgProjectSignalingIface *object, 1239s # gint arg_arg_i) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1239s # OrgProjectSignalingIface *object, 1239s # gint arg_arg_i) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1239s # arg_arg_i)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmp68b_qg0o.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmp68b_qg0o.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_u", 1239s # (gchar *) "u", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalU", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-u" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__UINT (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-u: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_u: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1239s # g_signal_new ("single-arg-signal-u", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_UINT); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_u: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_u: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalU" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_u ( 1239s # OrgProjectSignalingIface *object, 1239s # guint arg_arg_u) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1239s # OrgProjectSignalingIface *object, 1239s # guint arg_arg_u) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1239s # arg_arg_u)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmp4gpy5_fv.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmp4gpy5_fv.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static void 1239s # _g_dbus_codegen_marshal_VOID__INT64 ( 1239s # GClosure *closure, 1239s # GValue *return_value G_GNUC_UNUSED, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint G_GNUC_UNUSED, 1239s # void *marshal_data) 1239s # { 1239s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1239s # (void *data1, 1239s # gint64 arg_arg_x, 1239s # void *data2); 1239s # _GDbusCodegenMarshalVoid_Int64Func callback; 1239s # GCClosure *cc = (GCClosure*) closure; 1239s # void *data1, *data2; 1239s # 1239s # g_return_if_fail (n_param_values == 2); 1239s # 1239s # if (G_CCLOSURE_SWAP_DATA (closure)) 1239s # { 1239s # data1 = closure->data; 1239s # data2 = g_value_peek_pointer (param_values + 0); 1239s # } 1239s # else 1239s # { 1239s # data1 = g_value_peek_pointer (param_values + 0); 1239s # data2 = closure->data; 1239s # } 1239s # 1239s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1239s # (marshal_data ? marshal_data : cc->callback); 1239s # 1239s # callback (data1, 1239s # g_marshal_value_peek_int64 (param_values + 1), 1239s # data2); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_x", 1239s # (gchar *) "x", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalX", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-x" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-x: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_x: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1239s # g_signal_new ("single-arg-signal-x", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_INT64); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_x: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_x: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalX" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_x ( 1239s # OrgProjectSignalingIface *object, 1239s # gint64 arg_arg_x) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1239s # OrgProjectSignalingIface *object, 1239s # gint64 arg_arg_x) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1239s # arg_arg_x)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmplyajx4bf.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmplyajx4bf.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static void 1239s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1239s # GClosure *closure, 1239s # GValue *return_value G_GNUC_UNUSED, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint G_GNUC_UNUSED, 1239s # void *marshal_data) 1239s # { 1239s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1239s # (void *data1, 1239s # guint64 arg_arg_t, 1239s # void *data2); 1239s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1239s # GCClosure *cc = (GCClosure*) closure; 1239s # void *data1, *data2; 1239s # 1239s # g_return_if_fail (n_param_values == 2); 1239s # 1239s # if (G_CCLOSURE_SWAP_DATA (closure)) 1239s # { 1239s # data1 = closure->data; 1239s # data2 = g_value_peek_pointer (param_values + 0); 1239s # } 1239s # else 1239s # { 1239s # data1 = g_value_peek_pointer (param_values + 0); 1239s # data2 = closure->data; 1239s # } 1239s # 1239s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1239s # (marshal_data ? marshal_data : cc->callback); 1239s # 1239s # callback (data1, 1239s # g_marshal_value_peek_uint64 (param_values + 1), 1239s # data2); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_t", 1239s # (gchar *) "t", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalT", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-t" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-t: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_t: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1239s # g_signal_new ("single-arg-signal-t", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_UINT64); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_t: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_t: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalT" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_t ( 1239s # OrgProjectSignalingIface *object, 1239s # guint64 arg_arg_t) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1239s # OrgProjectSignalingIface *object, 1239s # guint64 arg_arg_t) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1239s # arg_arg_t)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmp3j2p5tzj.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmp3j2p5tzj.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_d", 1239s # (gchar *) "d", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalD", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-d" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__DOUBLE (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-d: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_d: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1239s # g_signal_new ("single-arg-signal-d", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_DOUBLE); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_d: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_d: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalD" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_d ( 1239s # OrgProjectSignalingIface *object, 1239s # gdouble arg_arg_d) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1239s # OrgProjectSignalingIface *object, 1239s # gdouble arg_arg_d) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1239s # arg_arg_d)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmp8dm7pnp1.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmp8dm7pnp1.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_s", 1239s # (gchar *) "s", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalS", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-s" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__STRING (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-s: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_s: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1239s # g_signal_new ("single-arg-signal-s", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_STRING); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_s: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_s: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalS" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_s ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *arg_arg_s) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *arg_arg_s) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1239s # arg_arg_s)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmpp9563ct1.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmpp9563ct1.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_o", 1239s # (gchar *) "o", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalO", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-o" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__STRING (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-o: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_o: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1239s # g_signal_new ("single-arg-signal-o", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_STRING); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_o: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_o: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalO" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_o ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *arg_arg_o) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *arg_arg_o) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1239s # arg_arg_o)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmpx7wif26y.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmpx7wif26y.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_g", 1239s # (gchar *) "g", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalG", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-g" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__STRING (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-g: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_g: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1239s # g_signal_new ("single-arg-signal-g", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_STRING); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_g: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_g: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalG" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_g ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *arg_arg_g) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *arg_arg_g) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1239s # arg_arg_g)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmpf4mymu1l.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmpf4mymu1l.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_h", 1239s # (gchar *) "h", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalH", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-h" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VARIANT (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-h: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_h: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1239s # g_signal_new ("single-arg-signal-h", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_VARIANT); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_h: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_h: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalH" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_h ( 1239s # OrgProjectSignalingIface *object, 1239s # GVariant *arg_arg_h) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1239s # OrgProjectSignalingIface *object, 1239s # GVariant *arg_arg_h) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1239s # arg_arg_h)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmpc5t1wdh_.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmpc5t1wdh_.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_ay", 1239s # (gchar *) "ay", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalAy", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-ay" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__STRING (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-ay: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_ay: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1239s # g_signal_new ("single-arg-signal-ay", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_STRING); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_ay: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalAy" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *arg_arg_ay) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *arg_arg_ay) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1239s # arg_arg_ay)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmpe5oz8gzp.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmpe5oz8gzp.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_as", 1239s # (gchar *) "as", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalAs", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-as" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__BOXED (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-as: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_as: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1239s # g_signal_new ("single-arg-signal-as", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_STRV); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_as: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_as: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalAs" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_as ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *const *arg_arg_as) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *const *arg_arg_as) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1239s # arg_arg_as)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmpbhiwfcnu.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmpbhiwfcnu.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_ao", 1239s # (gchar *) "ao", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalAo", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-ao" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__BOXED (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-ao: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_ao: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1239s # g_signal_new ("single-arg-signal-ao", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_STRV); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_ao: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalAo" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *const *arg_arg_ao) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *const *arg_arg_ao) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1239s # arg_arg_ao)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmpdsucj0rk.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmpdsucj0rk.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_aay", 1239s # (gchar *) "aay", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalAay", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-aay" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__BOXED (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-aay: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_aay: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1239s # g_signal_new ("single-arg-signal-aay", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_STRV); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_aay: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalAay" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *const *arg_arg_aay) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1239s # OrgProjectSignalingIface *object, 1239s # const gchar *const *arg_arg_aay) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1239s # arg_arg_aay)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s # 1239s # /tmp/tmppxi8_eee/tmpgug6mhyt.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppxi8_eee/tmpgug6mhyt.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "arg_asv", 1239s # (gchar *) "a{sv}", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SingleArgSignalAsv", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "single-arg-signal-asv" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VARIANT (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::single-arg-signal-asv: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_asv: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1239s # g_signal_new ("single-arg-signal-asv", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1239s # G_TYPE_NONE, 1239s # 1, G_TYPE_VARIANT); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_arg_asv: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SingleArgSignalAsv" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1239s # OrgProjectSignalingIface *object, 1239s # GVariant *arg_arg_asv) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1239s # OrgProjectSignalingIface *object, 1239s # GVariant *arg_arg_asv) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1239s # arg_arg_asv)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 1239s # gdbus-codegen: /usr/bin/gdbus-codegen 1239s # tmpdir: /tmp/tmp2u55ynuw 1239s # /tmp/tmp2u55ynuw/tmpt8totte0.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2u55ynuw/tmpt8totte0.xml', '--output', '-', '--body'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifdef HAVE_CONFIG_H 1239s # # include "config.h" 1239s # #endif 1239s # 1239s # #include 1239s # #ifdef G_OS_UNIX 1239s # # include 1239s # #endif 1239s # 1239s # #ifdef G_ENABLE_DEBUG 1239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1239s # #else /* !G_ENABLE_DEBUG */ 1239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1239s # * Do not access GValues directly in your code. Instead, use the 1239s # * g_value_get_*() functions 1239s # */ 1239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1239s # #endif /* !G_ENABLE_DEBUG */ 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusArgInfo parent_struct; 1239s # gboolean use_gvariant; 1239s # } _ExtendedGDBusArgInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusMethodInfo parent_struct; 1239s # const gchar *signal_name; 1239s # gboolean pass_fdlist; 1239s # } _ExtendedGDBusMethodInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusSignalInfo parent_struct; 1239s # const gchar *signal_name; 1239s # } _ExtendedGDBusSignalInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusPropertyInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # guint use_gvariant : 1; 1239s # guint emits_changed_signal : 1; 1239s # } _ExtendedGDBusPropertyInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # GDBusInterfaceInfo parent_struct; 1239s # const gchar *hyphen_name; 1239s # } _ExtendedGDBusInterfaceInfo; 1239s # 1239s # typedef struct 1239s # { 1239s # const _ExtendedGDBusPropertyInfo *info; 1239s # guint prop_id; 1239s # GValue orig_value; /* the value before the change */ 1239s # } ChangedProperty; 1239s # 1239s # static void 1239s # _changed_property_free (ChangedProperty *data) 1239s # { 1239s # g_value_unset (&data->orig_value); 1239s # g_free (data); 1239s # } 1239s # 1239s # static gboolean 1239s # _g_strv_equal0 (gchar **a, gchar **b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # guint n; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # if (g_strv_length (a) != g_strv_length (b)) 1239s # goto out; 1239s # for (n = 0; a[n] != NULL; n++) 1239s # if (g_strcmp0 (a[n], b[n]) != 0) 1239s # goto out; 1239s # ret = TRUE; 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _g_variant_equal0 (GVariant *a, GVariant *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # if (a == NULL && b == NULL) 1239s # { 1239s # ret = TRUE; 1239s # goto out; 1239s # } 1239s # if (a == NULL || b == NULL) 1239s # goto out; 1239s # ret = g_variant_equal (a, b); 1239s # out: 1239s # return ret; 1239s # } 1239s # 1239s # G_GNUC_UNUSED static gboolean 1239s # _g_value_equal (const GValue *a, const GValue *b) 1239s # { 1239s # gboolean ret = FALSE; 1239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1239s # switch (G_VALUE_TYPE (a)) 1239s # { 1239s # case G_TYPE_BOOLEAN: 1239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1239s # break; 1239s # case G_TYPE_UCHAR: 1239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1239s # break; 1239s # case G_TYPE_INT: 1239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1239s # break; 1239s # case G_TYPE_UINT: 1239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1239s # break; 1239s # case G_TYPE_INT64: 1239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1239s # break; 1239s # case G_TYPE_UINT64: 1239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1239s # break; 1239s # case G_TYPE_DOUBLE: 1239s # { 1239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1239s # gdouble da = g_value_get_double (a); 1239s # gdouble db = g_value_get_double (b); 1239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1239s # } 1239s # break; 1239s # case G_TYPE_STRING: 1239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1239s # break; 1239s # case G_TYPE_VARIANT: 1239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1239s # break; 1239s # default: 1239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1239s # else 1239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1239s # break; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static void 1239s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1239s # GClosure *closure, 1239s # GValue *return_value G_GNUC_UNUSED, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint G_GNUC_UNUSED, 1239s # void *marshal_data) 1239s # { 1239s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1239s # (void *data1, 1239s # gboolean arg_an_b, 1239s # guchar arg_an_y, 1239s # gint16 arg_an_n, 1239s # guint16 arg_an_q, 1239s # gint arg_an_i, 1239s # guint arg_an_u, 1239s # gint64 arg_an_x, 1239s # guint64 arg_an_t, 1239s # gdouble arg_an_d, 1239s # const gchar *arg_an_s, 1239s # const gchar *arg_an_o, 1239s # const gchar *arg_an_g, 1239s # GVariant *arg_an_h, 1239s # const gchar *arg_an_ay, 1239s # const gchar *const *arg_an_as, 1239s # const gchar *const *arg_an_ao, 1239s # const gchar *const *arg_an_aay, 1239s # GVariant *arg_an_asv, 1239s # void *data2); 1239s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1239s # GCClosure *cc = (GCClosure*) closure; 1239s # void *data1, *data2; 1239s # 1239s # g_return_if_fail (n_param_values == 19); 1239s # 1239s # if (G_CCLOSURE_SWAP_DATA (closure)) 1239s # { 1239s # data1 = closure->data; 1239s # data2 = g_value_peek_pointer (param_values + 0); 1239s # } 1239s # else 1239s # { 1239s # data1 = g_value_peek_pointer (param_values + 0); 1239s # data2 = closure->data; 1239s # } 1239s # 1239s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1239s # (marshal_data ? marshal_data : cc->callback); 1239s # 1239s # callback (data1, 1239s # g_marshal_value_peek_boolean (param_values + 1), 1239s # g_marshal_value_peek_uchar (param_values + 2), 1239s # g_marshal_value_peek_int (param_values + 3), 1239s # g_marshal_value_peek_uint (param_values + 4), 1239s # g_marshal_value_peek_int (param_values + 5), 1239s # g_marshal_value_peek_uint (param_values + 6), 1239s # g_marshal_value_peek_int64 (param_values + 7), 1239s # g_marshal_value_peek_uint64 (param_values + 8), 1239s # g_marshal_value_peek_double (param_values + 9), 1239s # g_marshal_value_peek_string (param_values + 10), 1239s # g_marshal_value_peek_string (param_values + 11), 1239s # g_marshal_value_peek_string (param_values + 12), 1239s # g_marshal_value_peek_variant (param_values + 13), 1239s # g_marshal_value_peek_string (param_values + 14), 1239s # g_marshal_value_peek_boxed (param_values + 15), 1239s # g_marshal_value_peek_boxed (param_values + 16), 1239s # g_marshal_value_peek_boxed (param_values + 17), 1239s # g_marshal_value_peek_variant (param_values + 18), 1239s # data2); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ 1239s # * Code for interface org.project.SignalingIface 1239s # * ------------------------------------------------------------------------ 1239s # */ 1239s # 1239s # /** 1239s # * SECTION:OrgProjectSignalingIface 1239s # * @title: OrgProjectSignalingIface 1239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1239s # * 1239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1239s # */ 1239s # 1239s # enum 1239s # { 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1239s # }; 1239s # 1239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1239s # 1239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SimpleSignal", 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "simple-signal" 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_b", 1239s # (gchar *) "b", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_y", 1239s # (gchar *) "y", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_n", 1239s # (gchar *) "n", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_q", 1239s # (gchar *) "q", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_i", 1239s # (gchar *) "i", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_u", 1239s # (gchar *) "u", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_x", 1239s # (gchar *) "x", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_t", 1239s # (gchar *) "t", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_d", 1239s # (gchar *) "d", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_s", 1239s # (gchar *) "s", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_o", 1239s # (gchar *) "o", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_g", 1239s # (gchar *) "g", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_h", 1239s # (gchar *) "h", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_ay", 1239s # (gchar *) "ay", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_as", 1239s # (gchar *) "as", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_ao", 1239s # (gchar *) "ao", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_aay", 1239s # (gchar *) "aay", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "an_asv", 1239s # (gchar *) "a{sv}", 1239s # NULL 1239s # }, 1239s # FALSE 1239s # }; 1239s # 1239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "SignalWithManyArgs", 1239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1239s # NULL 1239s # }, 1239s # "signal-with-many-args" 1239s # }; 1239s # 1239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1239s # { 1239s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1239s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1239s # NULL 1239s # }; 1239s # 1239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1239s # { 1239s # { 1239s # -1, 1239s # (gchar *) "org.project.SignalingIface", 1239s # NULL, 1239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1239s # NULL, 1239s # NULL 1239s # }, 1239s # "org-project-signaling-iface", 1239s # }; 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_interface_info: 1239s # * 1239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1239s # * 1239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1239s # */ 1239s # GDBusInterfaceInfo * 1239s # org_project_signaling_iface_interface_info (void) 1239s # { 1239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_override_properties: 1239s # * @klass: The class structure for a #GObject derived class. 1239s # * @property_id_begin: The property id to assign to the first overridden property. 1239s # * 1239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1239s # * The properties are overridden in the order they are defined. 1239s # * 1239s # * Returns: The last property id. 1239s # */ 1239s # guint 1239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1239s # { 1239s # return property_id_begin - 1; 1239s # } 1239s # 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_simple_signal ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # g_cclosure_marshal_VOID__VOID (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # inline static void 1239s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1239s # GClosure *closure, 1239s # GValue *return_value, 1239s # unsigned int n_param_values, 1239s # const GValue *param_values, 1239s # void *invocation_hint, 1239s # void *marshal_data) 1239s # { 1239s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1239s # } 1239s # 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface: 1239s # * 1239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceIface: 1239s # * @parent_iface: The parent interface. 1239s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1239s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1239s # * 1239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1239s # */ 1239s # 1239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1239s # 1239s # static void 1239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # /* GObject signals for received D-Bus signals: */ 1239s # /** 1239s # * OrgProjectSignalingIface::simple-signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1239s # g_signal_new ("simple-signal", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_simple_signal, 1239s # G_TYPE_NONE, 1239s # 0); 1239s # 1239s # /** 1239s # * OrgProjectSignalingIface::signal-with-many-args: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_an_b: Argument. 1239s # * @arg_an_y: Argument. 1239s # * @arg_an_n: Argument. 1239s # * @arg_an_q: Argument. 1239s # * @arg_an_i: Argument. 1239s # * @arg_an_u: Argument. 1239s # * @arg_an_x: Argument. 1239s # * @arg_an_t: Argument. 1239s # * @arg_an_d: Argument. 1239s # * @arg_an_s: Argument. 1239s # * @arg_an_o: Argument. 1239s # * @arg_an_g: Argument. 1239s # * @arg_an_h: Argument. 1239s # * @arg_an_ay: Argument. 1239s # * @arg_an_as: Argument. 1239s # * @arg_an_ao: Argument. 1239s # * @arg_an_aay: Argument. 1239s # * @arg_an_asv: Argument. 1239s # * 1239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1239s # * 1239s # * 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. 1239s # */ 1239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1239s # g_signal_new ("signal-with-many-args", 1239s # G_TYPE_FROM_INTERFACE (iface), 1239s # G_SIGNAL_RUN_LAST, 1239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1239s # NULL, 1239s # NULL, 1239s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1239s # G_TYPE_NONE, 1239s # 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); 1239s # 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_simple_signal: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * 1239s # * Emits the "SimpleSignal" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_emit_signal_with_many_args: 1239s # * @object: A #OrgProjectSignalingIface. 1239s # * @arg_an_b: Argument to pass with the signal. 1239s # * @arg_an_y: Argument to pass with the signal. 1239s # * @arg_an_n: Argument to pass with the signal. 1239s # * @arg_an_q: Argument to pass with the signal. 1239s # * @arg_an_i: Argument to pass with the signal. 1239s # * @arg_an_u: Argument to pass with the signal. 1239s # * @arg_an_x: Argument to pass with the signal. 1239s # * @arg_an_t: Argument to pass with the signal. 1239s # * @arg_an_d: Argument to pass with the signal. 1239s # * @arg_an_s: Argument to pass with the signal. 1239s # * @arg_an_o: Argument to pass with the signal. 1239s # * @arg_an_g: Argument to pass with the signal. 1239s # * @arg_an_h: Argument to pass with the signal. 1239s # * @arg_an_ay: Argument to pass with the signal. 1239s # * @arg_an_as: Argument to pass with the signal. 1239s # * @arg_an_ao: Argument to pass with the signal. 1239s # * @arg_an_aay: Argument to pass with the signal. 1239s # * @arg_an_asv: Argument to pass with the signal. 1239s # * 1239s # * Emits the "SignalWithManyArgs" D-Bus signal. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_emit_signal_with_many_args ( 1239s # OrgProjectSignalingIface *object, 1239s # gboolean arg_an_b, 1239s # guchar arg_an_y, 1239s # gint16 arg_an_n, 1239s # guint16 arg_an_q, 1239s # gint arg_an_i, 1239s # guint arg_an_u, 1239s # gint64 arg_an_x, 1239s # guint64 arg_an_t, 1239s # gdouble arg_an_d, 1239s # const gchar *arg_an_s, 1239s # const gchar *arg_an_o, 1239s # const gchar *arg_an_g, 1239s # GVariant *arg_an_h, 1239s # const gchar *arg_an_ay, 1239s # const gchar *const *arg_an_as, 1239s # const gchar *const *arg_an_ao, 1239s # const gchar *const *arg_an_aay, 1239s # GVariant *arg_an_asv) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxy: 1239s # * 1239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceProxyClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceProxy. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceProxyPrivate 1239s # { 1239s # GData *qdata; 1239s # }; 1239s # 1239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_proxy_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1239s # g_datalist_clear (&proxy->priv->qdata); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1239s # guint prop_id G_GNUC_UNUSED, 1239s # const GValue *value G_GNUC_UNUSED, 1239s # GParamSpec *pspec G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1239s # const gchar *sender_name G_GNUC_UNUSED, 1239s # const gchar *signal_name, 1239s # GVariant *parameters) 1239s # { 1239s # _ExtendedGDBusSignalInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # gsize n; 1239s # guint signal_id; 1239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1239s # if (info == NULL) 1239s # return; 1239s # num_params = g_variant_n_children (parameters); 1239s # paramv = g_new0 (GValue, num_params + 1); 1239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[0], proxy); 1239s # g_variant_iter_init (&iter, parameters); 1239s # n = 1; 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_signal_emitv (paramv, signal_id, 0, NULL); 1239s # for (n = 0; n < num_params + 1; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1239s # GVariant *changed_properties, 1239s # const gchar *const *invalidated_properties) 1239s # { 1239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1239s # guint n; 1239s # const gchar *key; 1239s # GVariantIter *iter; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # g_variant_get (changed_properties, "a{sv}", &iter); 1239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1239s # g_datalist_remove_data (&proxy->priv->qdata, key); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # g_variant_iter_free (iter); 1239s # for (n = 0; invalidated_properties[n] != NULL; n++) 1239s # { 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1239s # if (info != NULL) 1239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1239s # } 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1239s # #else 1239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1239s # #endif 1239s # 1239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusProxyClass *proxy_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1239s # 1239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_sync: 1239s # * @connection: A #GDBusConnection. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_sync ( 1239s # GDBusConnection *connection, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1239s # * @user_data: User data to pass to @callback. 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1239s # */ 1239s # void 1239s # org_project_signaling_iface_proxy_new_for_bus ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GAsyncReadyCallback callback, 1239s # gpointer user_data) 1239s # { 1239s # 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); 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1239s # GAsyncResult *res, 1239s # GError **error) 1239s # { 1239s # GObject *ret; 1239s # GObject *source_object; 1239s # source_object = g_async_result_get_source_object (res); 1239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1239s # g_object_unref (source_object); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1239s # * @bus_type: A #GBusType. 1239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1239s # * @name: A bus name (well-known or unique). 1239s # * @object_path: An object path. 1239s # * @cancellable: (nullable): A #GCancellable or %NULL. 1239s # * @error: Return location for error or %NULL 1239s # * 1239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1239s # * 1239s # * The calling thread is blocked until a reply is received. 1239s # * 1239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1239s # GBusType bus_type, 1239s # GDBusProxyFlags flags, 1239s # const gchar *name, 1239s # const gchar *object_path, 1239s # GCancellable *cancellable, 1239s # GError **error) 1239s # { 1239s # GInitable *ret; 1239s # 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); 1239s # if (ret != NULL) 1239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1239s # else 1239s # return NULL; 1239s # } 1239s # 1239s # 1239s # /* ------------------------------------------------------------------------ */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeleton: 1239s # * 1239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1239s # */ 1239s # 1239s # /** 1239s # * OrgProjectSignalingIfaceSkeletonClass: 1239s # * @parent_class: The parent class. 1239s # * 1239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1239s # */ 1239s # 1239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1239s # { 1239s # GValue *properties; 1239s # GList *changed_properties; 1239s # GSource *changed_properties_idle_source; 1239s # GMainContext *context; 1239s # GMutex lock; 1239s # }; 1239s # 1239s # static void 1239s # _org_project_signaling_iface_skeleton_handle_method_call ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name, 1239s # const gchar *method_name, 1239s # GVariant *parameters, 1239s # GDBusMethodInvocation *invocation, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # _ExtendedGDBusMethodInfo *info; 1239s # GVariantIter iter; 1239s # GVariant *child; 1239s # GValue *paramv; 1239s # gsize num_params; 1239s # guint num_extra; 1239s # gsize n; 1239s # guint signal_id; 1239s # GValue return_value = G_VALUE_INIT; 1239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1239s # g_assert (info != NULL); 1239s # num_params = g_variant_n_children (parameters); 1239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1239s # n = 0; 1239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_set_object (¶mv[n++], skeleton); 1239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1239s # g_value_set_object (¶mv[n++], invocation); 1239s # if (info->pass_fdlist) 1239s # { 1239s # #ifdef G_OS_UNIX 1239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1239s # #else 1239s # g_assert_not_reached (); 1239s # #endif 1239s # } 1239s # g_variant_iter_init (&iter, parameters); 1239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1239s # { 1239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1239s # if (arg_info->use_gvariant) 1239s # { 1239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1239s # g_value_set_variant (¶mv[n], child); 1239s # n++; 1239s # } 1239s # else 1239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1239s # g_variant_unref (child); 1239s # } 1239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1239s # if (!g_value_get_boolean (&return_value)) 1239s # 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); 1239s # g_value_unset (&return_value); 1239s # for (n = 0; n < num_params + num_extra; n++) 1239s # g_value_unset (¶mv[n]); 1239s # g_free (paramv); 1239s # } 1239s # 1239s # static GVariant * 1239s # _org_project_signaling_iface_skeleton_handle_get_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # GVariant *ret; 1239s # ret = NULL; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # g_value_init (&value, pspec->value_type); 1239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1239s # g_value_unset (&value); 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static gboolean 1239s # _org_project_signaling_iface_skeleton_handle_set_property ( 1239s # GDBusConnection *connection G_GNUC_UNUSED, 1239s # const gchar *sender G_GNUC_UNUSED, 1239s # const gchar *object_path G_GNUC_UNUSED, 1239s # const gchar *interface_name G_GNUC_UNUSED, 1239s # const gchar *property_name, 1239s # GVariant *variant, 1239s # GError **error, 1239s # gpointer user_data) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1239s # GValue value = G_VALUE_INIT; 1239s # GParamSpec *pspec; 1239s # _ExtendedGDBusPropertyInfo *info; 1239s # gboolean ret; 1239s # ret = FALSE; 1239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1239s # g_assert (info != NULL); 1239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1239s # if (pspec == NULL) 1239s # { 1239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1239s # } 1239s # else 1239s # { 1239s # if (info->use_gvariant) 1239s # g_value_set_variant (&value, variant); 1239s # else 1239s # g_dbus_gvariant_to_gvalue (variant, &value); 1239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1239s # g_value_unset (&value); 1239s # ret = TRUE; 1239s # } 1239s # return ret; 1239s # } 1239s # 1239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1239s # { 1239s # _org_project_signaling_iface_skeleton_handle_method_call, 1239s # _org_project_signaling_iface_skeleton_handle_get_property, 1239s # _org_project_signaling_iface_skeleton_handle_set_property, 1239s # {NULL} 1239s # }; 1239s # 1239s # static GDBusInterfaceInfo * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return org_project_signaling_iface_interface_info (); 1239s # } 1239s # 1239s # static GDBusInterfaceVTable * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1239s # { 1239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1239s # } 1239s # 1239s # static GVariant * 1239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1239s # 1239s # GVariantBuilder builder; 1239s # guint n; 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #else 1239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1239s # #endif 1239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1239s # goto out; 1239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1239s # { 1239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1239s # { 1239s # GVariant *value; 1239s # 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); 1239s # if (value != NULL) 1239s # { 1239s # g_variant_take_ref (value); 1239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1239s # g_variant_unref (value); 1239s # } 1239s # } 1239s # } 1239s # out: 1239s # return g_variant_builder_end (&builder); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1239s # { 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_simple_signal ( 1239s # OrgProjectSignalingIface *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void 1239s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1239s # OrgProjectSignalingIface *object, 1239s # gboolean arg_an_b, 1239s # guchar arg_an_y, 1239s # gint16 arg_an_n, 1239s # guint16 arg_an_q, 1239s # gint arg_an_i, 1239s # guint arg_an_u, 1239s # gint64 arg_an_x, 1239s # guint64 arg_an_t, 1239s # gdouble arg_an_d, 1239s # const gchar *arg_an_s, 1239s # const gchar *arg_an_o, 1239s # const gchar *arg_an_g, 1239s # GVariant *arg_an_h, 1239s # const gchar *arg_an_ay, 1239s # const gchar *const *arg_an_as, 1239s # const gchar *const *arg_an_ao, 1239s # const gchar *const *arg_an_aay, 1239s # GVariant *arg_an_asv) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # 1239s # GList *connections, *l; 1239s # GVariant *signal_variant; 1239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1239s # 1239s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1239s # arg_an_b, 1239s # arg_an_y, 1239s # arg_an_n, 1239s # arg_an_q, 1239s # arg_an_i, 1239s # arg_an_u, 1239s # arg_an_x, 1239s # arg_an_t, 1239s # arg_an_d, 1239s # arg_an_s, 1239s # arg_an_o, 1239s # arg_an_g, 1239s # arg_an_h, 1239s # arg_an_ay, 1239s # arg_an_as, 1239s # arg_an_ao, 1239s # arg_an_aay, 1239s # arg_an_asv)); 1239s # for (l = connections; l != NULL; l = l->next) 1239s # { 1239s # GDBusConnection *connection = l->data; 1239s # g_dbus_connection_emit_signal (connection, 1239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1239s # signal_variant, NULL); 1239s # } 1239s # g_variant_unref (signal_variant); 1239s # g_list_free_full (connections, g_object_unref); 1239s # } 1239s # 1239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #else 1239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1239s # 1239s # #endif 1239s # static void 1239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1239s # { 1239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1239s # if (skeleton->priv->changed_properties_idle_source != NULL) 1239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1239s # g_main_context_unref (skeleton->priv->context); 1239s # g_mutex_clear (&skeleton->priv->lock); 1239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1239s # { 1239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1239s # #else 1239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1239s # #endif 1239s # 1239s # g_mutex_init (&skeleton->priv->lock); 1239s # skeleton->priv->context = g_main_context_ref_thread_default (); 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1239s # { 1239s # GObjectClass *gobject_class; 1239s # GDBusInterfaceSkeletonClass *skeleton_class; 1239s # 1239s # gobject_class = G_OBJECT_CLASS (klass); 1239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1239s # 1239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1239s # 1239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1239s # #endif 1239s # } 1239s # 1239s # static void 1239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1239s # { 1239s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1239s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1239s # } 1239s # 1239s # /** 1239s # * org_project_signaling_iface_skeleton_new: 1239s # * 1239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1239s # * 1239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1239s # */ 1239s # OrgProjectSignalingIface * 1239s # org_project_signaling_iface_skeleton_new (void) 1239s # { 1239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1239s # } 1239s # Error: 1239s ok 25 __main__.TestCodegen.test_generate_valid_docbook 1239s # gdbus-codegen: /usr/bin/gdbus-codegen 1239s # tmpdir: /tmp/tmpujxhkhiz 1239s # /tmp/tmpujxhkhiz/tmpprfc0hmh.xml: 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpujxhkhiz/tmpprfc0hmh.xml', '--generate-docbook', 'test'] 1239s # Return code: 0 1239s # Output: 1239s # 1239s # Error: 1239s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 1239s # gdbus-codegen: /usr/bin/gdbus-codegen 1239s # tmpdir: /tmp/tmpxpty4nlq 1239s # /tmp/tmpxpty4nlq/tmpysw_ufm2.xml: 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxpty4nlq/tmpysw_ufm2.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 1239s # Return code: 1 1239s # Output: 1239s # 1239s # Error: 1239s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 1239s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 1239s # gdbus-codegen: /usr/bin/gdbus-codegen 1239s # tmpdir: /tmp/tmpxj7y_n78 1239s # /tmp/tmpxj7y_n78/tmpfpv47x92.xml: 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxj7y_n78/tmpfpv47x92.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifndef __STDOUT__ 1239s # #define __STDOUT__ 1239s # 1239s # #include 1239s # 1239s # G_BEGIN_DECLS 1239s # 1239s # 1239s # G_END_DECLS 1239s # 1239s # #endif /* __STDOUT__ */ 1239s # Error: 1239s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 1239s # gdbus-codegen: /usr/bin/gdbus-codegen 1239s # tmpdir: /tmp/tmpo6h_oxwe 1239s # /tmp/tmpo6h_oxwe/tmp95y57p55.xml: 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo6h_oxwe/tmp95y57p55.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 1239s # Return code: 1 1239s # Output: 1239s # 1239s # Error: 1239s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 1239s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 1239s # gdbus-codegen: /usr/bin/gdbus-codegen 1239s # tmpdir: /tmp/tmpd228wgzw 1239s # /tmp/tmpd228wgzw/tmp5nphx4zh.xml: 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd228wgzw/tmp5nphx4zh.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifndef __STDOUT__ 1239s # #define __STDOUT__ 1239s # 1239s # #include 1239s # 1239s # G_BEGIN_DECLS 1239s # 1239s # 1239s # G_END_DECLS 1239s # 1239s # #endif /* __STDOUT__ */ 1239s # Error: 1239s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 1239s # gdbus-codegen: /usr/bin/gdbus-codegen 1239s # tmpdir: /tmp/tmpr1rgwxv3 1239s # /tmp/tmpr1rgwxv3/tmpfmt_7ln_.xml: 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpr1rgwxv3/tmpfmt_7ln_.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifndef __STDOUT__ 1239s # #define __STDOUT__ 1239s # 1239s # #include 1239s # 1239s # G_BEGIN_DECLS 1239s # 1239s # 1239s # G_END_DECLS 1239s # 1239s # #endif /* __STDOUT__ */ 1239s # Error: 1239s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 1239s # gdbus-codegen: /usr/bin/gdbus-codegen 1239s # tmpdir: /tmp/tmpdfq45caa 1239s # /tmp/tmpdfq45caa/tmp4trpjw33.xml: 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdfq45caa/tmp4trpjw33.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 1239s # Return code: 1 1239s # Output: 1239s # 1239s # Error: 1239s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 1239s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 1239s # gdbus-codegen: /usr/bin/gdbus-codegen 1239s # tmpdir: /tmp/tmpprtollpx 1239s # /tmp/tmpprtollpx/tmpx7b7lm8k.xml: 1239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpprtollpx/tmpx7b7lm8k.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 1239s # Return code: 0 1239s # Output: 1239s # /* 1239s # * This file is generated by gdbus-codegen, do not modify it. 1239s # * 1239s # * The license of this code is the same as for the D-Bus interface description 1239s # * it was derived from. Note that it links to GLib, so must comply with the 1239s # * LGPL linking clauses. 1239s # */ 1239s # 1239s # #ifndef __STDOUT__ 1239s # #define __STDOUT__ 1239s # 1239s # #include 1239s # 1239s # G_BEGIN_DECLS 1239s # 1239s # 1239s # G_END_DECLS 1239s # 1239s # #endif /* __STDOUT__ */ 1239s # Error: 1240s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 1240s # gdbus-codegen: /usr/bin/gdbus-codegen 1240s # tmpdir: /tmp/tmpgaxc0ww7 1240s # /tmp/tmpgaxc0ww7/tmptsetvsjr.xml: 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgaxc0ww7/tmptsetvsjr.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 1240s # Return code: 1 1240s # Output: 1240s # 1240s # Error: 1240s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 1240s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 1240s # gdbus-codegen: /usr/bin/gdbus-codegen 1240s # tmpdir: /tmp/tmpzq2duqe1 1240s # /tmp/tmpzq2duqe1/tmp9o_e4ry3.xml: 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzq2duqe1/tmp9o_e4ry3.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 1240s # Return code: 0 1240s # Output: 1240s # /* 1240s # * This file is generated by gdbus-codegen, do not modify it. 1240s # * 1240s # * The license of this code is the same as for the D-Bus interface description 1240s # * it was derived from. Note that it links to GLib, so must comply with the 1240s # * LGPL linking clauses. 1240s # */ 1240s # 1240s # #ifndef __STDOUT__ 1240s # #define __STDOUT__ 1240s # 1240s # #include 1240s # 1240s # G_BEGIN_DECLS 1240s # 1240s # 1240s # G_END_DECLS 1240s # 1240s # #endif /* __STDOUT__ */ 1240s # Error: 1240s ok 35 __main__.TestCodegen.test_help 1240s # gdbus-codegen: /usr/bin/gdbus-codegen 1240s # tmpdir: /tmp/tmpgtoj76a7 1240s # Running: ['/usr/bin/gdbus-codegen', '--help'] 1240s # Return code: 0 1240s # Output: 1240s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1240s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1240s # [--c-generate-autocleanup {none,objects,all}] 1240s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1240s # [--generate-rst OUTFILES] [--pragma-once] 1240s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1240s # [--glib-min-required VERSION] 1240s # [--glib-max-allowed VERSION] 1240s # [--symbol-decorator SYMBOL_DECORATOR] 1240s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1240s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1240s # [--generate-c-code OUTFILES | --header | --body | 1240s # --interface-info-header | --interface-info-body] 1240s # [--output FILE | --output-directory OUTDIR] 1240s # FILE [FILE ...] 1240s # 1240s # D-Bus code and documentation generator 1240s # 1240s # positional arguments: 1240s # FILE D-Bus introspection XML file 1240s # 1240s # options: 1240s # -h, --help show this help message and exit 1240s # --interface-prefix PREFIX 1240s # String to strip from D-Bus interface names for code 1240s # and docs 1240s # --c-namespace NAMESPACE 1240s # The namespace to use for generated C code 1240s # --c-generate-object-manager 1240s # Generate a GDBusObjectManagerClient subclass when 1240s # generating C code 1240s # --c-generate-autocleanup {none,objects,all} 1240s # Generate autocleanup support 1240s # --generate-docbook OUTFILES 1240s # Generate Docbook in OUTFILES-org.Project.IFace.xml 1240s # --generate-md OUTFILES 1240s # Generate Markdown in OUTFILES-org.Project.IFace.md 1240s # --generate-rst OUTFILES 1240s # Generate reStructuredText in OUTFILES- 1240s # org.Project.IFace.rst 1240s # --pragma-once Use "pragma once" as the inclusion guard 1240s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 1240s # Add annotation (may be used several times) 1240s # --glib-min-required VERSION 1240s # Minimum version of GLib to be supported by the 1240s # outputted code (default: 2.30) 1240s # --glib-max-allowed VERSION 1240s # Maximum version of GLib to be used by the outputted 1240s # code (default: current GLib version) 1240s # --symbol-decorator SYMBOL_DECORATOR 1240s # Macro used to decorate a symbol in the outputted 1240s # header, possibly to export symbols 1240s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 1240s # Additional header required for decorator specified by 1240s # --symbol-decorator 1240s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 1240s # Additional define required for decorator specified by 1240s # --symbol-decorator 1240s # --generate-c-code OUTFILES 1240s # Generate C code in OUTFILES.[ch] 1240s # --header Generate C headers 1240s # --body Generate C code 1240s # --interface-info-header 1240s # Generate GDBusInterfaceInfo C header 1240s # --interface-info-body 1240s # Generate GDBusInterfaceInfo C code 1240s # --output FILE Write output into the specified file 1240s # --output-directory OUTDIR 1240s # Location to output generated files 1240s # Error: 1240s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 1240s # gdbus-codegen: /usr/bin/gdbus-codegen 1240s # tmpdir: /tmp/tmpdv1akcxg 1240s # /tmp/tmpdv1akcxg/tmpmeswftuc.xml: 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdv1akcxg/tmpmeswftuc.xml', '--generate-rst', 'test'] 1240s # Return code: 0 1240s # Output: 1240s # 1240s # Error: 1240s # 1240s # /tmp/tmpdv1akcxg/tmp6v368cyg.xml: 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdv1akcxg/tmp6v368cyg.xml', '--generate-md', 'test'] 1240s # Return code: 0 1240s # Output: 1240s # 1240s # Error: 1240s # 1240s # /tmp/tmpdv1akcxg/tmp67ujvtd9.xml: 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdv1akcxg/tmp67ujvtd9.xml', '--generate-docbook', 'test'] 1240s # Return code: 0 1240s # Output: 1240s # 1240s # Error: 1240s ok 37 __main__.TestCodegen.test_no_args 1240s # gdbus-codegen: /usr/bin/gdbus-codegen 1240s # tmpdir: /tmp/tmpeaft6coh 1240s # Running: ['/usr/bin/gdbus-codegen'] 1240s # Return code: 2 1240s # Output: 1240s # 1240s # Error: 1240s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1240s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1240s # [--c-generate-autocleanup {none,objects,all}] 1240s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1240s # [--generate-rst OUTFILES] [--pragma-once] 1240s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1240s # [--glib-min-required VERSION] 1240s # [--glib-max-allowed VERSION] 1240s # [--symbol-decorator SYMBOL_DECORATOR] 1240s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1240s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1240s # [--generate-c-code OUTFILES | --header | --body | 1240s # --interface-info-header | --interface-info-body] 1240s # [--output FILE | --output-directory OUTDIR] 1240s # FILE [FILE ...] 1240s # gdbus-codegen: error: the following arguments are required: FILE 1240s ok 38 __main__.TestCodegen.test_reproducible 1240s # gdbus-codegen: /usr/bin/gdbus-codegen 1240s # tmpdir: /tmp/tmpuwc6tsvb 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuwc6tsvb/tmpp9m9vqsl1.xml', '/tmp/tmpuwc6tsvb/tmp9fi4c2vo2.xml', '--output', '-', '--header'] 1240s # Return code: 0 1240s # Output: 1240s # /* 1240s # * This file is generated by gdbus-codegen, do not modify it. 1240s # * 1240s # * The license of this code is the same as for the D-Bus interface description 1240s # * it was derived from. Note that it links to GLib, so must comply with the 1240s # * LGPL linking clauses. 1240s # */ 1240s # 1240s # #ifndef __STDOUT__ 1240s # #define __STDOUT__ 1240s # 1240s # #include 1240s # 1240s # G_BEGIN_DECLS 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # /* Declarations for org.project.Bar.Frobnicator */ 1240s # 1240s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1240s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1240s # 1240s # struct _OrgProjectBarFrobnicator; 1240s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1240s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1240s # 1240s # struct _OrgProjectBarFrobnicatorIface 1240s # { 1240s # GTypeInterface parent_iface; 1240s # 1240s # gboolean (*handle_random_method) ( 1240s # OrgProjectBarFrobnicator *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # }; 1240s # 1240s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1240s # 1240s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1240s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1240s # 1240s # 1240s # /* D-Bus method call completion functions: */ 1240s # void org_project_bar_frobnicator_complete_random_method ( 1240s # OrgProjectBarFrobnicator *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # 1240s # 1240s # /* D-Bus method calls: */ 1240s # void org_project_bar_frobnicator_call_random_method ( 1240s # OrgProjectBarFrobnicator *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1240s # OrgProjectBarFrobnicator *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1240s # OrgProjectBarFrobnicator *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1240s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1240s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1240s # 1240s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1240s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1240s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1240s # 1240s # struct _OrgProjectBarFrobnicatorProxy 1240s # { 1240s # /*< private >*/ 1240s # GDBusProxy parent_instance; 1240s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1240s # }; 1240s # 1240s # struct _OrgProjectBarFrobnicatorProxyClass 1240s # { 1240s # GDBusProxyClass parent_class; 1240s # }; 1240s # 1240s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1240s # #endif 1240s # 1240s # void org_project_bar_frobnicator_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1240s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1240s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1240s # 1240s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1240s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1240s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1240s # 1240s # struct _OrgProjectBarFrobnicatorSkeleton 1240s # { 1240s # /*< private >*/ 1240s # GDBusInterfaceSkeleton parent_instance; 1240s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1240s # }; 1240s # 1240s # struct _OrgProjectBarFrobnicatorSkeletonClass 1240s # { 1240s # GDBusInterfaceSkeletonClass parent_class; 1240s # }; 1240s # 1240s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1240s # #endif 1240s # 1240s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # /* Declarations for com.acme.Coyote */ 1240s # 1240s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1240s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1240s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1240s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1240s # 1240s # struct _ComAcmeCoyote; 1240s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1240s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1240s # 1240s # struct _ComAcmeCoyoteIface 1240s # { 1240s # GTypeInterface parent_iface; 1240s # 1240s # 1240s # 1240s # gboolean (*handle_attack) ( 1240s # ComAcmeCoyote *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # gboolean (*handle_run) ( 1240s # ComAcmeCoyote *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # gboolean (*handle_sleep) ( 1240s # ComAcmeCoyote *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1240s # 1240s # void (*surprised) ( 1240s # ComAcmeCoyote *object); 1240s # 1240s # }; 1240s # 1240s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1240s # 1240s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1240s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1240s # 1240s # 1240s # /* D-Bus method call completion functions: */ 1240s # void com_acme_coyote_complete_run ( 1240s # ComAcmeCoyote *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # void com_acme_coyote_complete_sleep ( 1240s # ComAcmeCoyote *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # void com_acme_coyote_complete_attack ( 1240s # ComAcmeCoyote *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # 1240s # 1240s # /* D-Bus signal emissions functions: */ 1240s # void com_acme_coyote_emit_surprised ( 1240s # ComAcmeCoyote *object); 1240s # 1240s # 1240s # 1240s # /* D-Bus method calls: */ 1240s # void com_acme_coyote_call_run ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean com_acme_coyote_call_run_finish ( 1240s # ComAcmeCoyote *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean com_acme_coyote_call_run_sync ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void com_acme_coyote_call_sleep ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean com_acme_coyote_call_sleep_finish ( 1240s # ComAcmeCoyote *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean com_acme_coyote_call_sleep_sync ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void com_acme_coyote_call_attack ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean com_acme_coyote_call_attack_finish ( 1240s # ComAcmeCoyote *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean com_acme_coyote_call_attack_sync ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # 1240s # /* D-Bus property accessors: */ 1240s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1240s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1240s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1240s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1240s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1240s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1240s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1240s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1240s # 1240s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1240s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1240s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1240s # 1240s # struct _ComAcmeCoyoteProxy 1240s # { 1240s # /*< private >*/ 1240s # GDBusProxy parent_instance; 1240s # ComAcmeCoyoteProxyPrivate *priv; 1240s # }; 1240s # 1240s # struct _ComAcmeCoyoteProxyClass 1240s # { 1240s # GDBusProxyClass parent_class; 1240s # }; 1240s # 1240s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1240s # #endif 1240s # 1240s # void com_acme_coyote_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void com_acme_coyote_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1240s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1240s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1240s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1240s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1240s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1240s # 1240s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1240s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1240s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1240s # 1240s # struct _ComAcmeCoyoteSkeleton 1240s # { 1240s # /*< private >*/ 1240s # GDBusInterfaceSkeleton parent_instance; 1240s # ComAcmeCoyoteSkeletonPrivate *priv; 1240s # }; 1240s # 1240s # struct _ComAcmeCoyoteSkeletonClass 1240s # { 1240s # GDBusInterfaceSkeletonClass parent_class; 1240s # }; 1240s # 1240s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1240s # #endif 1240s # 1240s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1240s # 1240s # 1240s # G_END_DECLS 1240s # 1240s # #endif /* __STDOUT__ */ 1240s # Error: 1240s # 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuwc6tsvb/tmp9fi4c2vo2.xml', '/tmp/tmpuwc6tsvb/tmpp9m9vqsl1.xml', '--output', '-', '--header'] 1240s # Return code: 0 1240s # Output: 1240s # /* 1240s # * This file is generated by gdbus-codegen, do not modify it. 1240s # * 1240s # * The license of this code is the same as for the D-Bus interface description 1240s # * it was derived from. Note that it links to GLib, so must comply with the 1240s # * LGPL linking clauses. 1240s # */ 1240s # 1240s # #ifndef __STDOUT__ 1240s # #define __STDOUT__ 1240s # 1240s # #include 1240s # 1240s # G_BEGIN_DECLS 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # /* Declarations for org.project.Bar.Frobnicator */ 1240s # 1240s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1240s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1240s # 1240s # struct _OrgProjectBarFrobnicator; 1240s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1240s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1240s # 1240s # struct _OrgProjectBarFrobnicatorIface 1240s # { 1240s # GTypeInterface parent_iface; 1240s # 1240s # gboolean (*handle_random_method) ( 1240s # OrgProjectBarFrobnicator *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # }; 1240s # 1240s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1240s # 1240s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1240s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1240s # 1240s # 1240s # /* D-Bus method call completion functions: */ 1240s # void org_project_bar_frobnicator_complete_random_method ( 1240s # OrgProjectBarFrobnicator *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # 1240s # 1240s # /* D-Bus method calls: */ 1240s # void org_project_bar_frobnicator_call_random_method ( 1240s # OrgProjectBarFrobnicator *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1240s # OrgProjectBarFrobnicator *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1240s # OrgProjectBarFrobnicator *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1240s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1240s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1240s # 1240s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1240s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1240s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1240s # 1240s # struct _OrgProjectBarFrobnicatorProxy 1240s # { 1240s # /*< private >*/ 1240s # GDBusProxy parent_instance; 1240s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1240s # }; 1240s # 1240s # struct _OrgProjectBarFrobnicatorProxyClass 1240s # { 1240s # GDBusProxyClass parent_class; 1240s # }; 1240s # 1240s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1240s # #endif 1240s # 1240s # void org_project_bar_frobnicator_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1240s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1240s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1240s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1240s # 1240s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1240s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1240s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1240s # 1240s # struct _OrgProjectBarFrobnicatorSkeleton 1240s # { 1240s # /*< private >*/ 1240s # GDBusInterfaceSkeleton parent_instance; 1240s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1240s # }; 1240s # 1240s # struct _OrgProjectBarFrobnicatorSkeletonClass 1240s # { 1240s # GDBusInterfaceSkeletonClass parent_class; 1240s # }; 1240s # 1240s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1240s # #endif 1240s # 1240s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # /* Declarations for com.acme.Coyote */ 1240s # 1240s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1240s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1240s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1240s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1240s # 1240s # struct _ComAcmeCoyote; 1240s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1240s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1240s # 1240s # struct _ComAcmeCoyoteIface 1240s # { 1240s # GTypeInterface parent_iface; 1240s # 1240s # 1240s # 1240s # gboolean (*handle_attack) ( 1240s # ComAcmeCoyote *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # gboolean (*handle_run) ( 1240s # ComAcmeCoyote *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # gboolean (*handle_sleep) ( 1240s # ComAcmeCoyote *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1240s # 1240s # void (*surprised) ( 1240s # ComAcmeCoyote *object); 1240s # 1240s # }; 1240s # 1240s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1240s # 1240s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1240s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1240s # 1240s # 1240s # /* D-Bus method call completion functions: */ 1240s # void com_acme_coyote_complete_run ( 1240s # ComAcmeCoyote *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # void com_acme_coyote_complete_sleep ( 1240s # ComAcmeCoyote *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # void com_acme_coyote_complete_attack ( 1240s # ComAcmeCoyote *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # 1240s # 1240s # /* D-Bus signal emissions functions: */ 1240s # void com_acme_coyote_emit_surprised ( 1240s # ComAcmeCoyote *object); 1240s # 1240s # 1240s # 1240s # /* D-Bus method calls: */ 1240s # void com_acme_coyote_call_run ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean com_acme_coyote_call_run_finish ( 1240s # ComAcmeCoyote *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean com_acme_coyote_call_run_sync ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void com_acme_coyote_call_sleep ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean com_acme_coyote_call_sleep_finish ( 1240s # ComAcmeCoyote *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean com_acme_coyote_call_sleep_sync ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void com_acme_coyote_call_attack ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean com_acme_coyote_call_attack_finish ( 1240s # ComAcmeCoyote *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean com_acme_coyote_call_attack_sync ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # 1240s # /* D-Bus property accessors: */ 1240s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1240s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1240s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1240s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1240s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1240s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1240s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1240s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1240s # 1240s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1240s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1240s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1240s # 1240s # struct _ComAcmeCoyoteProxy 1240s # { 1240s # /*< private >*/ 1240s # GDBusProxy parent_instance; 1240s # ComAcmeCoyoteProxyPrivate *priv; 1240s # }; 1240s # 1240s # struct _ComAcmeCoyoteProxyClass 1240s # { 1240s # GDBusProxyClass parent_class; 1240s # }; 1240s # 1240s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1240s # #endif 1240s # 1240s # void com_acme_coyote_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void com_acme_coyote_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1240s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1240s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1240s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1240s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1240s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1240s # 1240s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1240s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1240s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1240s # 1240s # struct _ComAcmeCoyoteSkeleton 1240s # { 1240s # /*< private >*/ 1240s # GDBusInterfaceSkeleton parent_instance; 1240s # ComAcmeCoyoteSkeletonPrivate *priv; 1240s # }; 1240s # 1240s # struct _ComAcmeCoyoteSkeletonClass 1240s # { 1240s # GDBusInterfaceSkeletonClass parent_class; 1240s # }; 1240s # 1240s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1240s # #endif 1240s # 1240s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1240s # 1240s # 1240s # G_END_DECLS 1240s # 1240s # #endif /* __STDOUT__ */ 1240s # Error: 1240s # 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuwc6tsvb/tmpp9m9vqsl1.xml', '/tmp/tmpuwc6tsvb/tmp9fi4c2vo2.xml', '--output', '-', '--body'] 1240s # Return code: 0 1240s # Output: 1240s # /* 1240s # * This file is generated by gdbus-codegen, do not modify it. 1240s # * 1240s # * The license of this code is the same as for the D-Bus interface description 1240s # * it was derived from. Note that it links to GLib, so must comply with the 1240s # * LGPL linking clauses. 1240s # */ 1240s # 1240s # #ifdef HAVE_CONFIG_H 1240s # # include "config.h" 1240s # #endif 1240s # 1240s # #include 1240s # #ifdef G_OS_UNIX 1240s # # include 1240s # #endif 1240s # 1240s # #ifdef G_ENABLE_DEBUG 1240s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1240s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1240s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1240s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1240s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1240s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1240s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1240s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1240s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1240s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1240s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1240s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1240s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1240s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1240s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1240s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1240s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1240s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1240s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1240s # #else /* !G_ENABLE_DEBUG */ 1240s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1240s # * Do not access GValues directly in your code. Instead, use the 1240s # * g_value_get_*() functions 1240s # */ 1240s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1240s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1240s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1240s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1240s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1240s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1240s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1240s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1240s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1240s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1240s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1240s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1240s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1240s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1240s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1240s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1240s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1240s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1240s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1240s # #endif /* !G_ENABLE_DEBUG */ 1240s # 1240s # typedef struct 1240s # { 1240s # GDBusArgInfo parent_struct; 1240s # gboolean use_gvariant; 1240s # } _ExtendedGDBusArgInfo; 1240s # 1240s # typedef struct 1240s # { 1240s # GDBusMethodInfo parent_struct; 1240s # const gchar *signal_name; 1240s # gboolean pass_fdlist; 1240s # } _ExtendedGDBusMethodInfo; 1240s # 1240s # typedef struct 1240s # { 1240s # GDBusSignalInfo parent_struct; 1240s # const gchar *signal_name; 1240s # } _ExtendedGDBusSignalInfo; 1240s # 1240s # typedef struct 1240s # { 1240s # GDBusPropertyInfo parent_struct; 1240s # const gchar *hyphen_name; 1240s # guint use_gvariant : 1; 1240s # guint emits_changed_signal : 1; 1240s # } _ExtendedGDBusPropertyInfo; 1240s # 1240s # typedef struct 1240s # { 1240s # GDBusInterfaceInfo parent_struct; 1240s # const gchar *hyphen_name; 1240s # } _ExtendedGDBusInterfaceInfo; 1240s # 1240s # typedef struct 1240s # { 1240s # const _ExtendedGDBusPropertyInfo *info; 1240s # guint prop_id; 1240s # GValue orig_value; /* the value before the change */ 1240s # } ChangedProperty; 1240s # 1240s # static void 1240s # _changed_property_free (ChangedProperty *data) 1240s # { 1240s # g_value_unset (&data->orig_value); 1240s # g_free (data); 1240s # } 1240s # 1240s # static gboolean 1240s # _g_strv_equal0 (gchar **a, gchar **b) 1240s # { 1240s # gboolean ret = FALSE; 1240s # guint n; 1240s # if (a == NULL && b == NULL) 1240s # { 1240s # ret = TRUE; 1240s # goto out; 1240s # } 1240s # if (a == NULL || b == NULL) 1240s # goto out; 1240s # if (g_strv_length (a) != g_strv_length (b)) 1240s # goto out; 1240s # for (n = 0; a[n] != NULL; n++) 1240s # if (g_strcmp0 (a[n], b[n]) != 0) 1240s # goto out; 1240s # ret = TRUE; 1240s # out: 1240s # return ret; 1240s # } 1240s # 1240s # static gboolean 1240s # _g_variant_equal0 (GVariant *a, GVariant *b) 1240s # { 1240s # gboolean ret = FALSE; 1240s # if (a == NULL && b == NULL) 1240s # { 1240s # ret = TRUE; 1240s # goto out; 1240s # } 1240s # if (a == NULL || b == NULL) 1240s # goto out; 1240s # ret = g_variant_equal (a, b); 1240s # out: 1240s # return ret; 1240s # } 1240s # 1240s # G_GNUC_UNUSED static gboolean 1240s # _g_value_equal (const GValue *a, const GValue *b) 1240s # { 1240s # gboolean ret = FALSE; 1240s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1240s # switch (G_VALUE_TYPE (a)) 1240s # { 1240s # case G_TYPE_BOOLEAN: 1240s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1240s # break; 1240s # case G_TYPE_UCHAR: 1240s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1240s # break; 1240s # case G_TYPE_INT: 1240s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1240s # break; 1240s # case G_TYPE_UINT: 1240s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1240s # break; 1240s # case G_TYPE_INT64: 1240s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1240s # break; 1240s # case G_TYPE_UINT64: 1240s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1240s # break; 1240s # case G_TYPE_DOUBLE: 1240s # { 1240s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1240s # gdouble da = g_value_get_double (a); 1240s # gdouble db = g_value_get_double (b); 1240s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1240s # } 1240s # break; 1240s # case G_TYPE_STRING: 1240s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1240s # break; 1240s # case G_TYPE_VARIANT: 1240s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1240s # break; 1240s # default: 1240s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1240s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1240s # else 1240s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1240s # break; 1240s # } 1240s # return ret; 1240s # } 1240s # 1240s # static void 1240s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1240s # GClosure *closure, 1240s # GValue *return_value, 1240s # unsigned int n_param_values, 1240s # const GValue *param_values, 1240s # void *invocation_hint G_GNUC_UNUSED, 1240s # void *marshal_data) 1240s # { 1240s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1240s # (void *data1, 1240s # GDBusMethodInvocation *arg_method_invocation, 1240s # void *data2); 1240s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1240s # GCClosure *cc = (GCClosure*) closure; 1240s # void *data1, *data2; 1240s # gboolean v_return; 1240s # 1240s # g_return_if_fail (return_value != NULL); 1240s # g_return_if_fail (n_param_values == 2); 1240s # 1240s # if (G_CCLOSURE_SWAP_DATA (closure)) 1240s # { 1240s # data1 = closure->data; 1240s # data2 = g_value_peek_pointer (param_values + 0); 1240s # } 1240s # else 1240s # { 1240s # data1 = g_value_peek_pointer (param_values + 0); 1240s # data2 = closure->data; 1240s # } 1240s # 1240s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1240s # (marshal_data ? marshal_data : cc->callback); 1240s # 1240s # v_return = 1240s # callback (data1, 1240s # g_marshal_value_peek_object (param_values + 1), 1240s # data2); 1240s # 1240s # g_value_set_boolean (return_value, v_return); 1240s # } 1240s # 1240s # /* ------------------------------------------------------------------------ 1240s # * Code for interface org.project.Bar.Frobnicator 1240s # * ------------------------------------------------------------------------ 1240s # */ 1240s # 1240s # /** 1240s # * SECTION:OrgProjectBarFrobnicator 1240s # * @title: OrgProjectBarFrobnicator 1240s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1240s # * 1240s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1240s # */ 1240s # 1240s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1240s # 1240s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "RandomMethod", 1240s # NULL, 1240s # NULL, 1240s # NULL 1240s # }, 1240s # "handle-random-method", 1240s # FALSE 1240s # }; 1240s # 1240s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1240s # { 1240s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1240s # NULL 1240s # }; 1240s # 1240s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "org.project.Bar.Frobnicator", 1240s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1240s # NULL, 1240s # NULL, 1240s # NULL 1240s # }, 1240s # "org-project-bar-frobnicator", 1240s # }; 1240s # 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_interface_info: 1240s # * 1240s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1240s # * 1240s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1240s # */ 1240s # GDBusInterfaceInfo * 1240s # org_project_bar_frobnicator_interface_info (void) 1240s # { 1240s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_override_properties: 1240s # * @klass: The class structure for a #GObject derived class. 1240s # * @property_id_begin: The property id to assign to the first overridden property. 1240s # * 1240s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1240s # * The properties are overridden in the order they are defined. 1240s # * 1240s # * Returns: The last property id. 1240s # */ 1240s # guint 1240s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1240s # { 1240s # return property_id_begin - 1; 1240s # } 1240s # 1240s # 1240s # inline static void 1240s # org_project_bar_frobnicator_method_marshal_random_method ( 1240s # GClosure *closure, 1240s # GValue *return_value, 1240s # unsigned int n_param_values, 1240s # const GValue *param_values, 1240s # void *invocation_hint, 1240s # void *marshal_data) 1240s # { 1240s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1240s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1240s # } 1240s # 1240s # 1240s # /** 1240s # * OrgProjectBarFrobnicator: 1240s # * 1240s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1240s # */ 1240s # 1240s # /** 1240s # * OrgProjectBarFrobnicatorIface: 1240s # * @parent_iface: The parent interface. 1240s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1240s # * 1240s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1240s # */ 1240s # 1240s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1240s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1240s # { 1240s # /* GObject signals for incoming D-Bus method calls: */ 1240s # /** 1240s # * OrgProjectBarFrobnicator::handle-random-method: 1240s # * @object: A #OrgProjectBarFrobnicator. 1240s # * @invocation: A #GDBusMethodInvocation. 1240s # * 1240s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1240s # * 1240s # * 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. 1240s # * 1240s # * 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. 1240s # */ 1240s # g_signal_new ("handle-random-method", 1240s # G_TYPE_FROM_INTERFACE (iface), 1240s # G_SIGNAL_RUN_LAST, 1240s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1240s # g_signal_accumulator_true_handled, 1240s # NULL, 1240s # org_project_bar_frobnicator_method_marshal_random_method, 1240s # G_TYPE_BOOLEAN, 1240s # 1, 1240s # G_TYPE_DBUS_METHOD_INVOCATION); 1240s # 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_call_random_method: 1240s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1240s # * 1240s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1240s # */ 1240s # void 1240s # org_project_bar_frobnicator_call_random_method ( 1240s # OrgProjectBarFrobnicator *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1240s # "RandomMethod", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # callback, 1240s # user_data); 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_call_random_method_finish: 1240s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # org_project_bar_frobnicator_call_random_method_finish ( 1240s # OrgProjectBarFrobnicator *proxy, 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_call_random_method_sync: 1240s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1240s # * 1240s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # org_project_bar_frobnicator_call_random_method_sync ( 1240s # OrgProjectBarFrobnicator *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1240s # "RandomMethod", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_complete_random_method: 1240s # * @object: A #OrgProjectBarFrobnicator. 1240s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1240s # * 1240s # * 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. 1240s # * 1240s # * This method will free @invocation, you cannot use it afterwards. 1240s # */ 1240s # void 1240s # org_project_bar_frobnicator_complete_random_method ( 1240s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1240s # GDBusMethodInvocation *invocation) 1240s # { 1240s # g_dbus_method_invocation_return_value (invocation, 1240s # g_variant_new ("()")); 1240s # } 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # 1240s # /** 1240s # * OrgProjectBarFrobnicatorProxy: 1240s # * 1240s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1240s # */ 1240s # 1240s # /** 1240s # * OrgProjectBarFrobnicatorProxyClass: 1240s # * @parent_class: The parent class. 1240s # * 1240s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1240s # */ 1240s # 1240s # struct _OrgProjectBarFrobnicatorProxyPrivate 1240s # { 1240s # GData *qdata; 1240s # }; 1240s # 1240s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1240s # 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1240s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1240s # 1240s # #else 1240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1240s # 1240s # #endif 1240s # static void 1240s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1240s # { 1240s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1240s # g_datalist_clear (&proxy->priv->qdata); 1240s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1240s # guint prop_id G_GNUC_UNUSED, 1240s # GValue *value G_GNUC_UNUSED, 1240s # GParamSpec *pspec G_GNUC_UNUSED) 1240s # { 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1240s # guint prop_id G_GNUC_UNUSED, 1240s # const GValue *value G_GNUC_UNUSED, 1240s # GParamSpec *pspec G_GNUC_UNUSED) 1240s # { 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1240s # const gchar *sender_name G_GNUC_UNUSED, 1240s # const gchar *signal_name, 1240s # GVariant *parameters) 1240s # { 1240s # _ExtendedGDBusSignalInfo *info; 1240s # GVariantIter iter; 1240s # GVariant *child; 1240s # GValue *paramv; 1240s # gsize num_params; 1240s # gsize n; 1240s # guint signal_id; 1240s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1240s # if (info == NULL) 1240s # return; 1240s # num_params = g_variant_n_children (parameters); 1240s # paramv = g_new0 (GValue, num_params + 1); 1240s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1240s # g_value_set_object (¶mv[0], proxy); 1240s # g_variant_iter_init (&iter, parameters); 1240s # n = 1; 1240s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1240s # { 1240s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1240s # if (arg_info->use_gvariant) 1240s # { 1240s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1240s # g_value_set_variant (¶mv[n], child); 1240s # n++; 1240s # } 1240s # else 1240s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1240s # g_variant_unref (child); 1240s # } 1240s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1240s # g_signal_emitv (paramv, signal_id, 0, NULL); 1240s # for (n = 0; n < num_params + 1; n++) 1240s # g_value_unset (¶mv[n]); 1240s # g_free (paramv); 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1240s # GVariant *changed_properties, 1240s # const gchar *const *invalidated_properties) 1240s # { 1240s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1240s # guint n; 1240s # const gchar *key; 1240s # GVariantIter *iter; 1240s # _ExtendedGDBusPropertyInfo *info; 1240s # g_variant_get (changed_properties, "a{sv}", &iter); 1240s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1240s # { 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1240s # g_datalist_remove_data (&proxy->priv->qdata, key); 1240s # if (info != NULL) 1240s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1240s # } 1240s # g_variant_iter_free (iter); 1240s # for (n = 0; invalidated_properties[n] != NULL; n++) 1240s # { 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1240s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1240s # if (info != NULL) 1240s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1240s # } 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1240s # { 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1240s # #else 1240s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1240s # #endif 1240s # 1240s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1240s # { 1240s # GObjectClass *gobject_class; 1240s # GDBusProxyClass *proxy_class; 1240s # 1240s # gobject_class = G_OBJECT_CLASS (klass); 1240s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1240s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1240s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1240s # 1240s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1240s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1240s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1240s # 1240s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1240s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1240s # #endif 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1240s # { 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_proxy_new: 1240s # * @connection: A #GDBusConnection. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1240s # * 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1240s # * 1240s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1240s # */ 1240s # void 1240s # org_project_bar_frobnicator_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # 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); 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_proxy_new_finish: 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1240s # * 1240s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # OrgProjectBarFrobnicator * 1240s # org_project_bar_frobnicator_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GObject *ret; 1240s # GObject *source_object; 1240s # source_object = g_async_result_get_source_object (res); 1240s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1240s # g_object_unref (source_object); 1240s # if (ret != NULL) 1240s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_proxy_new_sync: 1240s # * @connection: A #GDBusConnection. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1240s # * 1240s # * The calling thread is blocked until a reply is received. 1240s # * 1240s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1240s # * 1240s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # OrgProjectBarFrobnicator * 1240s # org_project_bar_frobnicator_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GInitable *ret; 1240s # 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); 1240s # if (ret != NULL) 1240s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_proxy_new_for_bus: 1240s # * @bus_type: A #GBusType. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: A bus name (well-known or unique). 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1240s # * 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1240s # * 1240s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1240s # */ 1240s # void 1240s # org_project_bar_frobnicator_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # 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); 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1240s # * 1240s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # OrgProjectBarFrobnicator * 1240s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GObject *ret; 1240s # GObject *source_object; 1240s # source_object = g_async_result_get_source_object (res); 1240s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1240s # g_object_unref (source_object); 1240s # if (ret != NULL) 1240s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1240s # * @bus_type: A #GBusType. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: A bus name (well-known or unique). 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1240s # * 1240s # * The calling thread is blocked until a reply is received. 1240s # * 1240s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1240s # * 1240s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # OrgProjectBarFrobnicator * 1240s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GInitable *ret; 1240s # 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); 1240s # if (ret != NULL) 1240s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # 1240s # /** 1240s # * OrgProjectBarFrobnicatorSkeleton: 1240s # * 1240s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1240s # */ 1240s # 1240s # /** 1240s # * OrgProjectBarFrobnicatorSkeletonClass: 1240s # * @parent_class: The parent class. 1240s # * 1240s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1240s # */ 1240s # 1240s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1240s # { 1240s # GValue *properties; 1240s # GList *changed_properties; 1240s # GSource *changed_properties_idle_source; 1240s # GMainContext *context; 1240s # GMutex lock; 1240s # }; 1240s # 1240s # static void 1240s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1240s # GDBusConnection *connection G_GNUC_UNUSED, 1240s # const gchar *sender G_GNUC_UNUSED, 1240s # const gchar *object_path G_GNUC_UNUSED, 1240s # const gchar *interface_name, 1240s # const gchar *method_name, 1240s # GVariant *parameters, 1240s # GDBusMethodInvocation *invocation, 1240s # gpointer user_data) 1240s # { 1240s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1240s # _ExtendedGDBusMethodInfo *info; 1240s # GVariantIter iter; 1240s # GVariant *child; 1240s # GValue *paramv; 1240s # gsize num_params; 1240s # guint num_extra; 1240s # gsize n; 1240s # guint signal_id; 1240s # GValue return_value = G_VALUE_INIT; 1240s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1240s # g_assert (info != NULL); 1240s # num_params = g_variant_n_children (parameters); 1240s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1240s # n = 0; 1240s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1240s # g_value_set_object (¶mv[n++], skeleton); 1240s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1240s # g_value_set_object (¶mv[n++], invocation); 1240s # if (info->pass_fdlist) 1240s # { 1240s # #ifdef G_OS_UNIX 1240s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1240s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1240s # #else 1240s # g_assert_not_reached (); 1240s # #endif 1240s # } 1240s # g_variant_iter_init (&iter, parameters); 1240s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1240s # { 1240s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1240s # if (arg_info->use_gvariant) 1240s # { 1240s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1240s # g_value_set_variant (¶mv[n], child); 1240s # n++; 1240s # } 1240s # else 1240s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1240s # g_variant_unref (child); 1240s # } 1240s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1240s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1240s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1240s # if (!g_value_get_boolean (&return_value)) 1240s # 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); 1240s # g_value_unset (&return_value); 1240s # for (n = 0; n < num_params + num_extra; n++) 1240s # g_value_unset (¶mv[n]); 1240s # g_free (paramv); 1240s # } 1240s # 1240s # static GVariant * 1240s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1240s # GDBusConnection *connection G_GNUC_UNUSED, 1240s # const gchar *sender G_GNUC_UNUSED, 1240s # const gchar *object_path G_GNUC_UNUSED, 1240s # const gchar *interface_name G_GNUC_UNUSED, 1240s # const gchar *property_name, 1240s # GError **error, 1240s # gpointer user_data) 1240s # { 1240s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1240s # GValue value = G_VALUE_INIT; 1240s # GParamSpec *pspec; 1240s # _ExtendedGDBusPropertyInfo *info; 1240s # GVariant *ret; 1240s # ret = NULL; 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1240s # g_assert (info != NULL); 1240s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1240s # if (pspec == NULL) 1240s # { 1240s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1240s # } 1240s # else 1240s # { 1240s # g_value_init (&value, pspec->value_type); 1240s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1240s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1240s # g_value_unset (&value); 1240s # } 1240s # return ret; 1240s # } 1240s # 1240s # static gboolean 1240s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1240s # GDBusConnection *connection G_GNUC_UNUSED, 1240s # const gchar *sender G_GNUC_UNUSED, 1240s # const gchar *object_path G_GNUC_UNUSED, 1240s # const gchar *interface_name G_GNUC_UNUSED, 1240s # const gchar *property_name, 1240s # GVariant *variant, 1240s # GError **error, 1240s # gpointer user_data) 1240s # { 1240s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1240s # GValue value = G_VALUE_INIT; 1240s # GParamSpec *pspec; 1240s # _ExtendedGDBusPropertyInfo *info; 1240s # gboolean ret; 1240s # ret = FALSE; 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1240s # g_assert (info != NULL); 1240s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1240s # if (pspec == NULL) 1240s # { 1240s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1240s # } 1240s # else 1240s # { 1240s # if (info->use_gvariant) 1240s # g_value_set_variant (&value, variant); 1240s # else 1240s # g_dbus_gvariant_to_gvalue (variant, &value); 1240s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1240s # g_value_unset (&value); 1240s # ret = TRUE; 1240s # } 1240s # return ret; 1240s # } 1240s # 1240s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1240s # { 1240s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1240s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1240s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1240s # {NULL} 1240s # }; 1240s # 1240s # static GDBusInterfaceInfo * 1240s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1240s # { 1240s # return org_project_bar_frobnicator_interface_info (); 1240s # } 1240s # 1240s # static GDBusInterfaceVTable * 1240s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1240s # { 1240s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1240s # } 1240s # 1240s # static GVariant * 1240s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1240s # { 1240s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1240s # 1240s # GVariantBuilder builder; 1240s # guint n; 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1240s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1240s # #else 1240s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1240s # #endif 1240s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1240s # goto out; 1240s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1240s # { 1240s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1240s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1240s # { 1240s # GVariant *value; 1240s # 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); 1240s # if (value != NULL) 1240s # { 1240s # g_variant_take_ref (value); 1240s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1240s # g_variant_unref (value); 1240s # } 1240s # } 1240s # } 1240s # out: 1240s # return g_variant_builder_end (&builder); 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1240s # { 1240s # } 1240s # 1240s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1240s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1240s # 1240s # #else 1240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1240s # 1240s # #endif 1240s # static void 1240s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1240s # { 1240s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1240s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1240s # if (skeleton->priv->changed_properties_idle_source != NULL) 1240s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1240s # g_main_context_unref (skeleton->priv->context); 1240s # g_mutex_clear (&skeleton->priv->lock); 1240s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1240s # { 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1240s # #else 1240s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1240s # #endif 1240s # 1240s # g_mutex_init (&skeleton->priv->lock); 1240s # skeleton->priv->context = g_main_context_ref_thread_default (); 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1240s # { 1240s # GObjectClass *gobject_class; 1240s # GDBusInterfaceSkeletonClass *skeleton_class; 1240s # 1240s # gobject_class = G_OBJECT_CLASS (klass); 1240s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1240s # 1240s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1240s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1240s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1240s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1240s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1240s # 1240s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1240s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1240s # #endif 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1240s # { 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_skeleton_new: 1240s # * 1240s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1240s # * 1240s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1240s # */ 1240s # OrgProjectBarFrobnicator * 1240s # org_project_bar_frobnicator_skeleton_new (void) 1240s # { 1240s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1240s # } 1240s # 1240s # /* ------------------------------------------------------------------------ 1240s # * Code for interface com.acme.Coyote 1240s # * ------------------------------------------------------------------------ 1240s # */ 1240s # 1240s # /** 1240s # * SECTION:ComAcmeCoyote 1240s # * @title: ComAcmeCoyote 1240s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1240s # * 1240s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1240s # */ 1240s # 1240s # enum 1240s # { 1240s # _COM_ACME_COYOTE_SURPRISED, 1240s # }; 1240s # 1240s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1240s # 1240s # /* ---- Introspection data for com.acme.Coyote ---- */ 1240s # 1240s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "Run", 1240s # NULL, 1240s # NULL, 1240s # NULL 1240s # }, 1240s # "handle-run", 1240s # FALSE 1240s # }; 1240s # 1240s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "Sleep", 1240s # NULL, 1240s # NULL, 1240s # NULL 1240s # }, 1240s # "handle-sleep", 1240s # FALSE 1240s # }; 1240s # 1240s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "Attack", 1240s # NULL, 1240s # NULL, 1240s # NULL 1240s # }, 1240s # "handle-attack", 1240s # FALSE 1240s # }; 1240s # 1240s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1240s # { 1240s # &_com_acme_coyote_method_info_run.parent_struct, 1240s # &_com_acme_coyote_method_info_sleep.parent_struct, 1240s # &_com_acme_coyote_method_info_attack.parent_struct, 1240s # NULL 1240s # }; 1240s # 1240s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "Surprised", 1240s # NULL, 1240s # NULL 1240s # }, 1240s # "surprised" 1240s # }; 1240s # 1240s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1240s # { 1240s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1240s # NULL 1240s # }; 1240s # 1240s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "Mood", 1240s # (gchar *) "s", 1240s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1240s # NULL 1240s # }, 1240s # "mood", 1240s # FALSE, 1240s # TRUE 1240s # }; 1240s # 1240s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1240s # { 1240s # &_com_acme_coyote_property_info_mood.parent_struct, 1240s # NULL 1240s # }; 1240s # 1240s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "com.acme.Coyote", 1240s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1240s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1240s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1240s # NULL 1240s # }, 1240s # "com-acme-coyote", 1240s # }; 1240s # 1240s # 1240s # /** 1240s # * com_acme_coyote_interface_info: 1240s # * 1240s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1240s # * 1240s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1240s # */ 1240s # GDBusInterfaceInfo * 1240s # com_acme_coyote_interface_info (void) 1240s # { 1240s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_override_properties: 1240s # * @klass: The class structure for a #GObject derived class. 1240s # * @property_id_begin: The property id to assign to the first overridden property. 1240s # * 1240s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1240s # * The properties are overridden in the order they are defined. 1240s # * 1240s # * Returns: The last property id. 1240s # */ 1240s # guint 1240s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1240s # { 1240s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1240s # return property_id_begin - 1; 1240s # } 1240s # 1240s # 1240s # inline static void 1240s # com_acme_coyote_signal_marshal_surprised ( 1240s # GClosure *closure, 1240s # GValue *return_value, 1240s # unsigned int n_param_values, 1240s # const GValue *param_values, 1240s # void *invocation_hint, 1240s # void *marshal_data) 1240s # { 1240s # g_cclosure_marshal_VOID__VOID (closure, 1240s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1240s # } 1240s # 1240s # inline static void 1240s # com_acme_coyote_method_marshal_run ( 1240s # GClosure *closure, 1240s # GValue *return_value, 1240s # unsigned int n_param_values, 1240s # const GValue *param_values, 1240s # void *invocation_hint, 1240s # void *marshal_data) 1240s # { 1240s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1240s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1240s # } 1240s # 1240s # inline static void 1240s # com_acme_coyote_method_marshal_sleep ( 1240s # GClosure *closure, 1240s # GValue *return_value, 1240s # unsigned int n_param_values, 1240s # const GValue *param_values, 1240s # void *invocation_hint, 1240s # void *marshal_data) 1240s # { 1240s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1240s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1240s # } 1240s # 1240s # inline static void 1240s # com_acme_coyote_method_marshal_attack ( 1240s # GClosure *closure, 1240s # GValue *return_value, 1240s # unsigned int n_param_values, 1240s # const GValue *param_values, 1240s # void *invocation_hint, 1240s # void *marshal_data) 1240s # { 1240s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1240s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1240s # } 1240s # 1240s # 1240s # /** 1240s # * ComAcmeCoyote: 1240s # * 1240s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1240s # */ 1240s # 1240s # /** 1240s # * ComAcmeCoyoteIface: 1240s # * @parent_iface: The parent interface. 1240s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1240s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1240s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1240s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1240s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1240s # * 1240s # * Virtual table for the D-Bus interface com.acme.Coyote. 1240s # */ 1240s # 1240s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1240s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1240s # 1240s # static void 1240s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1240s # { 1240s # /* GObject signals for incoming D-Bus method calls: */ 1240s # /** 1240s # * ComAcmeCoyote::handle-run: 1240s # * @object: A #ComAcmeCoyote. 1240s # * @invocation: A #GDBusMethodInvocation. 1240s # * 1240s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1240s # * 1240s # * 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. 1240s # * 1240s # * 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. 1240s # */ 1240s # g_signal_new ("handle-run", 1240s # G_TYPE_FROM_INTERFACE (iface), 1240s # G_SIGNAL_RUN_LAST, 1240s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1240s # g_signal_accumulator_true_handled, 1240s # NULL, 1240s # com_acme_coyote_method_marshal_run, 1240s # G_TYPE_BOOLEAN, 1240s # 1, 1240s # G_TYPE_DBUS_METHOD_INVOCATION); 1240s # 1240s # /** 1240s # * ComAcmeCoyote::handle-sleep: 1240s # * @object: A #ComAcmeCoyote. 1240s # * @invocation: A #GDBusMethodInvocation. 1240s # * 1240s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1240s # * 1240s # * 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. 1240s # * 1240s # * 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. 1240s # */ 1240s # g_signal_new ("handle-sleep", 1240s # G_TYPE_FROM_INTERFACE (iface), 1240s # G_SIGNAL_RUN_LAST, 1240s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1240s # g_signal_accumulator_true_handled, 1240s # NULL, 1240s # com_acme_coyote_method_marshal_sleep, 1240s # G_TYPE_BOOLEAN, 1240s # 1, 1240s # G_TYPE_DBUS_METHOD_INVOCATION); 1240s # 1240s # /** 1240s # * ComAcmeCoyote::handle-attack: 1240s # * @object: A #ComAcmeCoyote. 1240s # * @invocation: A #GDBusMethodInvocation. 1240s # * 1240s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1240s # * 1240s # * 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. 1240s # * 1240s # * 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. 1240s # */ 1240s # g_signal_new ("handle-attack", 1240s # G_TYPE_FROM_INTERFACE (iface), 1240s # G_SIGNAL_RUN_LAST, 1240s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1240s # g_signal_accumulator_true_handled, 1240s # NULL, 1240s # com_acme_coyote_method_marshal_attack, 1240s # G_TYPE_BOOLEAN, 1240s # 1, 1240s # G_TYPE_DBUS_METHOD_INVOCATION); 1240s # 1240s # /* GObject signals for received D-Bus signals: */ 1240s # /** 1240s # * ComAcmeCoyote::surprised: 1240s # * @object: A #ComAcmeCoyote. 1240s # * 1240s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1240s # * 1240s # * 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. 1240s # */ 1240s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1240s # g_signal_new ("surprised", 1240s # G_TYPE_FROM_INTERFACE (iface), 1240s # G_SIGNAL_RUN_LAST, 1240s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1240s # NULL, 1240s # NULL, 1240s # com_acme_coyote_signal_marshal_surprised, 1240s # G_TYPE_NONE, 1240s # 0); 1240s # 1240s # /* GObject properties for D-Bus properties: */ 1240s # /** 1240s # * ComAcmeCoyote:mood: 1240s # * 1240s # * Represents the D-Bus property "Mood". 1240s # * 1240s # * 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. 1240s # */ 1240s # g_object_interface_install_property (iface, 1240s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_get_mood: (skip) 1240s # * @object: A #ComAcmeCoyote. 1240s # * 1240s # * Gets the value of the "Mood" D-Bus property. 1240s # * 1240s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1240s # * 1240s # * 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. 1240s # * 1240s # * 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. 1240s # */ 1240s # const gchar * 1240s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1240s # { 1240s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1240s # 1240s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_dup_mood: (skip) 1240s # * @object: A #ComAcmeCoyote. 1240s # * 1240s # * Gets a copy of the "Mood" D-Bus property. 1240s # * 1240s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1240s # * 1240s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1240s # */ 1240s # gchar * 1240s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1240s # { 1240s # gchar *value; 1240s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1240s # return value; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_set_mood: (skip) 1240s # * @object: A #ComAcmeCoyote. 1240s # * @value: The value to set. 1240s # * 1240s # * Sets the "Mood" D-Bus property to @value. 1240s # * 1240s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1240s # */ 1240s # void 1240s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1240s # { 1240s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_emit_surprised: 1240s # * @object: A #ComAcmeCoyote. 1240s # * 1240s # * Emits the "Surprised" D-Bus signal. 1240s # */ 1240s # void 1240s # com_acme_coyote_emit_surprised ( 1240s # ComAcmeCoyote *object) 1240s # { 1240s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_run: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1240s # * 1240s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1240s # */ 1240s # void 1240s # com_acme_coyote_call_run ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1240s # "Run", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # callback, 1240s # user_data); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_run_finish: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Finishes an operation started with com_acme_coyote_call_run(). 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # com_acme_coyote_call_run_finish ( 1240s # ComAcmeCoyote *proxy, 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_run_sync: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1240s # * 1240s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # com_acme_coyote_call_run_sync ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1240s # "Run", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_sleep: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1240s # * 1240s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1240s # */ 1240s # void 1240s # com_acme_coyote_call_sleep ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1240s # "Sleep", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # callback, 1240s # user_data); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_sleep_finish: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # com_acme_coyote_call_sleep_finish ( 1240s # ComAcmeCoyote *proxy, 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_sleep_sync: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1240s # * 1240s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # com_acme_coyote_call_sleep_sync ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1240s # "Sleep", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_attack: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1240s # * 1240s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1240s # */ 1240s # void 1240s # com_acme_coyote_call_attack ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1240s # "Attack", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # callback, 1240s # user_data); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_attack_finish: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Finishes an operation started with com_acme_coyote_call_attack(). 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # com_acme_coyote_call_attack_finish ( 1240s # ComAcmeCoyote *proxy, 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_attack_sync: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1240s # * 1240s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # com_acme_coyote_call_attack_sync ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1240s # "Attack", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_complete_run: 1240s # * @object: A #ComAcmeCoyote. 1240s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1240s # * 1240s # * 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. 1240s # * 1240s # * This method will free @invocation, you cannot use it afterwards. 1240s # */ 1240s # void 1240s # com_acme_coyote_complete_run ( 1240s # ComAcmeCoyote *object G_GNUC_UNUSED, 1240s # GDBusMethodInvocation *invocation) 1240s # { 1240s # g_dbus_method_invocation_return_value (invocation, 1240s # g_variant_new ("()")); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_complete_sleep: 1240s # * @object: A #ComAcmeCoyote. 1240s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1240s # * 1240s # * 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. 1240s # * 1240s # * This method will free @invocation, you cannot use it afterwards. 1240s # */ 1240s # void 1240s # com_acme_coyote_complete_sleep ( 1240s # ComAcmeCoyote *object G_GNUC_UNUSED, 1240s # GDBusMethodInvocation *invocation) 1240s # { 1240s # g_dbus_method_invocation_return_value (invocation, 1240s # g_variant_new ("()")); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_complete_attack: 1240s # * @object: A #ComAcmeCoyote. 1240s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1240s # * 1240s # * 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. 1240s # * 1240s # * This method will free @invocation, you cannot use it afterwards. 1240s # */ 1240s # void 1240s # com_acme_coyote_complete_attack ( 1240s # ComAcmeCoyote *object G_GNUC_UNUSED, 1240s # GDBusMethodInvocation *invocation) 1240s # { 1240s # g_dbus_method_invocation_return_value (invocation, 1240s # g_variant_new ("()")); 1240s # } 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # 1240s # /** 1240s # * ComAcmeCoyoteProxy: 1240s # * 1240s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1240s # */ 1240s # 1240s # /** 1240s # * ComAcmeCoyoteProxyClass: 1240s # * @parent_class: The parent class. 1240s # * 1240s # * Class structure for #ComAcmeCoyoteProxy. 1240s # */ 1240s # 1240s # struct _ComAcmeCoyoteProxyPrivate 1240s # { 1240s # GData *qdata; 1240s # }; 1240s # 1240s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1240s # 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1240s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1240s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1240s # 1240s # #else 1240s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1240s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1240s # 1240s # #endif 1240s # static void 1240s # com_acme_coyote_proxy_finalize (GObject *object) 1240s # { 1240s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1240s # g_datalist_clear (&proxy->priv->qdata); 1240s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_get_property (GObject *object, 1240s # guint prop_id, 1240s # GValue *value, 1240s # GParamSpec *pspec G_GNUC_UNUSED) 1240s # { 1240s # const _ExtendedGDBusPropertyInfo *info; 1240s # GVariant *variant; 1240s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1240s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1240s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1240s # if (info->use_gvariant) 1240s # { 1240s # g_value_set_variant (value, variant); 1240s # } 1240s # else 1240s # { 1240s # if (variant != NULL) 1240s # g_dbus_gvariant_to_gvalue (variant, value); 1240s # } 1240s # if (variant != NULL) 1240s # g_variant_unref (variant); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1240s # GAsyncResult *res, 1240s # gpointer user_data) 1240s # { 1240s # const _ExtendedGDBusPropertyInfo *info = user_data; 1240s # GError *error; 1240s # GVariant *_ret; 1240s # error = NULL; 1240s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1240s # if (!_ret) 1240s # { 1240s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1240s # info->parent_struct.name, 1240s # error->message, g_quark_to_string (error->domain), error->code); 1240s # g_error_free (error); 1240s # } 1240s # else 1240s # { 1240s # g_variant_unref (_ret); 1240s # } 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_set_property (GObject *object, 1240s # guint prop_id, 1240s # const GValue *value, 1240s # GParamSpec *pspec G_GNUC_UNUSED) 1240s # { 1240s # const _ExtendedGDBusPropertyInfo *info; 1240s # GVariant *variant; 1240s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1240s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1240s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1240s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1240s # "org.freedesktop.DBus.Properties.Set", 1240s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1240s # g_variant_unref (variant); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1240s # const gchar *sender_name G_GNUC_UNUSED, 1240s # const gchar *signal_name, 1240s # GVariant *parameters) 1240s # { 1240s # _ExtendedGDBusSignalInfo *info; 1240s # GVariantIter iter; 1240s # GVariant *child; 1240s # GValue *paramv; 1240s # gsize num_params; 1240s # gsize n; 1240s # guint signal_id; 1240s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1240s # if (info == NULL) 1240s # return; 1240s # num_params = g_variant_n_children (parameters); 1240s # paramv = g_new0 (GValue, num_params + 1); 1240s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1240s # g_value_set_object (¶mv[0], proxy); 1240s # g_variant_iter_init (&iter, parameters); 1240s # n = 1; 1240s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1240s # { 1240s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1240s # if (arg_info->use_gvariant) 1240s # { 1240s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1240s # g_value_set_variant (¶mv[n], child); 1240s # n++; 1240s # } 1240s # else 1240s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1240s # g_variant_unref (child); 1240s # } 1240s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1240s # g_signal_emitv (paramv, signal_id, 0, NULL); 1240s # for (n = 0; n < num_params + 1; n++) 1240s # g_value_unset (¶mv[n]); 1240s # g_free (paramv); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1240s # GVariant *changed_properties, 1240s # const gchar *const *invalidated_properties) 1240s # { 1240s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1240s # guint n; 1240s # const gchar *key; 1240s # GVariantIter *iter; 1240s # _ExtendedGDBusPropertyInfo *info; 1240s # g_variant_get (changed_properties, "a{sv}", &iter); 1240s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1240s # { 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1240s # g_datalist_remove_data (&proxy->priv->qdata, key); 1240s # if (info != NULL) 1240s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1240s # } 1240s # g_variant_iter_free (iter); 1240s # for (n = 0; invalidated_properties[n] != NULL; n++) 1240s # { 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1240s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1240s # if (info != NULL) 1240s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1240s # } 1240s # } 1240s # 1240s # static const gchar * 1240s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1240s # { 1240s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1240s # GVariant *variant; 1240s # const gchar *value = NULL; 1240s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1240s # if (variant != NULL) 1240s # { 1240s # value = g_variant_get_string (variant, NULL); 1240s # g_variant_unref (variant); 1240s # } 1240s # return value; 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1240s # { 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1240s # #else 1240s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1240s # #endif 1240s # 1240s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1240s # { 1240s # GObjectClass *gobject_class; 1240s # GDBusProxyClass *proxy_class; 1240s # 1240s # gobject_class = G_OBJECT_CLASS (klass); 1240s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1240s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1240s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1240s # 1240s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1240s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1240s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1240s # 1240s # com_acme_coyote_override_properties (gobject_class, 1); 1240s # 1240s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1240s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1240s # #endif 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1240s # { 1240s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_proxy_new: 1240s # * @connection: A #GDBusConnection. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1240s # * 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1240s # * 1240s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1240s # */ 1240s # void 1240s # com_acme_coyote_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # 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); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_proxy_new_finish: 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1240s # * 1240s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # ComAcmeCoyote * 1240s # com_acme_coyote_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GObject *ret; 1240s # GObject *source_object; 1240s # source_object = g_async_result_get_source_object (res); 1240s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1240s # g_object_unref (source_object); 1240s # if (ret != NULL) 1240s # return COM_ACME_COYOTE (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_proxy_new_sync: 1240s # * @connection: A #GDBusConnection. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1240s # * 1240s # * The calling thread is blocked until a reply is received. 1240s # * 1240s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1240s # * 1240s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # ComAcmeCoyote * 1240s # com_acme_coyote_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GInitable *ret; 1240s # 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); 1240s # if (ret != NULL) 1240s # return COM_ACME_COYOTE (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # 1240s # /** 1240s # * com_acme_coyote_proxy_new_for_bus: 1240s # * @bus_type: A #GBusType. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: A bus name (well-known or unique). 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1240s # * 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1240s # * 1240s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1240s # */ 1240s # void 1240s # com_acme_coyote_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # 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); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_proxy_new_for_bus_finish: 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1240s # * 1240s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # ComAcmeCoyote * 1240s # com_acme_coyote_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GObject *ret; 1240s # GObject *source_object; 1240s # source_object = g_async_result_get_source_object (res); 1240s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1240s # g_object_unref (source_object); 1240s # if (ret != NULL) 1240s # return COM_ACME_COYOTE (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_proxy_new_for_bus_sync: 1240s # * @bus_type: A #GBusType. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: A bus name (well-known or unique). 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1240s # * 1240s # * The calling thread is blocked until a reply is received. 1240s # * 1240s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1240s # * 1240s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # ComAcmeCoyote * 1240s # com_acme_coyote_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GInitable *ret; 1240s # 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); 1240s # if (ret != NULL) 1240s # return COM_ACME_COYOTE (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # 1240s # /** 1240s # * ComAcmeCoyoteSkeleton: 1240s # * 1240s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1240s # */ 1240s # 1240s # /** 1240s # * ComAcmeCoyoteSkeletonClass: 1240s # * @parent_class: The parent class. 1240s # * 1240s # * Class structure for #ComAcmeCoyoteSkeleton. 1240s # */ 1240s # 1240s # struct _ComAcmeCoyoteSkeletonPrivate 1240s # { 1240s # GValue *properties; 1240s # GList *changed_properties; 1240s # GSource *changed_properties_idle_source; 1240s # GMainContext *context; 1240s # GMutex lock; 1240s # }; 1240s # 1240s # static void 1240s # _com_acme_coyote_skeleton_handle_method_call ( 1240s # GDBusConnection *connection G_GNUC_UNUSED, 1240s # const gchar *sender G_GNUC_UNUSED, 1240s # const gchar *object_path G_GNUC_UNUSED, 1240s # const gchar *interface_name, 1240s # const gchar *method_name, 1240s # GVariant *parameters, 1240s # GDBusMethodInvocation *invocation, 1240s # gpointer user_data) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1240s # _ExtendedGDBusMethodInfo *info; 1240s # GVariantIter iter; 1240s # GVariant *child; 1240s # GValue *paramv; 1240s # gsize num_params; 1240s # guint num_extra; 1240s # gsize n; 1240s # guint signal_id; 1240s # GValue return_value = G_VALUE_INIT; 1240s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1240s # g_assert (info != NULL); 1240s # num_params = g_variant_n_children (parameters); 1240s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1240s # n = 0; 1240s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1240s # g_value_set_object (¶mv[n++], skeleton); 1240s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1240s # g_value_set_object (¶mv[n++], invocation); 1240s # if (info->pass_fdlist) 1240s # { 1240s # #ifdef G_OS_UNIX 1240s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1240s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1240s # #else 1240s # g_assert_not_reached (); 1240s # #endif 1240s # } 1240s # g_variant_iter_init (&iter, parameters); 1240s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1240s # { 1240s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1240s # if (arg_info->use_gvariant) 1240s # { 1240s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1240s # g_value_set_variant (¶mv[n], child); 1240s # n++; 1240s # } 1240s # else 1240s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1240s # g_variant_unref (child); 1240s # } 1240s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1240s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1240s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1240s # if (!g_value_get_boolean (&return_value)) 1240s # 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); 1240s # g_value_unset (&return_value); 1240s # for (n = 0; n < num_params + num_extra; n++) 1240s # g_value_unset (¶mv[n]); 1240s # g_free (paramv); 1240s # } 1240s # 1240s # static GVariant * 1240s # _com_acme_coyote_skeleton_handle_get_property ( 1240s # GDBusConnection *connection G_GNUC_UNUSED, 1240s # const gchar *sender G_GNUC_UNUSED, 1240s # const gchar *object_path G_GNUC_UNUSED, 1240s # const gchar *interface_name G_GNUC_UNUSED, 1240s # const gchar *property_name, 1240s # GError **error, 1240s # gpointer user_data) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1240s # GValue value = G_VALUE_INIT; 1240s # GParamSpec *pspec; 1240s # _ExtendedGDBusPropertyInfo *info; 1240s # GVariant *ret; 1240s # ret = NULL; 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1240s # g_assert (info != NULL); 1240s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1240s # if (pspec == NULL) 1240s # { 1240s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1240s # } 1240s # else 1240s # { 1240s # g_value_init (&value, pspec->value_type); 1240s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1240s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1240s # g_value_unset (&value); 1240s # } 1240s # return ret; 1240s # } 1240s # 1240s # static gboolean 1240s # _com_acme_coyote_skeleton_handle_set_property ( 1240s # GDBusConnection *connection G_GNUC_UNUSED, 1240s # const gchar *sender G_GNUC_UNUSED, 1240s # const gchar *object_path G_GNUC_UNUSED, 1240s # const gchar *interface_name G_GNUC_UNUSED, 1240s # const gchar *property_name, 1240s # GVariant *variant, 1240s # GError **error, 1240s # gpointer user_data) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1240s # GValue value = G_VALUE_INIT; 1240s # GParamSpec *pspec; 1240s # _ExtendedGDBusPropertyInfo *info; 1240s # gboolean ret; 1240s # ret = FALSE; 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1240s # g_assert (info != NULL); 1240s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1240s # if (pspec == NULL) 1240s # { 1240s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1240s # } 1240s # else 1240s # { 1240s # if (info->use_gvariant) 1240s # g_value_set_variant (&value, variant); 1240s # else 1240s # g_dbus_gvariant_to_gvalue (variant, &value); 1240s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1240s # g_value_unset (&value); 1240s # ret = TRUE; 1240s # } 1240s # return ret; 1240s # } 1240s # 1240s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1240s # { 1240s # _com_acme_coyote_skeleton_handle_method_call, 1240s # _com_acme_coyote_skeleton_handle_get_property, 1240s # _com_acme_coyote_skeleton_handle_set_property, 1240s # {NULL} 1240s # }; 1240s # 1240s # static GDBusInterfaceInfo * 1240s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1240s # { 1240s # return com_acme_coyote_interface_info (); 1240s # } 1240s # 1240s # static GDBusInterfaceVTable * 1240s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1240s # { 1240s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1240s # } 1240s # 1240s # static GVariant * 1240s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1240s # 1240s # GVariantBuilder builder; 1240s # guint n; 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1240s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1240s # #else 1240s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1240s # #endif 1240s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1240s # goto out; 1240s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1240s # { 1240s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1240s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1240s # { 1240s # GVariant *value; 1240s # 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); 1240s # if (value != NULL) 1240s # { 1240s # g_variant_take_ref (value); 1240s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1240s # g_variant_unref (value); 1240s # } 1240s # } 1240s # } 1240s # out: 1240s # return g_variant_builder_end (&builder); 1240s # } 1240s # 1240s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1240s # gboolean emit_changed = FALSE; 1240s # 1240s # g_mutex_lock (&skeleton->priv->lock); 1240s # if (skeleton->priv->changed_properties_idle_source != NULL) 1240s # { 1240s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1240s # skeleton->priv->changed_properties_idle_source = NULL; 1240s # emit_changed = TRUE; 1240s # } 1240s # g_mutex_unlock (&skeleton->priv->lock); 1240s # 1240s # if (emit_changed) 1240s # _com_acme_coyote_emit_changed (skeleton); 1240s # } 1240s # 1240s # static void 1240s # _com_acme_coyote_on_signal_surprised ( 1240s # ComAcmeCoyote *object) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1240s # 1240s # GList *connections, *l; 1240s # GVariant *signal_variant; 1240s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1240s # 1240s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1240s # for (l = connections; l != NULL; l = l->next) 1240s # { 1240s # GDBusConnection *connection = l->data; 1240s # g_dbus_connection_emit_signal (connection, 1240s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1240s # signal_variant, NULL); 1240s # } 1240s # g_variant_unref (signal_variant); 1240s # g_list_free_full (connections, g_object_unref); 1240s # } 1240s # 1240s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1240s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1240s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1240s # 1240s # #else 1240s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1240s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1240s # 1240s # #endif 1240s # static void 1240s # com_acme_coyote_skeleton_finalize (GObject *object) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1240s # guint n; 1240s # for (n = 0; n < 1; n++) 1240s # g_value_unset (&skeleton->priv->properties[n]); 1240s # g_free (skeleton->priv->properties); 1240s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1240s # if (skeleton->priv->changed_properties_idle_source != NULL) 1240s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1240s # g_main_context_unref (skeleton->priv->context); 1240s # g_mutex_clear (&skeleton->priv->lock); 1240s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_get_property (GObject *object, 1240s # guint prop_id, 1240s # GValue *value, 1240s # GParamSpec *pspec G_GNUC_UNUSED) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1240s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1240s # g_mutex_lock (&skeleton->priv->lock); 1240s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1240s # g_mutex_unlock (&skeleton->priv->lock); 1240s # } 1240s # 1240s # static gboolean 1240s # _com_acme_coyote_emit_changed (gpointer user_data) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1240s # GList *l; 1240s # GVariantBuilder builder; 1240s # GVariantBuilder invalidated_builder; 1240s # guint num_changes; 1240s # 1240s # g_mutex_lock (&skeleton->priv->lock); 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1240s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1240s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1240s # #else 1240s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1240s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1240s # #endif 1240s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1240s # { 1240s # ChangedProperty *cp = l->data; 1240s # GVariant *variant; 1240s # const GValue *cur_value; 1240s # 1240s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1240s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1240s # { 1240s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1240s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1240s # g_variant_unref (variant); 1240s # num_changes++; 1240s # } 1240s # } 1240s # if (num_changes > 0) 1240s # { 1240s # GList *connections, *ll; 1240s # GVariant *signal_variant; 1240s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1240s # &builder, &invalidated_builder)); 1240s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1240s # for (ll = connections; ll != NULL; ll = ll->next) 1240s # { 1240s # GDBusConnection *connection = ll->data; 1240s # 1240s # g_dbus_connection_emit_signal (connection, 1240s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1240s # "org.freedesktop.DBus.Properties", 1240s # "PropertiesChanged", 1240s # signal_variant, 1240s # NULL); 1240s # } 1240s # g_variant_unref (signal_variant); 1240s # g_list_free_full (connections, g_object_unref); 1240s # } 1240s # else 1240s # { 1240s # g_variant_builder_clear (&builder); 1240s # g_variant_builder_clear (&invalidated_builder); 1240s # } 1240s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1240s # skeleton->priv->changed_properties = NULL; 1240s # skeleton->priv->changed_properties_idle_source = NULL; 1240s # g_mutex_unlock (&skeleton->priv->lock); 1240s # return FALSE; 1240s # } 1240s # 1240s # static void 1240s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1240s # { 1240s # ChangedProperty *cp; 1240s # GList *l; 1240s # cp = NULL; 1240s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1240s # { 1240s # ChangedProperty *i_cp = l->data; 1240s # if (i_cp->info == info) 1240s # { 1240s # cp = i_cp; 1240s # break; 1240s # } 1240s # } 1240s # if (cp == NULL) 1240s # { 1240s # cp = g_new0 (ChangedProperty, 1); 1240s # cp->prop_id = prop_id; 1240s # cp->info = info; 1240s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1240s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1240s # g_value_copy (orig_value, &cp->orig_value); 1240s # } 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_notify (GObject *object, 1240s # GParamSpec *pspec G_GNUC_UNUSED) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1240s # g_mutex_lock (&skeleton->priv->lock); 1240s # if (skeleton->priv->changed_properties != NULL && 1240s # skeleton->priv->changed_properties_idle_source == NULL) 1240s # { 1240s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1240s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1240s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1240s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1240s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1240s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1240s # } 1240s # g_mutex_unlock (&skeleton->priv->lock); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_set_property (GObject *object, 1240s # guint prop_id, 1240s # const GValue *value, 1240s # GParamSpec *pspec) 1240s # { 1240s # const _ExtendedGDBusPropertyInfo *info; 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1240s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1240s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1240s # g_mutex_lock (&skeleton->priv->lock); 1240s # g_object_freeze_notify (object); 1240s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1240s # { 1240s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1240s # info->emits_changed_signal) 1240s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1240s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1240s # g_object_notify_by_pspec (object, pspec); 1240s # } 1240s # g_mutex_unlock (&skeleton->priv->lock); 1240s # g_object_thaw_notify (object); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1240s # { 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1240s # #else 1240s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1240s # #endif 1240s # 1240s # g_mutex_init (&skeleton->priv->lock); 1240s # skeleton->priv->context = g_main_context_ref_thread_default (); 1240s # skeleton->priv->properties = g_new0 (GValue, 1); 1240s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1240s # } 1240s # 1240s # static const gchar * 1240s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1240s # const gchar *value; 1240s # g_mutex_lock (&skeleton->priv->lock); 1240s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1240s # g_mutex_unlock (&skeleton->priv->lock); 1240s # return value; 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1240s # { 1240s # GObjectClass *gobject_class; 1240s # GDBusInterfaceSkeletonClass *skeleton_class; 1240s # 1240s # gobject_class = G_OBJECT_CLASS (klass); 1240s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1240s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1240s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1240s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1240s # 1240s # 1240s # com_acme_coyote_override_properties (gobject_class, 1); 1240s # 1240s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1240s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1240s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1240s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1240s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1240s # 1240s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1240s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1240s # #endif 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1240s # { 1240s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1240s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_skeleton_new: 1240s # * 1240s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1240s # * 1240s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1240s # */ 1240s # ComAcmeCoyote * 1240s # com_acme_coyote_skeleton_new (void) 1240s # { 1240s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1240s # } 1240s # Error: 1240s # 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuwc6tsvb/tmp9fi4c2vo2.xml', '/tmp/tmpuwc6tsvb/tmpp9m9vqsl1.xml', '--output', '-', '--body'] 1240s # Return code: 0 1240s # Output: 1240s # /* 1240s # * This file is generated by gdbus-codegen, do not modify it. 1240s # * 1240s # * The license of this code is the same as for the D-Bus interface description 1240s # * it was derived from. Note that it links to GLib, so must comply with the 1240s # * LGPL linking clauses. 1240s # */ 1240s # 1240s # #ifdef HAVE_CONFIG_H 1240s # # include "config.h" 1240s # #endif 1240s # 1240s # #include 1240s # #ifdef G_OS_UNIX 1240s # # include 1240s # #endif 1240s # 1240s # #ifdef G_ENABLE_DEBUG 1240s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1240s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1240s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1240s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1240s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1240s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1240s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1240s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1240s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1240s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1240s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1240s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1240s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1240s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1240s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1240s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1240s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1240s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1240s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1240s # #else /* !G_ENABLE_DEBUG */ 1240s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1240s # * Do not access GValues directly in your code. Instead, use the 1240s # * g_value_get_*() functions 1240s # */ 1240s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1240s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1240s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1240s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1240s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1240s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1240s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1240s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1240s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1240s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1240s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1240s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1240s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1240s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1240s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1240s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1240s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1240s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1240s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1240s # #endif /* !G_ENABLE_DEBUG */ 1240s # 1240s # typedef struct 1240s # { 1240s # GDBusArgInfo parent_struct; 1240s # gboolean use_gvariant; 1240s # } _ExtendedGDBusArgInfo; 1240s # 1240s # typedef struct 1240s # { 1240s # GDBusMethodInfo parent_struct; 1240s # const gchar *signal_name; 1240s # gboolean pass_fdlist; 1240s # } _ExtendedGDBusMethodInfo; 1240s # 1240s # typedef struct 1240s # { 1240s # GDBusSignalInfo parent_struct; 1240s # const gchar *signal_name; 1240s # } _ExtendedGDBusSignalInfo; 1240s # 1240s # typedef struct 1240s # { 1240s # GDBusPropertyInfo parent_struct; 1240s # const gchar *hyphen_name; 1240s # guint use_gvariant : 1; 1240s # guint emits_changed_signal : 1; 1240s # } _ExtendedGDBusPropertyInfo; 1240s # 1240s # typedef struct 1240s # { 1240s # GDBusInterfaceInfo parent_struct; 1240s # const gchar *hyphen_name; 1240s # } _ExtendedGDBusInterfaceInfo; 1240s # 1240s # typedef struct 1240s # { 1240s # const _ExtendedGDBusPropertyInfo *info; 1240s # guint prop_id; 1240s # GValue orig_value; /* the value before the change */ 1240s # } ChangedProperty; 1240s # 1240s # static void 1240s # _changed_property_free (ChangedProperty *data) 1240s # { 1240s # g_value_unset (&data->orig_value); 1240s # g_free (data); 1240s # } 1240s # 1240s # static gboolean 1240s # _g_strv_equal0 (gchar **a, gchar **b) 1240s # { 1240s # gboolean ret = FALSE; 1240s # guint n; 1240s # if (a == NULL && b == NULL) 1240s # { 1240s # ret = TRUE; 1240s # goto out; 1240s # } 1240s # if (a == NULL || b == NULL) 1240s # goto out; 1240s # if (g_strv_length (a) != g_strv_length (b)) 1240s # goto out; 1240s # for (n = 0; a[n] != NULL; n++) 1240s # if (g_strcmp0 (a[n], b[n]) != 0) 1240s # goto out; 1240s # ret = TRUE; 1240s # out: 1240s # return ret; 1240s # } 1240s # 1240s # static gboolean 1240s # _g_variant_equal0 (GVariant *a, GVariant *b) 1240s # { 1240s # gboolean ret = FALSE; 1240s # if (a == NULL && b == NULL) 1240s # { 1240s # ret = TRUE; 1240s # goto out; 1240s # } 1240s # if (a == NULL || b == NULL) 1240s # goto out; 1240s # ret = g_variant_equal (a, b); 1240s # out: 1240s # return ret; 1240s # } 1240s # 1240s # G_GNUC_UNUSED static gboolean 1240s # _g_value_equal (const GValue *a, const GValue *b) 1240s # { 1240s # gboolean ret = FALSE; 1240s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1240s # switch (G_VALUE_TYPE (a)) 1240s # { 1240s # case G_TYPE_BOOLEAN: 1240s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1240s # break; 1240s # case G_TYPE_UCHAR: 1240s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1240s # break; 1240s # case G_TYPE_INT: 1240s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1240s # break; 1240s # case G_TYPE_UINT: 1240s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1240s # break; 1240s # case G_TYPE_INT64: 1240s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1240s # break; 1240s # case G_TYPE_UINT64: 1240s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1240s # break; 1240s # case G_TYPE_DOUBLE: 1240s # { 1240s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1240s # gdouble da = g_value_get_double (a); 1240s # gdouble db = g_value_get_double (b); 1240s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1240s # } 1240s # break; 1240s # case G_TYPE_STRING: 1240s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1240s # break; 1240s # case G_TYPE_VARIANT: 1240s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1240s # break; 1240s # default: 1240s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1240s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1240s # else 1240s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1240s # break; 1240s # } 1240s # return ret; 1240s # } 1240s # 1240s # static void 1240s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1240s # GClosure *closure, 1240s # GValue *return_value, 1240s # unsigned int n_param_values, 1240s # const GValue *param_values, 1240s # void *invocation_hint G_GNUC_UNUSED, 1240s # void *marshal_data) 1240s # { 1240s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1240s # (void *data1, 1240s # GDBusMethodInvocation *arg_method_invocation, 1240s # void *data2); 1240s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1240s # GCClosure *cc = (GCClosure*) closure; 1240s # void *data1, *data2; 1240s # gboolean v_return; 1240s # 1240s # g_return_if_fail (return_value != NULL); 1240s # g_return_if_fail (n_param_values == 2); 1240s # 1240s # if (G_CCLOSURE_SWAP_DATA (closure)) 1240s # { 1240s # data1 = closure->data; 1240s # data2 = g_value_peek_pointer (param_values + 0); 1240s # } 1240s # else 1240s # { 1240s # data1 = g_value_peek_pointer (param_values + 0); 1240s # data2 = closure->data; 1240s # } 1240s # 1240s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1240s # (marshal_data ? marshal_data : cc->callback); 1240s # 1240s # v_return = 1240s # callback (data1, 1240s # g_marshal_value_peek_object (param_values + 1), 1240s # data2); 1240s # 1240s # g_value_set_boolean (return_value, v_return); 1240s # } 1240s # 1240s # /* ------------------------------------------------------------------------ 1240s # * Code for interface org.project.Bar.Frobnicator 1240s # * ------------------------------------------------------------------------ 1240s # */ 1240s # 1240s # /** 1240s # * SECTION:OrgProjectBarFrobnicator 1240s # * @title: OrgProjectBarFrobnicator 1240s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1240s # * 1240s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1240s # */ 1240s # 1240s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1240s # 1240s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "RandomMethod", 1240s # NULL, 1240s # NULL, 1240s # NULL 1240s # }, 1240s # "handle-random-method", 1240s # FALSE 1240s # }; 1240s # 1240s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1240s # { 1240s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1240s # NULL 1240s # }; 1240s # 1240s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "org.project.Bar.Frobnicator", 1240s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1240s # NULL, 1240s # NULL, 1240s # NULL 1240s # }, 1240s # "org-project-bar-frobnicator", 1240s # }; 1240s # 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_interface_info: 1240s # * 1240s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1240s # * 1240s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1240s # */ 1240s # GDBusInterfaceInfo * 1240s # org_project_bar_frobnicator_interface_info (void) 1240s # { 1240s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_override_properties: 1240s # * @klass: The class structure for a #GObject derived class. 1240s # * @property_id_begin: The property id to assign to the first overridden property. 1240s # * 1240s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1240s # * The properties are overridden in the order they are defined. 1240s # * 1240s # * Returns: The last property id. 1240s # */ 1240s # guint 1240s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1240s # { 1240s # return property_id_begin - 1; 1240s # } 1240s # 1240s # 1240s # inline static void 1240s # org_project_bar_frobnicator_method_marshal_random_method ( 1240s # GClosure *closure, 1240s # GValue *return_value, 1240s # unsigned int n_param_values, 1240s # const GValue *param_values, 1240s # void *invocation_hint, 1240s # void *marshal_data) 1240s # { 1240s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1240s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1240s # } 1240s # 1240s # 1240s # /** 1240s # * OrgProjectBarFrobnicator: 1240s # * 1240s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1240s # */ 1240s # 1240s # /** 1240s # * OrgProjectBarFrobnicatorIface: 1240s # * @parent_iface: The parent interface. 1240s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1240s # * 1240s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1240s # */ 1240s # 1240s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1240s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1240s # { 1240s # /* GObject signals for incoming D-Bus method calls: */ 1240s # /** 1240s # * OrgProjectBarFrobnicator::handle-random-method: 1240s # * @object: A #OrgProjectBarFrobnicator. 1240s # * @invocation: A #GDBusMethodInvocation. 1240s # * 1240s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1240s # * 1240s # * 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. 1240s # * 1240s # * 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. 1240s # */ 1240s # g_signal_new ("handle-random-method", 1240s # G_TYPE_FROM_INTERFACE (iface), 1240s # G_SIGNAL_RUN_LAST, 1240s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1240s # g_signal_accumulator_true_handled, 1240s # NULL, 1240s # org_project_bar_frobnicator_method_marshal_random_method, 1240s # G_TYPE_BOOLEAN, 1240s # 1, 1240s # G_TYPE_DBUS_METHOD_INVOCATION); 1240s # 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_call_random_method: 1240s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1240s # * 1240s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1240s # */ 1240s # void 1240s # org_project_bar_frobnicator_call_random_method ( 1240s # OrgProjectBarFrobnicator *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1240s # "RandomMethod", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # callback, 1240s # user_data); 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_call_random_method_finish: 1240s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # org_project_bar_frobnicator_call_random_method_finish ( 1240s # OrgProjectBarFrobnicator *proxy, 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_call_random_method_sync: 1240s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1240s # * 1240s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # org_project_bar_frobnicator_call_random_method_sync ( 1240s # OrgProjectBarFrobnicator *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1240s # "RandomMethod", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_complete_random_method: 1240s # * @object: A #OrgProjectBarFrobnicator. 1240s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1240s # * 1240s # * 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. 1240s # * 1240s # * This method will free @invocation, you cannot use it afterwards. 1240s # */ 1240s # void 1240s # org_project_bar_frobnicator_complete_random_method ( 1240s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1240s # GDBusMethodInvocation *invocation) 1240s # { 1240s # g_dbus_method_invocation_return_value (invocation, 1240s # g_variant_new ("()")); 1240s # } 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # 1240s # /** 1240s # * OrgProjectBarFrobnicatorProxy: 1240s # * 1240s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1240s # */ 1240s # 1240s # /** 1240s # * OrgProjectBarFrobnicatorProxyClass: 1240s # * @parent_class: The parent class. 1240s # * 1240s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1240s # */ 1240s # 1240s # struct _OrgProjectBarFrobnicatorProxyPrivate 1240s # { 1240s # GData *qdata; 1240s # }; 1240s # 1240s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1240s # 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1240s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1240s # 1240s # #else 1240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1240s # 1240s # #endif 1240s # static void 1240s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1240s # { 1240s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1240s # g_datalist_clear (&proxy->priv->qdata); 1240s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1240s # guint prop_id G_GNUC_UNUSED, 1240s # GValue *value G_GNUC_UNUSED, 1240s # GParamSpec *pspec G_GNUC_UNUSED) 1240s # { 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1240s # guint prop_id G_GNUC_UNUSED, 1240s # const GValue *value G_GNUC_UNUSED, 1240s # GParamSpec *pspec G_GNUC_UNUSED) 1240s # { 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1240s # const gchar *sender_name G_GNUC_UNUSED, 1240s # const gchar *signal_name, 1240s # GVariant *parameters) 1240s # { 1240s # _ExtendedGDBusSignalInfo *info; 1240s # GVariantIter iter; 1240s # GVariant *child; 1240s # GValue *paramv; 1240s # gsize num_params; 1240s # gsize n; 1240s # guint signal_id; 1240s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1240s # if (info == NULL) 1240s # return; 1240s # num_params = g_variant_n_children (parameters); 1240s # paramv = g_new0 (GValue, num_params + 1); 1240s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1240s # g_value_set_object (¶mv[0], proxy); 1240s # g_variant_iter_init (&iter, parameters); 1240s # n = 1; 1240s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1240s # { 1240s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1240s # if (arg_info->use_gvariant) 1240s # { 1240s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1240s # g_value_set_variant (¶mv[n], child); 1240s # n++; 1240s # } 1240s # else 1240s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1240s # g_variant_unref (child); 1240s # } 1240s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1240s # g_signal_emitv (paramv, signal_id, 0, NULL); 1240s # for (n = 0; n < num_params + 1; n++) 1240s # g_value_unset (¶mv[n]); 1240s # g_free (paramv); 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1240s # GVariant *changed_properties, 1240s # const gchar *const *invalidated_properties) 1240s # { 1240s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1240s # guint n; 1240s # const gchar *key; 1240s # GVariantIter *iter; 1240s # _ExtendedGDBusPropertyInfo *info; 1240s # g_variant_get (changed_properties, "a{sv}", &iter); 1240s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1240s # { 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1240s # g_datalist_remove_data (&proxy->priv->qdata, key); 1240s # if (info != NULL) 1240s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1240s # } 1240s # g_variant_iter_free (iter); 1240s # for (n = 0; invalidated_properties[n] != NULL; n++) 1240s # { 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1240s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1240s # if (info != NULL) 1240s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1240s # } 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1240s # { 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1240s # #else 1240s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1240s # #endif 1240s # 1240s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1240s # { 1240s # GObjectClass *gobject_class; 1240s # GDBusProxyClass *proxy_class; 1240s # 1240s # gobject_class = G_OBJECT_CLASS (klass); 1240s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1240s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1240s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1240s # 1240s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1240s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1240s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1240s # 1240s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1240s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1240s # #endif 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1240s # { 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_proxy_new: 1240s # * @connection: A #GDBusConnection. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1240s # * 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1240s # * 1240s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1240s # */ 1240s # void 1240s # org_project_bar_frobnicator_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # 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); 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_proxy_new_finish: 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1240s # * 1240s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # OrgProjectBarFrobnicator * 1240s # org_project_bar_frobnicator_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GObject *ret; 1240s # GObject *source_object; 1240s # source_object = g_async_result_get_source_object (res); 1240s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1240s # g_object_unref (source_object); 1240s # if (ret != NULL) 1240s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_proxy_new_sync: 1240s # * @connection: A #GDBusConnection. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1240s # * 1240s # * The calling thread is blocked until a reply is received. 1240s # * 1240s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1240s # * 1240s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # OrgProjectBarFrobnicator * 1240s # org_project_bar_frobnicator_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GInitable *ret; 1240s # 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); 1240s # if (ret != NULL) 1240s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_proxy_new_for_bus: 1240s # * @bus_type: A #GBusType. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: A bus name (well-known or unique). 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1240s # * 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1240s # * 1240s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1240s # */ 1240s # void 1240s # org_project_bar_frobnicator_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # 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); 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1240s # * 1240s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # OrgProjectBarFrobnicator * 1240s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GObject *ret; 1240s # GObject *source_object; 1240s # source_object = g_async_result_get_source_object (res); 1240s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1240s # g_object_unref (source_object); 1240s # if (ret != NULL) 1240s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1240s # * @bus_type: A #GBusType. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: A bus name (well-known or unique). 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1240s # * 1240s # * The calling thread is blocked until a reply is received. 1240s # * 1240s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1240s # * 1240s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # OrgProjectBarFrobnicator * 1240s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GInitable *ret; 1240s # 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); 1240s # if (ret != NULL) 1240s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # 1240s # /** 1240s # * OrgProjectBarFrobnicatorSkeleton: 1240s # * 1240s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1240s # */ 1240s # 1240s # /** 1240s # * OrgProjectBarFrobnicatorSkeletonClass: 1240s # * @parent_class: The parent class. 1240s # * 1240s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1240s # */ 1240s # 1240s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1240s # { 1240s # GValue *properties; 1240s # GList *changed_properties; 1240s # GSource *changed_properties_idle_source; 1240s # GMainContext *context; 1240s # GMutex lock; 1240s # }; 1240s # 1240s # static void 1240s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1240s # GDBusConnection *connection G_GNUC_UNUSED, 1240s # const gchar *sender G_GNUC_UNUSED, 1240s # const gchar *object_path G_GNUC_UNUSED, 1240s # const gchar *interface_name, 1240s # const gchar *method_name, 1240s # GVariant *parameters, 1240s # GDBusMethodInvocation *invocation, 1240s # gpointer user_data) 1240s # { 1240s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1240s # _ExtendedGDBusMethodInfo *info; 1240s # GVariantIter iter; 1240s # GVariant *child; 1240s # GValue *paramv; 1240s # gsize num_params; 1240s # guint num_extra; 1240s # gsize n; 1240s # guint signal_id; 1240s # GValue return_value = G_VALUE_INIT; 1240s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1240s # g_assert (info != NULL); 1240s # num_params = g_variant_n_children (parameters); 1240s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1240s # n = 0; 1240s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1240s # g_value_set_object (¶mv[n++], skeleton); 1240s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1240s # g_value_set_object (¶mv[n++], invocation); 1240s # if (info->pass_fdlist) 1240s # { 1240s # #ifdef G_OS_UNIX 1240s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1240s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1240s # #else 1240s # g_assert_not_reached (); 1240s # #endif 1240s # } 1240s # g_variant_iter_init (&iter, parameters); 1240s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1240s # { 1240s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1240s # if (arg_info->use_gvariant) 1240s # { 1240s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1240s # g_value_set_variant (¶mv[n], child); 1240s # n++; 1240s # } 1240s # else 1240s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1240s # g_variant_unref (child); 1240s # } 1240s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1240s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1240s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1240s # if (!g_value_get_boolean (&return_value)) 1240s # 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); 1240s # g_value_unset (&return_value); 1240s # for (n = 0; n < num_params + num_extra; n++) 1240s # g_value_unset (¶mv[n]); 1240s # g_free (paramv); 1240s # } 1240s # 1240s # static GVariant * 1240s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1240s # GDBusConnection *connection G_GNUC_UNUSED, 1240s # const gchar *sender G_GNUC_UNUSED, 1240s # const gchar *object_path G_GNUC_UNUSED, 1240s # const gchar *interface_name G_GNUC_UNUSED, 1240s # const gchar *property_name, 1240s # GError **error, 1240s # gpointer user_data) 1240s # { 1240s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1240s # GValue value = G_VALUE_INIT; 1240s # GParamSpec *pspec; 1240s # _ExtendedGDBusPropertyInfo *info; 1240s # GVariant *ret; 1240s # ret = NULL; 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1240s # g_assert (info != NULL); 1240s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1240s # if (pspec == NULL) 1240s # { 1240s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1240s # } 1240s # else 1240s # { 1240s # g_value_init (&value, pspec->value_type); 1240s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1240s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1240s # g_value_unset (&value); 1240s # } 1240s # return ret; 1240s # } 1240s # 1240s # static gboolean 1240s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1240s # GDBusConnection *connection G_GNUC_UNUSED, 1240s # const gchar *sender G_GNUC_UNUSED, 1240s # const gchar *object_path G_GNUC_UNUSED, 1240s # const gchar *interface_name G_GNUC_UNUSED, 1240s # const gchar *property_name, 1240s # GVariant *variant, 1240s # GError **error, 1240s # gpointer user_data) 1240s # { 1240s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1240s # GValue value = G_VALUE_INIT; 1240s # GParamSpec *pspec; 1240s # _ExtendedGDBusPropertyInfo *info; 1240s # gboolean ret; 1240s # ret = FALSE; 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1240s # g_assert (info != NULL); 1240s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1240s # if (pspec == NULL) 1240s # { 1240s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1240s # } 1240s # else 1240s # { 1240s # if (info->use_gvariant) 1240s # g_value_set_variant (&value, variant); 1240s # else 1240s # g_dbus_gvariant_to_gvalue (variant, &value); 1240s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1240s # g_value_unset (&value); 1240s # ret = TRUE; 1240s # } 1240s # return ret; 1240s # } 1240s # 1240s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1240s # { 1240s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1240s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1240s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1240s # {NULL} 1240s # }; 1240s # 1240s # static GDBusInterfaceInfo * 1240s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1240s # { 1240s # return org_project_bar_frobnicator_interface_info (); 1240s # } 1240s # 1240s # static GDBusInterfaceVTable * 1240s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1240s # { 1240s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1240s # } 1240s # 1240s # static GVariant * 1240s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1240s # { 1240s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1240s # 1240s # GVariantBuilder builder; 1240s # guint n; 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1240s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1240s # #else 1240s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1240s # #endif 1240s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1240s # goto out; 1240s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1240s # { 1240s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1240s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1240s # { 1240s # GVariant *value; 1240s # 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); 1240s # if (value != NULL) 1240s # { 1240s # g_variant_take_ref (value); 1240s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1240s # g_variant_unref (value); 1240s # } 1240s # } 1240s # } 1240s # out: 1240s # return g_variant_builder_end (&builder); 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1240s # { 1240s # } 1240s # 1240s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1240s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1240s # 1240s # #else 1240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1240s # 1240s # #endif 1240s # static void 1240s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1240s # { 1240s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1240s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1240s # if (skeleton->priv->changed_properties_idle_source != NULL) 1240s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1240s # g_main_context_unref (skeleton->priv->context); 1240s # g_mutex_clear (&skeleton->priv->lock); 1240s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1240s # { 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1240s # #else 1240s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1240s # #endif 1240s # 1240s # g_mutex_init (&skeleton->priv->lock); 1240s # skeleton->priv->context = g_main_context_ref_thread_default (); 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1240s # { 1240s # GObjectClass *gobject_class; 1240s # GDBusInterfaceSkeletonClass *skeleton_class; 1240s # 1240s # gobject_class = G_OBJECT_CLASS (klass); 1240s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1240s # 1240s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1240s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1240s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1240s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1240s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1240s # 1240s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1240s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1240s # #endif 1240s # } 1240s # 1240s # static void 1240s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1240s # { 1240s # } 1240s # 1240s # /** 1240s # * org_project_bar_frobnicator_skeleton_new: 1240s # * 1240s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1240s # * 1240s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1240s # */ 1240s # OrgProjectBarFrobnicator * 1240s # org_project_bar_frobnicator_skeleton_new (void) 1240s # { 1240s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1240s # } 1240s # 1240s # /* ------------------------------------------------------------------------ 1240s # * Code for interface com.acme.Coyote 1240s # * ------------------------------------------------------------------------ 1240s # */ 1240s # 1240s # /** 1240s # * SECTION:ComAcmeCoyote 1240s # * @title: ComAcmeCoyote 1240s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1240s # * 1240s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1240s # */ 1240s # 1240s # enum 1240s # { 1240s # _COM_ACME_COYOTE_SURPRISED, 1240s # }; 1240s # 1240s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1240s # 1240s # /* ---- Introspection data for com.acme.Coyote ---- */ 1240s # 1240s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "Run", 1240s # NULL, 1240s # NULL, 1240s # NULL 1240s # }, 1240s # "handle-run", 1240s # FALSE 1240s # }; 1240s # 1240s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "Sleep", 1240s # NULL, 1240s # NULL, 1240s # NULL 1240s # }, 1240s # "handle-sleep", 1240s # FALSE 1240s # }; 1240s # 1240s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "Attack", 1240s # NULL, 1240s # NULL, 1240s # NULL 1240s # }, 1240s # "handle-attack", 1240s # FALSE 1240s # }; 1240s # 1240s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1240s # { 1240s # &_com_acme_coyote_method_info_run.parent_struct, 1240s # &_com_acme_coyote_method_info_sleep.parent_struct, 1240s # &_com_acme_coyote_method_info_attack.parent_struct, 1240s # NULL 1240s # }; 1240s # 1240s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "Surprised", 1240s # NULL, 1240s # NULL 1240s # }, 1240s # "surprised" 1240s # }; 1240s # 1240s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1240s # { 1240s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1240s # NULL 1240s # }; 1240s # 1240s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "Mood", 1240s # (gchar *) "s", 1240s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1240s # NULL 1240s # }, 1240s # "mood", 1240s # FALSE, 1240s # TRUE 1240s # }; 1240s # 1240s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1240s # { 1240s # &_com_acme_coyote_property_info_mood.parent_struct, 1240s # NULL 1240s # }; 1240s # 1240s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1240s # { 1240s # { 1240s # -1, 1240s # (gchar *) "com.acme.Coyote", 1240s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1240s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1240s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1240s # NULL 1240s # }, 1240s # "com-acme-coyote", 1240s # }; 1240s # 1240s # 1240s # /** 1240s # * com_acme_coyote_interface_info: 1240s # * 1240s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1240s # * 1240s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1240s # */ 1240s # GDBusInterfaceInfo * 1240s # com_acme_coyote_interface_info (void) 1240s # { 1240s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_override_properties: 1240s # * @klass: The class structure for a #GObject derived class. 1240s # * @property_id_begin: The property id to assign to the first overridden property. 1240s # * 1240s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1240s # * The properties are overridden in the order they are defined. 1240s # * 1240s # * Returns: The last property id. 1240s # */ 1240s # guint 1240s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1240s # { 1240s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1240s # return property_id_begin - 1; 1240s # } 1240s # 1240s # 1240s # inline static void 1240s # com_acme_coyote_signal_marshal_surprised ( 1240s # GClosure *closure, 1240s # GValue *return_value, 1240s # unsigned int n_param_values, 1240s # const GValue *param_values, 1240s # void *invocation_hint, 1240s # void *marshal_data) 1240s # { 1240s # g_cclosure_marshal_VOID__VOID (closure, 1240s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1240s # } 1240s # 1240s # inline static void 1240s # com_acme_coyote_method_marshal_run ( 1240s # GClosure *closure, 1240s # GValue *return_value, 1240s # unsigned int n_param_values, 1240s # const GValue *param_values, 1240s # void *invocation_hint, 1240s # void *marshal_data) 1240s # { 1240s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1240s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1240s # } 1240s # 1240s # inline static void 1240s # com_acme_coyote_method_marshal_sleep ( 1240s # GClosure *closure, 1240s # GValue *return_value, 1240s # unsigned int n_param_values, 1240s # const GValue *param_values, 1240s # void *invocation_hint, 1240s # void *marshal_data) 1240s # { 1240s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1240s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1240s # } 1240s # 1240s # inline static void 1240s # com_acme_coyote_method_marshal_attack ( 1240s # GClosure *closure, 1240s # GValue *return_value, 1240s # unsigned int n_param_values, 1240s # const GValue *param_values, 1240s # void *invocation_hint, 1240s # void *marshal_data) 1240s # { 1240s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1240s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1240s # } 1240s # 1240s # 1240s # /** 1240s # * ComAcmeCoyote: 1240s # * 1240s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1240s # */ 1240s # 1240s # /** 1240s # * ComAcmeCoyoteIface: 1240s # * @parent_iface: The parent interface. 1240s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1240s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1240s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1240s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1240s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1240s # * 1240s # * Virtual table for the D-Bus interface com.acme.Coyote. 1240s # */ 1240s # 1240s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1240s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1240s # 1240s # static void 1240s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1240s # { 1240s # /* GObject signals for incoming D-Bus method calls: */ 1240s # /** 1240s # * ComAcmeCoyote::handle-run: 1240s # * @object: A #ComAcmeCoyote. 1240s # * @invocation: A #GDBusMethodInvocation. 1240s # * 1240s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1240s # * 1240s # * 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. 1240s # * 1240s # * 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. 1240s # */ 1240s # g_signal_new ("handle-run", 1240s # G_TYPE_FROM_INTERFACE (iface), 1240s # G_SIGNAL_RUN_LAST, 1240s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1240s # g_signal_accumulator_true_handled, 1240s # NULL, 1240s # com_acme_coyote_method_marshal_run, 1240s # G_TYPE_BOOLEAN, 1240s # 1, 1240s # G_TYPE_DBUS_METHOD_INVOCATION); 1240s # 1240s # /** 1240s # * ComAcmeCoyote::handle-sleep: 1240s # * @object: A #ComAcmeCoyote. 1240s # * @invocation: A #GDBusMethodInvocation. 1240s # * 1240s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1240s # * 1240s # * 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. 1240s # * 1240s # * 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. 1240s # */ 1240s # g_signal_new ("handle-sleep", 1240s # G_TYPE_FROM_INTERFACE (iface), 1240s # G_SIGNAL_RUN_LAST, 1240s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1240s # g_signal_accumulator_true_handled, 1240s # NULL, 1240s # com_acme_coyote_method_marshal_sleep, 1240s # G_TYPE_BOOLEAN, 1240s # 1, 1240s # G_TYPE_DBUS_METHOD_INVOCATION); 1240s # 1240s # /** 1240s # * ComAcmeCoyote::handle-attack: 1240s # * @object: A #ComAcmeCoyote. 1240s # * @invocation: A #GDBusMethodInvocation. 1240s # * 1240s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1240s # * 1240s # * 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. 1240s # * 1240s # * 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. 1240s # */ 1240s # g_signal_new ("handle-attack", 1240s # G_TYPE_FROM_INTERFACE (iface), 1240s # G_SIGNAL_RUN_LAST, 1240s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1240s # g_signal_accumulator_true_handled, 1240s # NULL, 1240s # com_acme_coyote_method_marshal_attack, 1240s # G_TYPE_BOOLEAN, 1240s # 1, 1240s # G_TYPE_DBUS_METHOD_INVOCATION); 1240s # 1240s # /* GObject signals for received D-Bus signals: */ 1240s # /** 1240s # * ComAcmeCoyote::surprised: 1240s # * @object: A #ComAcmeCoyote. 1240s # * 1240s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1240s # * 1240s # * 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. 1240s # */ 1240s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1240s # g_signal_new ("surprised", 1240s # G_TYPE_FROM_INTERFACE (iface), 1240s # G_SIGNAL_RUN_LAST, 1240s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1240s # NULL, 1240s # NULL, 1240s # com_acme_coyote_signal_marshal_surprised, 1240s # G_TYPE_NONE, 1240s # 0); 1240s # 1240s # /* GObject properties for D-Bus properties: */ 1240s # /** 1240s # * ComAcmeCoyote:mood: 1240s # * 1240s # * Represents the D-Bus property "Mood". 1240s # * 1240s # * 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. 1240s # */ 1240s # g_object_interface_install_property (iface, 1240s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_get_mood: (skip) 1240s # * @object: A #ComAcmeCoyote. 1240s # * 1240s # * Gets the value of the "Mood" D-Bus property. 1240s # * 1240s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1240s # * 1240s # * 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. 1240s # * 1240s # * 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. 1240s # */ 1240s # const gchar * 1240s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1240s # { 1240s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1240s # 1240s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_dup_mood: (skip) 1240s # * @object: A #ComAcmeCoyote. 1240s # * 1240s # * Gets a copy of the "Mood" D-Bus property. 1240s # * 1240s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1240s # * 1240s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1240s # */ 1240s # gchar * 1240s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1240s # { 1240s # gchar *value; 1240s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1240s # return value; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_set_mood: (skip) 1240s # * @object: A #ComAcmeCoyote. 1240s # * @value: The value to set. 1240s # * 1240s # * Sets the "Mood" D-Bus property to @value. 1240s # * 1240s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1240s # */ 1240s # void 1240s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1240s # { 1240s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_emit_surprised: 1240s # * @object: A #ComAcmeCoyote. 1240s # * 1240s # * Emits the "Surprised" D-Bus signal. 1240s # */ 1240s # void 1240s # com_acme_coyote_emit_surprised ( 1240s # ComAcmeCoyote *object) 1240s # { 1240s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_run: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1240s # * 1240s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1240s # */ 1240s # void 1240s # com_acme_coyote_call_run ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1240s # "Run", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # callback, 1240s # user_data); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_run_finish: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Finishes an operation started with com_acme_coyote_call_run(). 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # com_acme_coyote_call_run_finish ( 1240s # ComAcmeCoyote *proxy, 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_run_sync: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1240s # * 1240s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # com_acme_coyote_call_run_sync ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1240s # "Run", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_sleep: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1240s # * 1240s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1240s # */ 1240s # void 1240s # com_acme_coyote_call_sleep ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1240s # "Sleep", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # callback, 1240s # user_data); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_sleep_finish: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # com_acme_coyote_call_sleep_finish ( 1240s # ComAcmeCoyote *proxy, 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_sleep_sync: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1240s # * 1240s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # com_acme_coyote_call_sleep_sync ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1240s # "Sleep", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_attack: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1240s # * 1240s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1240s # */ 1240s # void 1240s # com_acme_coyote_call_attack ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1240s # "Attack", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # callback, 1240s # user_data); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_attack_finish: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Finishes an operation started with com_acme_coyote_call_attack(). 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # com_acme_coyote_call_attack_finish ( 1240s # ComAcmeCoyote *proxy, 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_call_attack_sync: 1240s # * @proxy: A #ComAcmeCoyoteProxy. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL. 1240s # * 1240s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1240s # * 1240s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1240s # * 1240s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1240s # */ 1240s # gboolean 1240s # com_acme_coyote_call_attack_sync ( 1240s # ComAcmeCoyote *proxy, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GVariant *_ret; 1240s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1240s # "Attack", 1240s # g_variant_new ("()"), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # cancellable, 1240s # error); 1240s # if (_ret == NULL) 1240s # goto _out; 1240s # g_variant_get (_ret, 1240s # "()"); 1240s # g_variant_unref (_ret); 1240s # _out: 1240s # return _ret != NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_complete_run: 1240s # * @object: A #ComAcmeCoyote. 1240s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1240s # * 1240s # * 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. 1240s # * 1240s # * This method will free @invocation, you cannot use it afterwards. 1240s # */ 1240s # void 1240s # com_acme_coyote_complete_run ( 1240s # ComAcmeCoyote *object G_GNUC_UNUSED, 1240s # GDBusMethodInvocation *invocation) 1240s # { 1240s # g_dbus_method_invocation_return_value (invocation, 1240s # g_variant_new ("()")); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_complete_sleep: 1240s # * @object: A #ComAcmeCoyote. 1240s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1240s # * 1240s # * 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. 1240s # * 1240s # * This method will free @invocation, you cannot use it afterwards. 1240s # */ 1240s # void 1240s # com_acme_coyote_complete_sleep ( 1240s # ComAcmeCoyote *object G_GNUC_UNUSED, 1240s # GDBusMethodInvocation *invocation) 1240s # { 1240s # g_dbus_method_invocation_return_value (invocation, 1240s # g_variant_new ("()")); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_complete_attack: 1240s # * @object: A #ComAcmeCoyote. 1240s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1240s # * 1240s # * 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. 1240s # * 1240s # * This method will free @invocation, you cannot use it afterwards. 1240s # */ 1240s # void 1240s # com_acme_coyote_complete_attack ( 1240s # ComAcmeCoyote *object G_GNUC_UNUSED, 1240s # GDBusMethodInvocation *invocation) 1240s # { 1240s # g_dbus_method_invocation_return_value (invocation, 1240s # g_variant_new ("()")); 1240s # } 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # 1240s # /** 1240s # * ComAcmeCoyoteProxy: 1240s # * 1240s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1240s # */ 1240s # 1240s # /** 1240s # * ComAcmeCoyoteProxyClass: 1240s # * @parent_class: The parent class. 1240s # * 1240s # * Class structure for #ComAcmeCoyoteProxy. 1240s # */ 1240s # 1240s # struct _ComAcmeCoyoteProxyPrivate 1240s # { 1240s # GData *qdata; 1240s # }; 1240s # 1240s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1240s # 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1240s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1240s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1240s # 1240s # #else 1240s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1240s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1240s # 1240s # #endif 1240s # static void 1240s # com_acme_coyote_proxy_finalize (GObject *object) 1240s # { 1240s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1240s # g_datalist_clear (&proxy->priv->qdata); 1240s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_get_property (GObject *object, 1240s # guint prop_id, 1240s # GValue *value, 1240s # GParamSpec *pspec G_GNUC_UNUSED) 1240s # { 1240s # const _ExtendedGDBusPropertyInfo *info; 1240s # GVariant *variant; 1240s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1240s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1240s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1240s # if (info->use_gvariant) 1240s # { 1240s # g_value_set_variant (value, variant); 1240s # } 1240s # else 1240s # { 1240s # if (variant != NULL) 1240s # g_dbus_gvariant_to_gvalue (variant, value); 1240s # } 1240s # if (variant != NULL) 1240s # g_variant_unref (variant); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1240s # GAsyncResult *res, 1240s # gpointer user_data) 1240s # { 1240s # const _ExtendedGDBusPropertyInfo *info = user_data; 1240s # GError *error; 1240s # GVariant *_ret; 1240s # error = NULL; 1240s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1240s # if (!_ret) 1240s # { 1240s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1240s # info->parent_struct.name, 1240s # error->message, g_quark_to_string (error->domain), error->code); 1240s # g_error_free (error); 1240s # } 1240s # else 1240s # { 1240s # g_variant_unref (_ret); 1240s # } 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_set_property (GObject *object, 1240s # guint prop_id, 1240s # const GValue *value, 1240s # GParamSpec *pspec G_GNUC_UNUSED) 1240s # { 1240s # const _ExtendedGDBusPropertyInfo *info; 1240s # GVariant *variant; 1240s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1240s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1240s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1240s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1240s # "org.freedesktop.DBus.Properties.Set", 1240s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1240s # G_DBUS_CALL_FLAGS_NONE, 1240s # -1, 1240s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1240s # g_variant_unref (variant); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1240s # const gchar *sender_name G_GNUC_UNUSED, 1240s # const gchar *signal_name, 1240s # GVariant *parameters) 1240s # { 1240s # _ExtendedGDBusSignalInfo *info; 1240s # GVariantIter iter; 1240s # GVariant *child; 1240s # GValue *paramv; 1240s # gsize num_params; 1240s # gsize n; 1240s # guint signal_id; 1240s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1240s # if (info == NULL) 1240s # return; 1240s # num_params = g_variant_n_children (parameters); 1240s # paramv = g_new0 (GValue, num_params + 1); 1240s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1240s # g_value_set_object (¶mv[0], proxy); 1240s # g_variant_iter_init (&iter, parameters); 1240s # n = 1; 1240s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1240s # { 1240s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1240s # if (arg_info->use_gvariant) 1240s # { 1240s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1240s # g_value_set_variant (¶mv[n], child); 1240s # n++; 1240s # } 1240s # else 1240s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1240s # g_variant_unref (child); 1240s # } 1240s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1240s # g_signal_emitv (paramv, signal_id, 0, NULL); 1240s # for (n = 0; n < num_params + 1; n++) 1240s # g_value_unset (¶mv[n]); 1240s # g_free (paramv); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1240s # GVariant *changed_properties, 1240s # const gchar *const *invalidated_properties) 1240s # { 1240s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1240s # guint n; 1240s # const gchar *key; 1240s # GVariantIter *iter; 1240s # _ExtendedGDBusPropertyInfo *info; 1240s # g_variant_get (changed_properties, "a{sv}", &iter); 1240s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1240s # { 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1240s # g_datalist_remove_data (&proxy->priv->qdata, key); 1240s # if (info != NULL) 1240s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1240s # } 1240s # g_variant_iter_free (iter); 1240s # for (n = 0; invalidated_properties[n] != NULL; n++) 1240s # { 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1240s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1240s # if (info != NULL) 1240s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1240s # } 1240s # } 1240s # 1240s # static const gchar * 1240s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1240s # { 1240s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1240s # GVariant *variant; 1240s # const gchar *value = NULL; 1240s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1240s # if (variant != NULL) 1240s # { 1240s # value = g_variant_get_string (variant, NULL); 1240s # g_variant_unref (variant); 1240s # } 1240s # return value; 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1240s # { 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1240s # #else 1240s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1240s # #endif 1240s # 1240s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1240s # { 1240s # GObjectClass *gobject_class; 1240s # GDBusProxyClass *proxy_class; 1240s # 1240s # gobject_class = G_OBJECT_CLASS (klass); 1240s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1240s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1240s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1240s # 1240s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1240s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1240s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1240s # 1240s # com_acme_coyote_override_properties (gobject_class, 1); 1240s # 1240s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1240s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1240s # #endif 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1240s # { 1240s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_proxy_new: 1240s # * @connection: A #GDBusConnection. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1240s # * 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1240s # * 1240s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1240s # */ 1240s # void 1240s # com_acme_coyote_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # 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); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_proxy_new_finish: 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1240s # * 1240s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # ComAcmeCoyote * 1240s # com_acme_coyote_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GObject *ret; 1240s # GObject *source_object; 1240s # source_object = g_async_result_get_source_object (res); 1240s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1240s # g_object_unref (source_object); 1240s # if (ret != NULL) 1240s # return COM_ACME_COYOTE (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_proxy_new_sync: 1240s # * @connection: A #GDBusConnection. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1240s # * 1240s # * The calling thread is blocked until a reply is received. 1240s # * 1240s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1240s # * 1240s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # ComAcmeCoyote * 1240s # com_acme_coyote_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GInitable *ret; 1240s # 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); 1240s # if (ret != NULL) 1240s # return COM_ACME_COYOTE (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # 1240s # /** 1240s # * com_acme_coyote_proxy_new_for_bus: 1240s # * @bus_type: A #GBusType. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: A bus name (well-known or unique). 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1240s # * @user_data: User data to pass to @callback. 1240s # * 1240s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1240s # * 1240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1240s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1240s # * 1240s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1240s # */ 1240s # void 1240s # com_acme_coyote_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data) 1240s # { 1240s # 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); 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_proxy_new_for_bus_finish: 1240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1240s # * 1240s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # ComAcmeCoyote * 1240s # com_acme_coyote_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error) 1240s # { 1240s # GObject *ret; 1240s # GObject *source_object; 1240s # source_object = g_async_result_get_source_object (res); 1240s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1240s # g_object_unref (source_object); 1240s # if (ret != NULL) 1240s # return COM_ACME_COYOTE (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_proxy_new_for_bus_sync: 1240s # * @bus_type: A #GBusType. 1240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1240s # * @name: A bus name (well-known or unique). 1240s # * @object_path: An object path. 1240s # * @cancellable: (nullable): A #GCancellable or %NULL. 1240s # * @error: Return location for error or %NULL 1240s # * 1240s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1240s # * 1240s # * The calling thread is blocked until a reply is received. 1240s # * 1240s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1240s # * 1240s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1240s # */ 1240s # ComAcmeCoyote * 1240s # com_acme_coyote_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error) 1240s # { 1240s # GInitable *ret; 1240s # 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); 1240s # if (ret != NULL) 1240s # return COM_ACME_COYOTE (ret); 1240s # else 1240s # return NULL; 1240s # } 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # 1240s # /** 1240s # * ComAcmeCoyoteSkeleton: 1240s # * 1240s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1240s # */ 1240s # 1240s # /** 1240s # * ComAcmeCoyoteSkeletonClass: 1240s # * @parent_class: The parent class. 1240s # * 1240s # * Class structure for #ComAcmeCoyoteSkeleton. 1240s # */ 1240s # 1240s # struct _ComAcmeCoyoteSkeletonPrivate 1240s # { 1240s # GValue *properties; 1240s # GList *changed_properties; 1240s # GSource *changed_properties_idle_source; 1240s # GMainContext *context; 1240s # GMutex lock; 1240s # }; 1240s # 1240s # static void 1240s # _com_acme_coyote_skeleton_handle_method_call ( 1240s # GDBusConnection *connection G_GNUC_UNUSED, 1240s # const gchar *sender G_GNUC_UNUSED, 1240s # const gchar *object_path G_GNUC_UNUSED, 1240s # const gchar *interface_name, 1240s # const gchar *method_name, 1240s # GVariant *parameters, 1240s # GDBusMethodInvocation *invocation, 1240s # gpointer user_data) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1240s # _ExtendedGDBusMethodInfo *info; 1240s # GVariantIter iter; 1240s # GVariant *child; 1240s # GValue *paramv; 1240s # gsize num_params; 1240s # guint num_extra; 1240s # gsize n; 1240s # guint signal_id; 1240s # GValue return_value = G_VALUE_INIT; 1240s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1240s # g_assert (info != NULL); 1240s # num_params = g_variant_n_children (parameters); 1240s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1240s # n = 0; 1240s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1240s # g_value_set_object (¶mv[n++], skeleton); 1240s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1240s # g_value_set_object (¶mv[n++], invocation); 1240s # if (info->pass_fdlist) 1240s # { 1240s # #ifdef G_OS_UNIX 1240s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1240s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1240s # #else 1240s # g_assert_not_reached (); 1240s # #endif 1240s # } 1240s # g_variant_iter_init (&iter, parameters); 1240s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1240s # { 1240s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1240s # if (arg_info->use_gvariant) 1240s # { 1240s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1240s # g_value_set_variant (¶mv[n], child); 1240s # n++; 1240s # } 1240s # else 1240s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1240s # g_variant_unref (child); 1240s # } 1240s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1240s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1240s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1240s # if (!g_value_get_boolean (&return_value)) 1240s # 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); 1240s # g_value_unset (&return_value); 1240s # for (n = 0; n < num_params + num_extra; n++) 1240s # g_value_unset (¶mv[n]); 1240s # g_free (paramv); 1240s # } 1240s # 1240s # static GVariant * 1240s # _com_acme_coyote_skeleton_handle_get_property ( 1240s # GDBusConnection *connection G_GNUC_UNUSED, 1240s # const gchar *sender G_GNUC_UNUSED, 1240s # const gchar *object_path G_GNUC_UNUSED, 1240s # const gchar *interface_name G_GNUC_UNUSED, 1240s # const gchar *property_name, 1240s # GError **error, 1240s # gpointer user_data) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1240s # GValue value = G_VALUE_INIT; 1240s # GParamSpec *pspec; 1240s # _ExtendedGDBusPropertyInfo *info; 1240s # GVariant *ret; 1240s # ret = NULL; 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1240s # g_assert (info != NULL); 1240s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1240s # if (pspec == NULL) 1240s # { 1240s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1240s # } 1240s # else 1240s # { 1240s # g_value_init (&value, pspec->value_type); 1240s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1240s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1240s # g_value_unset (&value); 1240s # } 1240s # return ret; 1240s # } 1240s # 1240s # static gboolean 1240s # _com_acme_coyote_skeleton_handle_set_property ( 1240s # GDBusConnection *connection G_GNUC_UNUSED, 1240s # const gchar *sender G_GNUC_UNUSED, 1240s # const gchar *object_path G_GNUC_UNUSED, 1240s # const gchar *interface_name G_GNUC_UNUSED, 1240s # const gchar *property_name, 1240s # GVariant *variant, 1240s # GError **error, 1240s # gpointer user_data) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1240s # GValue value = G_VALUE_INIT; 1240s # GParamSpec *pspec; 1240s # _ExtendedGDBusPropertyInfo *info; 1240s # gboolean ret; 1240s # ret = FALSE; 1240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1240s # g_assert (info != NULL); 1240s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1240s # if (pspec == NULL) 1240s # { 1240s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1240s # } 1240s # else 1240s # { 1240s # if (info->use_gvariant) 1240s # g_value_set_variant (&value, variant); 1240s # else 1240s # g_dbus_gvariant_to_gvalue (variant, &value); 1240s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1240s # g_value_unset (&value); 1240s # ret = TRUE; 1240s # } 1240s # return ret; 1240s # } 1240s # 1240s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1240s # { 1240s # _com_acme_coyote_skeleton_handle_method_call, 1240s # _com_acme_coyote_skeleton_handle_get_property, 1240s # _com_acme_coyote_skeleton_handle_set_property, 1240s # {NULL} 1240s # }; 1240s # 1240s # static GDBusInterfaceInfo * 1240s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1240s # { 1240s # return com_acme_coyote_interface_info (); 1240s # } 1240s # 1240s # static GDBusInterfaceVTable * 1240s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1240s # { 1240s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1240s # } 1240s # 1240s # static GVariant * 1240s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1240s # 1240s # GVariantBuilder builder; 1240s # guint n; 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1240s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1240s # #else 1240s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1240s # #endif 1240s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1240s # goto out; 1240s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1240s # { 1240s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1240s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1240s # { 1240s # GVariant *value; 1240s # 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); 1240s # if (value != NULL) 1240s # { 1240s # g_variant_take_ref (value); 1240s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1240s # g_variant_unref (value); 1240s # } 1240s # } 1240s # } 1240s # out: 1240s # return g_variant_builder_end (&builder); 1240s # } 1240s # 1240s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1240s # gboolean emit_changed = FALSE; 1240s # 1240s # g_mutex_lock (&skeleton->priv->lock); 1240s # if (skeleton->priv->changed_properties_idle_source != NULL) 1240s # { 1240s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1240s # skeleton->priv->changed_properties_idle_source = NULL; 1240s # emit_changed = TRUE; 1240s # } 1240s # g_mutex_unlock (&skeleton->priv->lock); 1240s # 1240s # if (emit_changed) 1240s # _com_acme_coyote_emit_changed (skeleton); 1240s # } 1240s # 1240s # static void 1240s # _com_acme_coyote_on_signal_surprised ( 1240s # ComAcmeCoyote *object) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1240s # 1240s # GList *connections, *l; 1240s # GVariant *signal_variant; 1240s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1240s # 1240s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1240s # for (l = connections; l != NULL; l = l->next) 1240s # { 1240s # GDBusConnection *connection = l->data; 1240s # g_dbus_connection_emit_signal (connection, 1240s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1240s # signal_variant, NULL); 1240s # } 1240s # g_variant_unref (signal_variant); 1240s # g_list_free_full (connections, g_object_unref); 1240s # } 1240s # 1240s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1240s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1240s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1240s # 1240s # #else 1240s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1240s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1240s # 1240s # #endif 1240s # static void 1240s # com_acme_coyote_skeleton_finalize (GObject *object) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1240s # guint n; 1240s # for (n = 0; n < 1; n++) 1240s # g_value_unset (&skeleton->priv->properties[n]); 1240s # g_free (skeleton->priv->properties); 1240s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1240s # if (skeleton->priv->changed_properties_idle_source != NULL) 1240s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1240s # g_main_context_unref (skeleton->priv->context); 1240s # g_mutex_clear (&skeleton->priv->lock); 1240s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_get_property (GObject *object, 1240s # guint prop_id, 1240s # GValue *value, 1240s # GParamSpec *pspec G_GNUC_UNUSED) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1240s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1240s # g_mutex_lock (&skeleton->priv->lock); 1240s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1240s # g_mutex_unlock (&skeleton->priv->lock); 1240s # } 1240s # 1240s # static gboolean 1240s # _com_acme_coyote_emit_changed (gpointer user_data) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1240s # GList *l; 1240s # GVariantBuilder builder; 1240s # GVariantBuilder invalidated_builder; 1240s # guint num_changes; 1240s # 1240s # g_mutex_lock (&skeleton->priv->lock); 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1240s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1240s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1240s # #else 1240s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1240s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1240s # #endif 1240s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1240s # { 1240s # ChangedProperty *cp = l->data; 1240s # GVariant *variant; 1240s # const GValue *cur_value; 1240s # 1240s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1240s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1240s # { 1240s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1240s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1240s # g_variant_unref (variant); 1240s # num_changes++; 1240s # } 1240s # } 1240s # if (num_changes > 0) 1240s # { 1240s # GList *connections, *ll; 1240s # GVariant *signal_variant; 1240s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1240s # &builder, &invalidated_builder)); 1240s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1240s # for (ll = connections; ll != NULL; ll = ll->next) 1240s # { 1240s # GDBusConnection *connection = ll->data; 1240s # 1240s # g_dbus_connection_emit_signal (connection, 1240s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1240s # "org.freedesktop.DBus.Properties", 1240s # "PropertiesChanged", 1240s # signal_variant, 1240s # NULL); 1240s # } 1240s # g_variant_unref (signal_variant); 1240s # g_list_free_full (connections, g_object_unref); 1240s # } 1240s # else 1240s # { 1240s # g_variant_builder_clear (&builder); 1240s # g_variant_builder_clear (&invalidated_builder); 1240s # } 1240s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1240s # skeleton->priv->changed_properties = NULL; 1240s # skeleton->priv->changed_properties_idle_source = NULL; 1240s # g_mutex_unlock (&skeleton->priv->lock); 1240s # return FALSE; 1240s # } 1240s # 1240s # static void 1240s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1240s # { 1240s # ChangedProperty *cp; 1240s # GList *l; 1240s # cp = NULL; 1240s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1240s # { 1240s # ChangedProperty *i_cp = l->data; 1240s # if (i_cp->info == info) 1240s # { 1240s # cp = i_cp; 1240s # break; 1240s # } 1240s # } 1240s # if (cp == NULL) 1240s # { 1240s # cp = g_new0 (ChangedProperty, 1); 1240s # cp->prop_id = prop_id; 1240s # cp->info = info; 1240s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1240s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1240s # g_value_copy (orig_value, &cp->orig_value); 1240s # } 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_notify (GObject *object, 1240s # GParamSpec *pspec G_GNUC_UNUSED) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1240s # g_mutex_lock (&skeleton->priv->lock); 1240s # if (skeleton->priv->changed_properties != NULL && 1240s # skeleton->priv->changed_properties_idle_source == NULL) 1240s # { 1240s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1240s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1240s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1240s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1240s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1240s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1240s # } 1240s # g_mutex_unlock (&skeleton->priv->lock); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_set_property (GObject *object, 1240s # guint prop_id, 1240s # const GValue *value, 1240s # GParamSpec *pspec) 1240s # { 1240s # const _ExtendedGDBusPropertyInfo *info; 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1240s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1240s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1240s # g_mutex_lock (&skeleton->priv->lock); 1240s # g_object_freeze_notify (object); 1240s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1240s # { 1240s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1240s # info->emits_changed_signal) 1240s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1240s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1240s # g_object_notify_by_pspec (object, pspec); 1240s # } 1240s # g_mutex_unlock (&skeleton->priv->lock); 1240s # g_object_thaw_notify (object); 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1240s # { 1240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1240s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1240s # #else 1240s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1240s # #endif 1240s # 1240s # g_mutex_init (&skeleton->priv->lock); 1240s # skeleton->priv->context = g_main_context_ref_thread_default (); 1240s # skeleton->priv->properties = g_new0 (GValue, 1); 1240s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1240s # } 1240s # 1240s # static const gchar * 1240s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1240s # { 1240s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1240s # const gchar *value; 1240s # g_mutex_lock (&skeleton->priv->lock); 1240s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1240s # g_mutex_unlock (&skeleton->priv->lock); 1240s # return value; 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1240s # { 1240s # GObjectClass *gobject_class; 1240s # GDBusInterfaceSkeletonClass *skeleton_class; 1240s # 1240s # gobject_class = G_OBJECT_CLASS (klass); 1240s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1240s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1240s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1240s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1240s # 1240s # 1240s # com_acme_coyote_override_properties (gobject_class, 1); 1240s # 1240s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1240s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1240s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1240s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1240s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1240s # 1240s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1240s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1240s # #endif 1240s # } 1240s # 1240s # static void 1240s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1240s # { 1240s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1240s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1240s # } 1240s # 1240s # /** 1240s # * com_acme_coyote_skeleton_new: 1240s # * 1240s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1240s # * 1240s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1240s # */ 1240s # ComAcmeCoyote * 1240s # com_acme_coyote_skeleton_new (void) 1240s # { 1240s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1240s # } 1240s # Error: 1240s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 1240s # gdbus-codegen: /usr/bin/gdbus-codegen 1240s # tmpdir: /tmp/tmpij50rwuu 1240s # /tmp/tmpij50rwuu/tmp161m774o.xml: 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpij50rwuu/tmp161m774o.xml', '--output', '-', '--header'] 1240s # Return code: 0 1240s # Output: 1240s # /* 1240s # * This file is generated by gdbus-codegen, do not modify it. 1240s # * 1240s # * The license of this code is the same as for the D-Bus interface description 1240s # * it was derived from. Note that it links to GLib, so must comply with the 1240s # * LGPL linking clauses. 1240s # */ 1240s # 1240s # #ifndef __STDOUT__ 1240s # #define __STDOUT__ 1240s # 1240s # #include 1240s # 1240s # G_BEGIN_DECLS 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # /* Declarations for FDPassing */ 1240s # 1240s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1240s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1240s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1240s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1240s # 1240s # struct _FDPassing; 1240s # typedef struct _FDPassing FDPassing; 1240s # typedef struct _FDPassingIface FDPassingIface; 1240s # 1240s # struct _FDPassingIface 1240s # { 1240s # GTypeInterface parent_iface; 1240s # 1240s # gboolean (*handle_hello_fd) ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GUnixFDList *fd_list, 1240s # const gchar *arg_greeting); 1240s # 1240s # gboolean (*handle_no_annotation) ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GVariant *arg_greeting, 1240s # const gchar *arg_greeting_locale); 1240s # 1240s # gboolean (*handle_no_annotation_nested) ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GVariant *arg_files); 1240s # 1240s # }; 1240s # 1240s # GType fdpassing_get_type (void) G_GNUC_CONST; 1240s # 1240s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1240s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1240s # 1240s # 1240s # /* D-Bus method call completion functions: */ 1240s # void fdpassing_complete_hello_fd ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GUnixFDList *fd_list, 1240s # const gchar *response); 1240s # 1240s # void fdpassing_complete_no_annotation ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GVariant *response, 1240s # const gchar *response_locale); 1240s # 1240s # void fdpassing_complete_no_annotation_nested ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # 1240s # 1240s # /* D-Bus method calls: */ 1240s # void fdpassing_call_hello_fd ( 1240s # FDPassing *proxy, 1240s # const gchar *arg_greeting, 1240s # GUnixFDList *fd_list, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean fdpassing_call_hello_fd_finish ( 1240s # FDPassing *proxy, 1240s # gchar **out_response, 1240s # GUnixFDList **out_fd_list, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean fdpassing_call_hello_fd_sync ( 1240s # FDPassing *proxy, 1240s # const gchar *arg_greeting, 1240s # GUnixFDList *fd_list, 1240s # gchar **out_response, 1240s # GUnixFDList **out_fd_list, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void fdpassing_call_no_annotation ( 1240s # FDPassing *proxy, 1240s # GVariant *arg_greeting, 1240s # const gchar *arg_greeting_locale, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean fdpassing_call_no_annotation_finish ( 1240s # FDPassing *proxy, 1240s # GVariant **out_response, 1240s # gchar **out_response_locale, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean fdpassing_call_no_annotation_sync ( 1240s # FDPassing *proxy, 1240s # GVariant *arg_greeting, 1240s # const gchar *arg_greeting_locale, 1240s # GVariant **out_response, 1240s # gchar **out_response_locale, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void fdpassing_call_no_annotation_nested ( 1240s # FDPassing *proxy, 1240s # GVariant *arg_files, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean fdpassing_call_no_annotation_nested_finish ( 1240s # FDPassing *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean fdpassing_call_no_annotation_nested_sync ( 1240s # FDPassing *proxy, 1240s # GVariant *arg_files, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1240s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1240s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1240s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1240s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1240s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1240s # 1240s # typedef struct _FDPassingProxy FDPassingProxy; 1240s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1240s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1240s # 1240s # struct _FDPassingProxy 1240s # { 1240s # /*< private >*/ 1240s # GDBusProxy parent_instance; 1240s # FDPassingProxyPrivate *priv; 1240s # }; 1240s # 1240s # struct _FDPassingProxyClass 1240s # { 1240s # GDBusProxyClass parent_class; 1240s # }; 1240s # 1240s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1240s # #endif 1240s # 1240s # void fdpassing_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # FDPassing *fdpassing_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # FDPassing *fdpassing_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void fdpassing_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1240s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1240s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1240s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1240s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1240s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1240s # 1240s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1240s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1240s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1240s # 1240s # struct _FDPassingSkeleton 1240s # { 1240s # /*< private >*/ 1240s # GDBusInterfaceSkeleton parent_instance; 1240s # FDPassingSkeletonPrivate *priv; 1240s # }; 1240s # 1240s # struct _FDPassingSkeletonClass 1240s # { 1240s # GDBusInterfaceSkeletonClass parent_class; 1240s # }; 1240s # 1240s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1240s # #endif 1240s # 1240s # FDPassing *fdpassing_skeleton_new (void); 1240s # 1240s # 1240s # G_END_DECLS 1240s # 1240s # #endif /* __STDOUT__ */ 1240s # Error: 1240s # 1240s # /tmp/tmpij50rwuu/tmpo_6uqiee.xml: 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpij50rwuu/tmpo_6uqiee.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1240s # Return code: 0 1240s # Output: 1240s # /* 1240s # * This file is generated by gdbus-codegen, do not modify it. 1240s # * 1240s # * The license of this code is the same as for the D-Bus interface description 1240s # * it was derived from. Note that it links to GLib, so must comply with the 1240s # * LGPL linking clauses. 1240s # */ 1240s # 1240s # #ifndef __STDOUT__ 1240s # #define __STDOUT__ 1240s # 1240s # #include 1240s # 1240s # G_BEGIN_DECLS 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # /* Declarations for FDPassing */ 1240s # 1240s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1240s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1240s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1240s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1240s # 1240s # struct _FDPassing; 1240s # typedef struct _FDPassing FDPassing; 1240s # typedef struct _FDPassingIface FDPassingIface; 1240s # 1240s # struct _FDPassingIface 1240s # { 1240s # GTypeInterface parent_iface; 1240s # 1240s # gboolean (*handle_hello_fd) ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GUnixFDList *fd_list, 1240s # const gchar *arg_greeting); 1240s # 1240s # gboolean (*handle_no_annotation) ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GVariant *arg_greeting, 1240s # const gchar *arg_greeting_locale); 1240s # 1240s # gboolean (*handle_no_annotation_nested) ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GVariant *arg_files); 1240s # 1240s # }; 1240s # 1240s # GType fdpassing_get_type (void) G_GNUC_CONST; 1240s # 1240s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1240s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1240s # 1240s # 1240s # /* D-Bus method call completion functions: */ 1240s # void fdpassing_complete_hello_fd ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GUnixFDList *fd_list, 1240s # const gchar *response); 1240s # 1240s # void fdpassing_complete_no_annotation ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GVariant *response, 1240s # const gchar *response_locale); 1240s # 1240s # void fdpassing_complete_no_annotation_nested ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation); 1240s # 1240s # 1240s # 1240s # /* D-Bus method calls: */ 1240s # void fdpassing_call_hello_fd ( 1240s # FDPassing *proxy, 1240s # const gchar *arg_greeting, 1240s # GUnixFDList *fd_list, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean fdpassing_call_hello_fd_finish ( 1240s # FDPassing *proxy, 1240s # gchar **out_response, 1240s # GUnixFDList **out_fd_list, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean fdpassing_call_hello_fd_sync ( 1240s # FDPassing *proxy, 1240s # const gchar *arg_greeting, 1240s # GUnixFDList *fd_list, 1240s # gchar **out_response, 1240s # GUnixFDList **out_fd_list, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void fdpassing_call_no_annotation ( 1240s # FDPassing *proxy, 1240s # GVariant *arg_greeting, 1240s # const gchar *arg_greeting_locale, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean fdpassing_call_no_annotation_finish ( 1240s # FDPassing *proxy, 1240s # GVariant **out_response, 1240s # gchar **out_response_locale, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean fdpassing_call_no_annotation_sync ( 1240s # FDPassing *proxy, 1240s # GVariant *arg_greeting, 1240s # const gchar *arg_greeting_locale, 1240s # GVariant **out_response, 1240s # gchar **out_response_locale, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void fdpassing_call_no_annotation_nested ( 1240s # FDPassing *proxy, 1240s # GVariant *arg_files, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean fdpassing_call_no_annotation_nested_finish ( 1240s # FDPassing *proxy, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean fdpassing_call_no_annotation_nested_sync ( 1240s # FDPassing *proxy, 1240s # GVariant *arg_files, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1240s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1240s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1240s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1240s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1240s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1240s # 1240s # typedef struct _FDPassingProxy FDPassingProxy; 1240s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1240s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1240s # 1240s # struct _FDPassingProxy 1240s # { 1240s # /*< private >*/ 1240s # GDBusProxy parent_instance; 1240s # FDPassingProxyPrivate *priv; 1240s # }; 1240s # 1240s # struct _FDPassingProxyClass 1240s # { 1240s # GDBusProxyClass parent_class; 1240s # }; 1240s # 1240s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1240s # #endif 1240s # 1240s # void fdpassing_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # FDPassing *fdpassing_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # FDPassing *fdpassing_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void fdpassing_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1240s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1240s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1240s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1240s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1240s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1240s # 1240s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1240s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1240s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1240s # 1240s # struct _FDPassingSkeleton 1240s # { 1240s # /*< private >*/ 1240s # GDBusInterfaceSkeleton parent_instance; 1240s # FDPassingSkeletonPrivate *priv; 1240s # }; 1240s # 1240s # struct _FDPassingSkeletonClass 1240s # { 1240s # GDBusInterfaceSkeletonClass parent_class; 1240s # }; 1240s # 1240s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1240s # #endif 1240s # 1240s # FDPassing *fdpassing_skeleton_new (void); 1240s # 1240s # 1240s # G_END_DECLS 1240s # 1240s # #endif /* __STDOUT__ */ 1240s # Error: 1240s # 1240s # /tmp/tmpij50rwuu/tmpj2916t4y.xml: 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # 1240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpij50rwuu/tmpj2916t4y.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1240s # Return code: 0 1240s # Output: 1240s # /* 1240s # * This file is generated by gdbus-codegen, do not modify it. 1240s # * 1240s # * The license of this code is the same as for the D-Bus interface description 1240s # * it was derived from. Note that it links to GLib, so must comply with the 1240s # * LGPL linking clauses. 1240s # */ 1240s # 1240s # #ifndef __STDOUT__ 1240s # #define __STDOUT__ 1240s # 1240s # #include 1240s # 1240s # G_BEGIN_DECLS 1240s # 1240s # 1240s # /* ------------------------------------------------------------------------ */ 1240s # /* Declarations for FDPassing */ 1240s # 1240s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1240s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1240s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1240s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1240s # 1240s # struct _FDPassing; 1240s # typedef struct _FDPassing FDPassing; 1240s # typedef struct _FDPassingIface FDPassingIface; 1240s # 1240s # struct _FDPassingIface 1240s # { 1240s # GTypeInterface parent_iface; 1240s # 1240s # gboolean (*handle_hello_fd) ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GUnixFDList *fd_list, 1240s # const gchar *arg_greeting); 1240s # 1240s # gboolean (*handle_no_annotation) ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GUnixFDList *fd_list, 1240s # GVariant *arg_greeting, 1240s # const gchar *arg_greeting_locale); 1240s # 1240s # gboolean (*handle_no_annotation_nested) ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GUnixFDList *fd_list, 1240s # GVariant *arg_files); 1240s # 1240s # }; 1240s # 1240s # GType fdpassing_get_type (void) G_GNUC_CONST; 1240s # 1240s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1240s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1240s # 1240s # 1240s # /* D-Bus method call completion functions: */ 1240s # void fdpassing_complete_hello_fd ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GUnixFDList *fd_list, 1240s # const gchar *response); 1240s # 1240s # void fdpassing_complete_no_annotation ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GUnixFDList *fd_list, 1240s # GVariant *response, 1240s # const gchar *response_locale); 1240s # 1240s # void fdpassing_complete_no_annotation_nested ( 1240s # FDPassing *object, 1240s # GDBusMethodInvocation *invocation, 1240s # GUnixFDList *fd_list); 1240s # 1240s # 1240s # 1240s # /* D-Bus method calls: */ 1240s # void fdpassing_call_hello_fd ( 1240s # FDPassing *proxy, 1240s # const gchar *arg_greeting, 1240s # GDBusCallFlags call_flags, 1240s # gint timeout_msec, 1240s # GUnixFDList *fd_list, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean fdpassing_call_hello_fd_finish ( 1240s # FDPassing *proxy, 1240s # gchar **out_response, 1240s # GUnixFDList **out_fd_list, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean fdpassing_call_hello_fd_sync ( 1240s # FDPassing *proxy, 1240s # const gchar *arg_greeting, 1240s # GDBusCallFlags call_flags, 1240s # gint timeout_msec, 1240s # GUnixFDList *fd_list, 1240s # gchar **out_response, 1240s # GUnixFDList **out_fd_list, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void fdpassing_call_no_annotation ( 1240s # FDPassing *proxy, 1240s # GVariant *arg_greeting, 1240s # const gchar *arg_greeting_locale, 1240s # GDBusCallFlags call_flags, 1240s # gint timeout_msec, 1240s # GUnixFDList *fd_list, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean fdpassing_call_no_annotation_finish ( 1240s # FDPassing *proxy, 1240s # GVariant **out_response, 1240s # gchar **out_response_locale, 1240s # GUnixFDList **out_fd_list, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean fdpassing_call_no_annotation_sync ( 1240s # FDPassing *proxy, 1240s # GVariant *arg_greeting, 1240s # const gchar *arg_greeting_locale, 1240s # GDBusCallFlags call_flags, 1240s # gint timeout_msec, 1240s # GUnixFDList *fd_list, 1240s # GVariant **out_response, 1240s # gchar **out_response_locale, 1240s # GUnixFDList **out_fd_list, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void fdpassing_call_no_annotation_nested ( 1240s # FDPassing *proxy, 1240s # GVariant *arg_files, 1240s # GDBusCallFlags call_flags, 1240s # gint timeout_msec, 1240s # GUnixFDList *fd_list, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # 1240s # gboolean fdpassing_call_no_annotation_nested_finish ( 1240s # FDPassing *proxy, 1240s # GUnixFDList **out_fd_list, 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # 1240s # gboolean fdpassing_call_no_annotation_nested_sync ( 1240s # FDPassing *proxy, 1240s # GVariant *arg_files, 1240s # GDBusCallFlags call_flags, 1240s # gint timeout_msec, 1240s # GUnixFDList *fd_list, 1240s # GUnixFDList **out_fd_list, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1240s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1240s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1240s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1240s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1240s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1240s # 1240s # typedef struct _FDPassingProxy FDPassingProxy; 1240s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1240s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1240s # 1240s # struct _FDPassingProxy 1240s # { 1240s # /*< private >*/ 1240s # GDBusProxy parent_instance; 1240s # FDPassingProxyPrivate *priv; 1240s # }; 1240s # 1240s # struct _FDPassingProxyClass 1240s # { 1240s # GDBusProxyClass parent_class; 1240s # }; 1240s # 1240s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1240s # #endif 1240s # 1240s # void fdpassing_proxy_new ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # FDPassing *fdpassing_proxy_new_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # FDPassing *fdpassing_proxy_new_sync ( 1240s # GDBusConnection *connection, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # void fdpassing_proxy_new_for_bus ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GAsyncReadyCallback callback, 1240s # gpointer user_data); 1240s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1240s # GAsyncResult *res, 1240s # GError **error); 1240s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1240s # GBusType bus_type, 1240s # GDBusProxyFlags flags, 1240s # const gchar *name, 1240s # const gchar *object_path, 1240s # GCancellable *cancellable, 1240s # GError **error); 1240s # 1240s # 1240s # /* ---- */ 1240s # 1240s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1240s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1240s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1240s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1240s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1240s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1240s # 1240s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1240s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1240s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1240s # 1240s # struct _FDPassingSkeleton 1240s # { 1240s # /*< private >*/ 1240s # GDBusInterfaceSkeleton parent_instance; 1240s # FDPassingSkeletonPrivate *priv; 1240s # }; 1240s # 1240s # struct _FDPassingSkeletonClass 1240s # { 1240s # GDBusInterfaceSkeletonClass parent_class; 1240s # }; 1240s # 1240s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1240s # 1240s # #if GLIB_CHECK_VERSION(2, 44, 0) 1240s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1240s # #endif 1240s # 1240s # FDPassing *fdpassing_skeleton_new (void); 1240s # 1240s # 1240s # G_END_DECLS 1240s # 1240s # #endif /* __STDOUT__ */ 1240s # Error: 1240s 1..39 1240s ok - glib/codegen.py.test 1240s # Running test: glib/live-g-file.test 1240s TAP version 14 1240s # random seed: R02Sa8e4e85d275985695a703041fe7af14f 1240s 1..13 1240s # Start of live-g-file tests 1240s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/prep_clean_structure/.dirs/home 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/prep_clean_structure/.dirs/cache 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/prep_clean_structure/.dirs/system-config2 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/prep_clean_structure/.dirs/config 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/prep_clean_structure/.dirs/system-data2 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/prep_clean_structure/.dirs/data 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/prep_clean_structure/.dirs/state 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/prep_clean_structure/.dirs/runtime 1240s # Cleaning target testing structure in '/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file'... 1240s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1240s ok 1 /live-g-file/prep_clean_structure 1240s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/create_structure/.dirs/home 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/create_structure/.dirs/cache 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/create_structure/.dirs/system-config2 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/create_structure/.dirs/config 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/create_structure/.dirs/system-data2 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/create_structure/.dirs/data 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/create_structure/.dirs/state 1240s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/create_structure/.dirs/runtime 1240s # 1240s # Going to create testing structure in '/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file'... 1240s # Creating directory 'dir1'... 1240s # Creating directory 'dir1/subdir'... 1240s # Creating directory 'dir2'... 1240s # Creating directory 'dir-target'... 1240s # Creating directory 'dir_no-access'... 1240s # Creating directory 'dir_no-write'... 1240s # Creating file 'target-file'... 1240s # Creating file 'normal_file'... 1240s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 1240s # Creating file 'executable_file'... 1240s # Creating file 'private_file'... 1240s # Creating file 'normal_file2'... 1240s # Creating file 'readonly_file'... 1240s # Creating file 'UTF_příliš z'... 1240s # Creating directory 'dir_příliš z'... 1240s # Creating symlink 'lost_symlink' --> 'nowhere'... 1240s # Creating directory 'dir_hidden'... 1240s # Creating file 'dir_hidden/.a-hidden-file'... 1240s # Creating file 'dir_hidden/file-in-.hidden1'... 1240s # Creating file 'dir_hidden/file-in-.hidden2'... 1240s # Creating pattern file... 1241s # done. 1241s ok 2 /live-g-file/create_structure 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_initial_structure/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_initial_structure/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_initial_structure/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_initial_structure/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_initial_structure/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_initial_structure/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_initial_structure/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_initial_structure/.dirs/runtime 1241s # Testing sample structure in '/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file'... 1241s # Testing file 'dir1'... 1241s # Testing file 'dir1/subdir'... 1241s # Testing file 'dir2'... 1241s # Testing file 'dir-target'... 1241s # Testing file 'dir_no-access'... 1241s # Testing file 'dir_no-write'... 1241s # Testing file 'target-file'... 1241s # Testing file 'normal_file'... 1241s # Testing file 'normal_file-symlink'... 1241s # Testing file 'executable_file'... 1241s # Testing file 'private_file'... 1241s # Testing file 'normal_file2'... 1241s # Testing file 'readonly_file'... 1241s # Testing file 'UTF_příliš z'... 1241s # Testing file 'dir_příliš z'... 1241s # Testing file 'lost_symlink'... 1241s # Testing file 'dir_hidden'... 1241s # Testing file 'dir_hidden/.a-hidden-file'... 1241s # Testing file 'dir_hidden/file-in-.hidden1'... 1241s # Testing file 'dir_hidden/file-in-.hidden2'... 1241s # Testing pattern file... 1241s # read 65536 bytes, total = 65536 of 65536. 1241s ok 3 /live-g-file/test_initial_structure 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_traverse_structure/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_traverse_structure/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_traverse_structure/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_traverse_structure/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_traverse_structure/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_traverse_structure/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_traverse_structure/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_traverse_structure/.dirs/runtime 1241s # Traversing through the sample structure in '/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file'... 1241s # Found file dir1, relative to root: dir1 1241s # Found file subdir, relative to root: dir1/subdir 1241s # Found file dir2, relative to root: dir2 1241s # Found file dir-target, relative to root: dir-target 1241s # Found file dir_no-access, relative to root: dir_no-access 1241s # Found file dir_no-write, relative to root: dir_no-write 1241s # Found file target-file, relative to root: target-file 1241s # Found file normal_file, relative to root: normal_file 1241s # Found file normal_file-symlink, relative to root: normal_file-symlink 1241s # Found file executable_file, relative to root: executable_file 1241s # Found file private_file, relative to root: private_file 1241s # Found file normal_file2, relative to root: normal_file2 1241s # Found file readonly_file, relative to root: readonly_file 1241s # Found file UTF_příliš z, relative to root: UTF_příliš z 1241s # Found file dir_příliš z, relative to root: dir_příliš z 1241s # Found file lost_symlink, relative to root: lost_symlink 1241s # Found file dir_hidden, relative to root: dir_hidden 1241s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 1241s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 1241s # Found file .hidden, relative to root: dir_hidden/.hidden 1241s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 1241s # Found file pattern_file, relative to root: pattern_file 1241s ok 4 /live-g-file/test_traverse_structure 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_enumerate/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_enumerate/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_enumerate/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_enumerate/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_enumerate/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_enumerate/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_enumerate/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_enumerate/.dirs/runtime 1241s # Test enumerate '/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file'... 1241s # Testing file 'dir_no-access' 1241s # Testing file 'normal_file' 1241s # Testing file 'normal_file-symlink' 1241s # Testing file 'not_exists' 1241s # Testing file 'not_exists' 1241s # Testing file 'not_exists2' 1241s # Testing file 'not_exists3' 1241s # Testing file 'not_exists4' 1241s # Testing file 'dir_no-execute/file' 1241s ok 5 /live-g-file/test_enumerate 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_open/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_open/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_open/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_open/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_open/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_open/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_open/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_open/.dirs/runtime 1241s # test_open: 'dir1' 1241s # test_open: 'dir_no-access' 1241s # test_open: 'target-file' 1241s # test_open: 'normal_file-symlink' 1241s # test_open: 'executable_file' 1241s # test_open: 'private_file' 1241s # test_open: 'readonly_file' 1241s # test_open: 'UTF_příliš z' 1241s # test_open: 'pattern_file' 1241s # test_open: 'not_exists' 1241s # test_open: 'dir_no-execute/file' 1241s # test_open: 'lost_symlink' 1241s ok 6 /live-g-file/test_open 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_create/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_create/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_create/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_create/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_create/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_create/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_create/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_create/.dirs/runtime 1241s # test_create: 'dir1' 1241s # error code 3 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir1”: Is a directory 1241s # test_create: 'dir1/subdir' 1241s # error code 3 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir1/subdir”: Is a directory 1241s # test_create: 'dir2' 1241s # error code 2 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir2”: File exists 1241s # test_create: 'normal_file' 1241s # error code 2 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/normal_file”: File exists 1241s # test_create: 'executable_file' 1241s # test_create: 'private_file' 1241s # test_create: 'normal_file2' 1241s # test_create: 'UTF_příliš z' 1241s # error code 2 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/UTF_příliš z”: File exists 1241s # test_create: 'dir_příliš z' 1241s # error code 2 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_příliš z”: File exists 1241s # test_create: 'pattern_file' 1241s # test_create: 'not_exists2' 1241s # test_create: 'not_exists3' 1241s # test_create: 'not_exists4' 1241s ok 7 /live-g-file/test_create 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_copy_move/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_copy_move/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_copy_move/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_copy_move/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_copy_move/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_copy_move/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_copy_move/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_copy_move/.dirs/runtime 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir1/subdir' --> 'dir-target' 1241s # res = 0, error code 25 = Can’t recursively copy directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir1/subdir' --> '.' 1241s # res = 0, error code 2 = Target file exists 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir1/subdir' --> 'target-file' 1241s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/target-file/dir1/subdir”: Not a directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir1/subdir' --> 'not_exists' 1241s # res = 0, error code 25 = Can’t recursively copy directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 1241s # res = 0, error code 25 = Can’t recursively copy directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 1241s # res = 0, error code 25 = Can’t recursively copy directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir2' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir-target' --> 'dir-target' 1241s # res = 0, error code 25 = Can’t recursively copy directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir-target' --> '.' 1241s # res = 0, error code 2 = Target file exists 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir-target' --> 'target-file' 1241s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/target-file/dir-target”: Not a directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir-target' --> 'not_exists' 1241s # res = 0, error code 25 = Can’t recursively copy directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir-target' --> 'dir_no-access' 1241s # res = 0, error code 25 = Can’t recursively copy directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'dir-target' --> 'dir_no-write' 1241s # res = 0, error code 25 = Can’t recursively copy directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'target-file' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'target-file' --> '.' 1241s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/target-file”: File exists 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'target-file' --> 'target-file' 1241s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/target-file/target-file”: Not a directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'target-file' --> 'not_exists' 1241s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists/target-file”: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'target-file' --> 'dir_no-access' 1241s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-access/target-file”: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'target-file' --> 'dir_no-write' 1241s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-write/target-file”: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file-symlink' --> '.' 1241s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/normal_file-symlink: File exists 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file-symlink' --> 'target-file' 1241s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 1241s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 1241s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 1241s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'executable_file' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'executable_file' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'executable_file' --> '.' 1241s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/executable_file”: File exists 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'executable_file' --> 'target-file' 1241s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/target-file/executable_file”: Not a directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'executable_file' --> 'not_exists' 1241s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists/executable_file”: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'executable_file' --> 'dir_no-access' 1241s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-access/executable_file”: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'executable_file' --> 'dir_no-write' 1241s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-write/executable_file”: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'private_file' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'private_file' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'private_file' --> '.' 1241s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/private_file”: File exists 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'private_file' --> 'target-file' 1241s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/target-file/private_file”: Not a directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'private_file' --> 'not_exists' 1241s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists/private_file”: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'private_file' --> 'dir_no-access' 1241s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-access/private_file”: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'private_file' --> 'dir_no-write' 1241s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-write/private_file”: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file2' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file2' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file2' --> '.' 1241s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/normal_file2”: File exists 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file2' --> 'target-file' 1241s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/target-file/normal_file2”: Not a directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file2' --> 'not_exists' 1241s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists/normal_file2”: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file2' --> 'dir_no-access' 1241s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-access/normal_file2”: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'normal_file2' --> 'dir_no-write' 1241s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-write/normal_file2”: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'UTF_příliš z' --> '.' 1241s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/UTF_příliš z”: File exists 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'UTF_příliš z' --> 'target-file' 1241s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/target-file/UTF_příliš z”: Not a directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'UTF_příliš z' --> 'not_exists' 1241s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists/UTF_příliš z”: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'UTF_příliš z' --> 'dir_no-access' 1241s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-access/UTF_příliš z”: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'UTF_příliš z' --> 'dir_no-write' 1241s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-write/UTF_příliš z”: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'pattern_file' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'pattern_file' --> '.' 1241s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/pattern_file”: File exists 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'pattern_file' --> 'target-file' 1241s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/target-file/pattern_file”: Not a directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'pattern_file' --> 'not_exists' 1241s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists/pattern_file”: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'pattern_file' --> 'dir_no-access' 1241s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-access/pattern_file”: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'pattern_file' --> 'dir_no-write' 1241s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-write/pattern_file”: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'not_exists' --> 'dir-target' 1241s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists”: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'not_exists' --> '.' 1241s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists”: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'not_exists' --> 'target-file' 1241s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists”: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'not_exists' --> 'not_exists' 1241s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists”: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'not_exists' --> 'dir_no-access' 1241s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists”: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'not_exists' --> 'dir_no-write' 1241s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists”: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'not_exists' --> 'dir-target' 1241s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'lost_symlink' --> 'dir-target' 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'lost_symlink' --> '.' 1241s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/lost_symlink: File exists 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'lost_symlink' --> 'target-file' 1241s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/target-file/lost_symlink: Not a directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'lost_symlink' --> 'not_exists' 1241s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 1241s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 1241s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 1241s ok 8 /live-g-file/test_copy_move 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_delete/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_delete/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_delete/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_delete/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_delete/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_delete/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_delete/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_delete/.dirs/runtime 1241s # Deleting dir1, path = /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir1 1241s # result = 0, error = Error removing file /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir1: Directory not empty 1241s # Deleting dir2, path = /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir2 1241s # result = 0, error = Error removing file /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir2: No such file or directory 1241s # Deleting executable_file, path = /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/executable_file 1241s # result = 0, error = Error trashing file /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/executable_file: No such file or directory 1241s # Deleting readonly_file, path = /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/readonly_file 1241s # Deleting dir_příliš z, path = /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_příliš z 1241s # Deleting not_exists, path = /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists 1241s # result = 0, error = Error removing file /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists: No such file or directory 1241s # Deleting not_exists, path = /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists 1241s # result = 0, error = Error trashing file /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/not_exists: No such file or directory 1241s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-execute/file 1241s # result = 0, error = Error removing file /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/dir_no-execute/file: No such file or directory 1241s # Deleting lost_symlink, path = /tmp/test_live-g-file_G2ZJK3/testdir_live-g-file/lost_symlink 1241s ok 9 /live-g-file/test_delete 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_make_directory_with_parents/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_make_directory_with_parents/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_make_directory_with_parents/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_make_directory_with_parents/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_make_directory_with_parents/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_make_directory_with_parents/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_make_directory_with_parents/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_make_directory_with_parents/.dirs/runtime 1241s # We do not have CAP_DAC_OVERRIDE or equivalent 1241s ok 10 /live-g-file/test_make_directory_with_parents 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/final_clean/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/final_clean/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/final_clean/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/final_clean/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/final_clean/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/final_clean/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/final_clean/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/final_clean/.dirs/runtime 1241s # Cleaning target testing structure in '/tmp/test_live-g-file_G2ZJK3/testdir_live-g-file'... 1241s # deleting 'dir1' 1241s # deleting 'subdir' 1241s # deleting 'dir-target' 1241s # deleting 'dir2' 1241s # deleting 'target-file' 1241s # deleting 'normal_file-symlink' 1241s # deleting 'executable_file' 1241s # deleting 'private_file' 1241s # deleting 'normal_file2' 1241s # deleting 'UTF_příliš z' 1241s # deleting 'pattern_file' 1241s # deleting 'lost_symlink' 1241s # deleting 'dir_no-access' 1241s # deleting 'dir_no-write' 1241s # deleting 'target-file' 1241s # deleting 'normal_file' 1241s # deleting 'normal_file-symlink' 1241s # deleting 'executable_file~' 1241s # deleting 'private_file' 1241s # deleting 'normal_file2~' 1241s # deleting 'UTF_příliš z' 1241s # deleting 'dir_hidden' 1241s # deleting '.a-hidden-file' 1241s # deleting 'file-in-.hidden1' 1241s # deleting '.hidden' 1241s # deleting 'file-in-.hidden2' 1241s # deleting 'pattern_file' 1241s # deleting 'executable_file' 1241s # deleting 'normal_file2' 1241s # deleting 'not_exists2' 1241s # deleting 'not_exists3' 1241s # deleting 'not_exists4' 1241s # deleting 'a' 1241s ok 11 /live-g-file/final_clean 1241s # Start of test_unix_is_mountpoint tests 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 1241s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_G2ZJK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 1241s ok 13 /live-g-file/test_unix_is_mountpoint/proc 1241s # End of test_unix_is_mountpoint tests 1241s # End of live-g-file tests 1241s ok - glib/live-g-file.test 1241s # Running test: glib/resolver-parsing.test 1241s TAP version 14 1241s # random seed: R02S1a10bbaf58aff3196f7c93397e4c7fa2 1241s 1..21 1241s # Start of gresolver tests 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/invalid-header/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/invalid-header/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/invalid-header/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/invalid-header/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/invalid-header/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/invalid-header/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/invalid-header/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/invalid-header/.dirs/runtime 1241s ok 1 /gresolver/invalid-header 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/record-ownership/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/record-ownership/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/record-ownership/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/record-ownership/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/record-ownership/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/record-ownership/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/record-ownership/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/record-ownership/.dirs/runtime 1241s ok 2 /gresolver/record-ownership 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/unknown-record-type/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/unknown-record-type/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/unknown-record-type/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/unknown-record-type/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/unknown-record-type/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/unknown-record-type/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/unknown-record-type/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/unknown-record-type/.dirs/runtime 1241s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 1241s ok 3 /gresolver/unknown-record-type 1241s # Start of mx tests 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/valid/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/valid/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/mx/valid/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/valid/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/mx/valid/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/valid/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/valid/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/valid/.dirs/runtime 1241s ok 4 /gresolver/mx/valid 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/.dirs/runtime 1241s ok 5 /gresolver/mx/invalid 1241s # Start of invalid tests 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short/.dirs/runtime 1241s ok 6 /gresolver/mx/invalid/too-short 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short2/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short2/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short2/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short2/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short2/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short2/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short2/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/mx/invalid/too-short2/.dirs/runtime 1241s ok 7 /gresolver/mx/invalid/too-short2 1241s # End of invalid tests 1241s # End of mx tests 1241s # Start of ns tests 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/valid/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/valid/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/ns/valid/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/valid/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/ns/valid/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/valid/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/valid/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/valid/.dirs/runtime 1241s ok 8 /gresolver/ns/valid 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/invalid/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/invalid/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/ns/invalid/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/invalid/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/ns/invalid/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/invalid/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/invalid/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/ns/invalid/.dirs/runtime 1241s ok 9 /gresolver/ns/invalid 1241s # End of ns tests 1241s # Start of soa tests 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/valid/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/valid/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/soa/valid/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/valid/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/soa/valid/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/valid/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/valid/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/valid/.dirs/runtime 1241s ok 10 /gresolver/soa/valid 1241s # Start of invalid tests 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/mname/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/mname/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/mname/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/mname/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/mname/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/mname/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/mname/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/mname/.dirs/runtime 1241s ok 11 /gresolver/soa/invalid/mname 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/rname/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/rname/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/rname/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/rname/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/rname/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/rname/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/rname/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/rname/.dirs/runtime 1241s ok 12 /gresolver/soa/invalid/rname 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/too-short/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/too-short/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/too-short/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/too-short/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/too-short/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/too-short/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/too-short/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/soa/invalid/too-short/.dirs/runtime 1241s ok 13 /gresolver/soa/invalid/too-short 1241s # End of invalid tests 1241s # End of soa tests 1241s # Start of srv tests 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/valid/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/valid/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/srv/valid/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/valid/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/srv/valid/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/valid/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/valid/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/valid/.dirs/runtime 1241s ok 14 /gresolver/srv/valid 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/.dirs/runtime 1241s ok 15 /gresolver/srv/invalid 1241s # Start of invalid tests 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short/.dirs/runtime 1241s ok 16 /gresolver/srv/invalid/too-short 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short2/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short2/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short2/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short2/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short2/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short2/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short2/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/srv/invalid/too-short2/.dirs/runtime 1241s ok 17 /gresolver/srv/invalid/too-short2 1241s # End of invalid tests 1241s # End of srv tests 1241s # Start of txt tests 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/.dirs/runtime 1241s ok 18 /gresolver/txt/valid 1241s # Start of valid tests 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/multiple-strings/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/multiple-strings/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/multiple-strings/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/multiple-strings/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/multiple-strings/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/multiple-strings/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/multiple-strings/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/valid/multiple-strings/.dirs/runtime 1241s ok 19 /gresolver/txt/valid/multiple-strings 1241s # End of valid tests 1241s # Start of invalid tests 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/empty/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/empty/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/empty/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/empty/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/empty/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/empty/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/empty/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/empty/.dirs/runtime 1241s ok 20 /gresolver/txt/invalid/empty 1241s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/overflow/.dirs/home 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/overflow/.dirs/cache 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/overflow/.dirs/system-config2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/overflow/.dirs/config 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/overflow/.dirs/system-data2 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/overflow/.dirs/data 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/overflow/.dirs/state 1241s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_APZDK3/gresolver/txt/invalid/overflow/.dirs/runtime 1241s ok 21 /gresolver/txt/invalid/overflow 1241s # End of invalid tests 1241s # End of txt tests 1241s # End of gresolver tests 1241s ok - glib/resolver-parsing.test 1241s # Running test: glib/macros-c-89.test 1241s TAP version 14 1241s # random seed: R02S5b1a94e0856f181226a4c84585acda50 1241s 1..4 1241s # Start of C tests 1241s ok 1 /C/standard-89 1241s # End of C tests 1241s # Start of alignof tests 1241s ok 2 /alignof/fallback 1241s # End of alignof tests 1241s # Start of assert tests 1241s ok 3 /assert/static 1241s # End of assert tests 1241s # Start of struct tests 1241s ok 4 /struct/sizeof_member 1241s # End of struct tests 1241s ok - glib/macros-c-89.test 1241s # Running test: glib/cxx-20.test 1241s TAP version 14 1241s # random seed: R02Sb2974aace96cfe2bc8e72b412c0aa1c2 1241s 1..2 1241s # Start of gtask tests 1241s # 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. 1241s ok 1 /gtask/name 1241s # Start of name tests 1241s # 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. 1241s ok 2 /gtask/name/macro-wrapper 1241s # End of name tests 1241s # End of gtask tests 1241s ok - glib/cxx-20.test 1241s # Running test: glib/memory-monitor-poll.test 1241s TAP version 14 1241s # random seed: R02S387627dc85a31b483694c5812b35acfc 1241s 1..4 1241s # Start of memory-monitor-poll tests 1241s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation poll (GMemoryMonitorPoll) for ‘gio-memory-monitor’ 1241s ok 1 /memory-monitor-poll/dup-default 1241s # GLib-GIO-DEBUG: memory free ratio 0.190000 1241s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 1241s ok 2 /memory-monitor-poll/critical-event 1241s # GLib-GIO-DEBUG: memory free ratio 0.290000 1241s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 1241s ok 3 /memory-monitor-poll/medium-event 1241s # GLib-GIO-DEBUG: memory free ratio 0.390000 1241s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 1241s ok 4 /memory-monitor-poll/low-event 1241s # End of memory-monitor-poll tests 1241s ok - glib/memory-monitor-poll.test 1241s # Running test: glib/unix.test 1241s TAP version 14 1241s # random seed: R02S94ba5ee19af88eb7f23bf938f177c821 1241s 1..20 1241s # Start of glib-unix tests 1241s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 1241s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 1241s ok 1 /glib-unix/closefrom 1241s ok 2 /glib-unix/pipe 1241s # /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 1241s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 1241s ok 3 /glib-unix/pipe-stdio-overwrite 1241s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 1241s ok 4 /glib-unix/pipe-struct 1241s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 1241s ok 5 /glib-unix/pipe-struct-auto 1241s ok 6 /glib-unix/error 1241s ok 7 /glib-unix/nonblocking 1241s ok 8 /glib-unix/sighup 1241s # slow test /glib-unix/sighup executed in 0.50 secs 1242s ok 9 /glib-unix/sigterm 1242s # slow test /glib-unix/sigterm executed in 0.50 secs 1242s ok 10 /glib-unix/sighup_again 1242s # slow test /glib-unix/sighup_again executed in 0.50 secs 1242s ok 11 /glib-unix/sighup_add_remove 1242s ok 12 /glib-unix/sighup_nested 1242s # Executing: glib/unix.test 1244s ok 13 /glib-unix/callback_after_signal 1244s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 1244s ok 14 /glib-unix/child-wait 1244s # Start of closefrom tests 1244s # Start of subprocess tests 1244s # End of subprocess tests 1244s # End of closefrom tests 1244s # Start of pipe tests 1244s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 1244s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 1244s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 1244s ok 15 /glib-unix/pipe/fd-cloexec 1244s # End of pipe tests 1244s # Start of sighup tests 1245s ok 16 /glib-unix/sighup/alternate-stack 1245s # slow test /glib-unix/sighup/alternate-stack executed in 1.00 secs 1245s # End of sighup tests 1245s # Start of sigterm tests 1246s ok 17 /glib-unix/sigterm/alternate-stack 1246s # slow test /glib-unix/sigterm/alternate-stack executed in 1.00 secs 1246s # End of sigterm tests 1246s # Start of sighup_again tests 1247s ok 18 /glib-unix/sighup_again/alternate-stack 1247s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.00 secs 1247s # End of sighup_again tests 1247s # Start of get-passwd-entry tests 1247s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 1247s ok 19 /glib-unix/get-passwd-entry/root 1247s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 1247s ok 20 /glib-unix/get-passwd-entry/nonexistent 1247s # End of get-passwd-entry tests 1247s # End of glib-unix tests 1247s ok - glib/unix.test 1247s # Running test: glib/boxed.test 1247s TAP version 14 1247s # random seed: R02Sf096c754d7b96e5f29902fcaf257d41c 1247s 1..27 1247s # Start of boxed tests 1247s ok 1 /boxed/define 1247s ok 2 /boxed/ownership 1247s ok 3 /boxed/closure 1247s ok 4 /boxed/date 1247s ok 5 /boxed/value 1247s ok 6 /boxed/string 1247s ok 7 /boxed/hashtable 1247s ok 8 /boxed/array 1247s ok 9 /boxed/ptrarray 1247s ok 10 /boxed/regex 1247s ok 11 /boxed/varianttype 1247s ok 12 /boxed/error 1247s ok 13 /boxed/datetime 1247s ok 14 /boxed/matchinfo 1247s ok 15 /boxed/keyfile 1247s ok 16 /boxed/mainloop 1247s ok 17 /boxed/maincontext 1247s ok - glib/boxed.test 1247s # Running test: glib/dir.test 1247s ok - glib/dir.test 1247s # Running test: glib/pattern.test 1247s ok - glib/pattern.test 1247s # Running test: glib/accumulator.test 1247s ok - glib/accumulator.test 1247s # Running test: glib/tls-bindings.test 1247s ok 18 /boxed/source 1247s ok 19 /boxed/variantbuilder 1247s ok 20 /boxed/timezone 1247s ok 21 /boxed/pollfd 1247s ok 22 /boxed/markup 1247s ok 23 /boxed/thread 1247s ok 24 /boxed/checksum 1247s ok 25 /boxed/tree 1247s ok 26 /boxed/patternspec 1247s ok 27 /boxed/rand 1247s # End of boxed tests 1247s TAP version 14 1247s # random seed: R02S72f050cc95d16902be38a79f870448c0 1247s 1..3 1247s # Start of dir tests 1247s ok 1 /dir/read 1247s ok 2 /dir/nonexisting 1247s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 1247s ok 3 /dir/refcounting 1247s # End of dir tests 1247s TAP version 14 1247s # random seed: R02S6d0a198449007ca7a65b40bd74f464f4 1247s 1..90 1247s # Start of pattern tests 1247s # Start of compile tests 1247s ok 1 /pattern/compile/0 1247s ok 2 /pattern/compile/1 1247s ok 3 /pattern/compile/2 1247s ok 4 /pattern/compile/3 1247s ok 5 /pattern/compile/4 1247s ok 6 /pattern/compile/5 1247s ok 7 /pattern/compile/6 1247s ok 8 /pattern/compile/7 1247s ok 9 /pattern/compile/8 1247s ok 10 /pattern/compile/9 1247s ok 11 /pattern/compile/10 1247s ok 12 /pattern/compile/11 1247s ok 13 /pattern/compile/12 1247s ok 14 /pattern/compile/13 1247s # End of compile tests 1247s # Start of copy tests 1247s ok 15 /pattern/copy/0 1247s ok 16 /pattern/copy/1 1247s ok 17 /pattern/copy/2 1247s ok 18 /pattern/copy/3 1247s ok 19 /pattern/copy/4 1247s ok 20 /pattern/copy/5 1247s ok 21 /pattern/copy/6 1247s ok 22 /pattern/copy/7 1247s ok 23 /pattern/copy/8 1247s ok 24 /pattern/copy/9 1247s ok 25 /pattern/copy/10 1247s ok 26 /pattern/copy/11 1247s ok 27 /pattern/copy/12 1247s ok 28 /pattern/copy/13 1247s # End of copy tests 1247s # Start of match tests 1247s ok 29 /pattern/match/0 1247s ok 30 /pattern/match/1 1247s ok 31 /pattern/match/2 1247s ok 32 /pattern/match/3 1247s ok 33 /pattern/match/4 1247s ok 34 /pattern/match/5 1247s ok 35 /pattern/match/6 1247s ok 36 /pattern/match/7 1247s ok 37 /pattern/match/8 1247s ok 38 /pattern/match/9 1247s ok 39 /pattern/match/10 1247s ok 40 /pattern/match/11 1247s ok 41 /pattern/match/12 1247s ok 42 /pattern/match/13 1247s ok 43 /pattern/match/14 1247s ok 44 /pattern/match/15 1247s ok 45 /pattern/match/16 1247s ok 46 /pattern/match/17 1247s ok 47 /pattern/match/18 1247s ok 48 /pattern/match/19 1247s ok 49 /pattern/match/20 1247s ok 50 /pattern/match/21 1247s ok 51 /pattern/match/22 1247s ok 52 /pattern/match/23 1247s ok 53 /pattern/match/24 1247s ok 54 /pattern/match/25 1247s ok 55 /pattern/match/26 1247s ok 56 /pattern/match/27 1247s ok 57 /pattern/match/28 1247s ok 58 /pattern/match/29 1247s ok 59 /pattern/match/30 1247s ok 60 /pattern/match/31 1247s ok 61 /pattern/match/32 1247s ok 62 /pattern/match/33 1247s ok 63 /pattern/match/34 1247s ok 64 /pattern/match/35 1247s ok 65 /pattern/match/36 1247s ok 66 /pattern/match/37 1247s ok 67 /pattern/match/38 1247s ok 68 /pattern/match/39 1247s ok 69 /pattern/match/40 1247s ok 70 /pattern/match/41 1247s ok 71 /pattern/match/42 1247s ok 72 /pattern/match/43 1247s ok 73 /pattern/match/44 1247s ok 74 /pattern/match/45 1247s ok 75 /pattern/match/46 1247s ok 76 /pattern/match/47 1247s ok 77 /pattern/match/48 1247s ok 78 /pattern/match/49 1247s ok 79 /pattern/match/50 1247s # End of match tests 1247s # Start of equal tests 1247s ok 80 /pattern/equal/0 1247s ok 81 /pattern/equal/1 1247s ok 82 /pattern/equal/2 1247s ok 83 /pattern/equal/3 1247s ok 84 /pattern/equal/4 1247s ok 85 /pattern/equal/5 1247s ok 86 /pattern/equal/6 1247s ok 87 /pattern/equal/7 1247s ok 88 /pattern/equal/8 1247s ok 89 /pattern/equal/9 1247s ok 90 /pattern/equal/10 1247s # End of equal tests 1247s # End of pattern tests 1247s TAP version 14 1247s # random seed: R02Sfdb0583cd6a424c2a95906ba051ab386 1247s 1..1 1247s # Start of gobject tests 1247s ok 1 /gobject/accumulator 1247s # End of gobject tests 1247s TAP version 14 1247s # random seed: R02S1498d09227cb4ea184020fef15da157a 1247s 1..2 1247s # Start of tls-connection tests 1247s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1247s ok 1 /tls-connection/get-tls-channel-binding 1247s ok 2 /tls-connection/get-dtls-channel-binding 1247s # End of tls-connection tests 1247s TAP version 14 1247s # random seed: R02Sb490d1ee05acd5a1d7eb2b02115a70ea 1247s 1..27 1247s # Start of fileutils tests 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/paths/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/paths/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/paths/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/paths/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/paths/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/paths/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/paths/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/paths/.dirs/runtime 1247s ok 1 /fileutils/paths 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-path/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-path/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/build-path/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-path/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/build-path/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-path/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-path/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/build-path/.dirs/runtime 1247s ok 2 /fileutils/build-path 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-pathv/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-pathv/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/build-pathv/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-pathv/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/build-pathv/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-pathv/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-pathv/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/build-pathv/.dirs/runtime 1247s ok 3 /fileutils/build-pathv 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-filename/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-filename/.dirs/cache 1247s # Executing: glib/tls-bindings.test 1247s ok - glib/tls-bindings.test 1247s # Running test: glib/fileutils.test 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/build-filename/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-filename/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/build-filename/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-filename/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-filename/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/build-filename/.dirs/runtime 1247s ok 4 /fileutils/build-filename 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-filenamev/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-filenamev/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/build-filenamev/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-filenamev/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/build-filenamev/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-filenamev/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/build-filenamev/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/build-filenamev/.dirs/runtime 1247s ok 5 /fileutils/build-filenamev 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents/.dirs/runtime 1247s # We do not have CAP_DAC_OVERRIDE or equivalent 1247s # Checking g_mkdir_with_parents() in subdir ./hum/ 1247s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 1247s ok 6 /fileutils/mkdir-with-parents 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents-permission/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents-permission/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents-permission/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents-permission/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents-permission/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents-permission/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents-permission/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/mkdir-with-parents-permission/.dirs/runtime 1247s # We do not have CAP_DAC_OVERRIDE or equivalent 1247s ok 7 /fileutils/mkdir-with-parents-permission 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/format-size-for-display/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/format-size-for-display/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/format-size-for-display/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/format-size-for-display/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/format-size-for-display/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/format-size-for-display/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/format-size-for-display/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/format-size-for-display/.dirs/runtime 1247s ok 8 /fileutils/format-size-for-display 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/errors/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/errors/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/errors/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/errors/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/errors/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/errors/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/errors/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/errors/.dirs/runtime 1247s ok 9 /fileutils/errors 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/basename/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/basename/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/basename/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/basename/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/basename/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/basename/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/basename/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/basename/.dirs/runtime 1247s ok 10 /fileutils/basename 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-basename/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-basename/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/get-basename/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-basename/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/get-basename/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-basename/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-basename/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/get-basename/.dirs/runtime 1247s ok 11 /fileutils/get-basename 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/dirname/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/dirname/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/dirname/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/dirname/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/dirname/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/dirname/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/dirname/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/dirname/.dirs/runtime 1247s ok 12 /fileutils/dirname 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/dir-make-tmp/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/dir-make-tmp/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/dir-make-tmp/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/dir-make-tmp/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/dir-make-tmp/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/dir-make-tmp/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/dir-make-tmp/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/dir-make-tmp/.dirs/runtime 1247s ok 13 /fileutils/dir-make-tmp 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/file-open-tmp/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/file-open-tmp/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/file-open-tmp/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/file-open-tmp/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/file-open-tmp/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/file-open-tmp/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/file-open-tmp/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/file-open-tmp/.dirs/runtime 1247s ok 14 /fileutils/file-open-tmp 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/file-test/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/file-test/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/file-test/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/file-test/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/file-test/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/file-test/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/file-test/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/file-test/.dirs/runtime 1247s ok 15 /fileutils/file-test 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkstemp/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkstemp/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/mkstemp/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkstemp/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/mkstemp/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkstemp/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkstemp/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/mkstemp/.dirs/runtime 1247s ok 16 /fileutils/mkstemp 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdtemp/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdtemp/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/mkdtemp/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdtemp/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/mkdtemp/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdtemp/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/mkdtemp/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/mkdtemp/.dirs/runtime 1247s ok 17 /fileutils/mkdtemp 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-contents/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-contents/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/get-contents/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-contents/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/get-contents/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-contents/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-contents/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/get-contents/.dirs/runtime 1247s ok 18 /fileutils/get-contents 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-contents-large-file/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-contents-large-file/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/get-contents-large-file/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-contents-large-file/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/get-contents-large-file/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-contents-large-file/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/get-contents-large-file/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/get-contents-large-file/.dirs/runtime 1247s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/set-contents/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/set-contents/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/set-contents/.dirs/runtime 1247s ok 20 /fileutils/set-contents 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/.dirs/runtime 1247s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 1247s # Flags 0 and test 0 1247s # Flags 0 and test 1 1247s # Flags 0 and test 2 1247s # Flags 0 and test 3 1247s # Flags 0 and test 4 1247s # Flags 0 and test 5 1247s # Flags 0 and test 6 1247s # Flags 1 and test 0 1247s # Flags 1 and test 1 1247s # Flags 1 and test 2 1247s # Flags 1 and test 3 1247s # Flags 1 and test 4 1247s # Flags 1 and test 5 1247s # Flags 1 and test 6 1247s # Flags 2 and test 0 1247s # Flags 2 and test 1 1247s # Flags 2 and test 2 1247s # Flags 2 and test 3 1247s # Flags 2 and test 4 1247s # Flags 2 and test 5 1247s # Flags 2 and test 6 1247s # Flags 3 and test 0 1247s # Flags 3 and test 1 1247s # Flags 3 and test 2 1247s # Flags 3 and test 3 1247s # Flags 3 and test 4 1247s # Flags 3 and test 5 1247s # Flags 3 and test 6 1247s # Flags 4 and test 0 1247s # Flags 4 and test 1 1247s # Flags 4 and test 2 1247s # Flags 4 and test 3 1247s # Flags 4 and test 4 1247s # Flags 4 and test 5 1247s # Flags 4 and test 6 1247s # Flags 5 and test 0 1247s # Flags 5 and test 1 1247s # Flags 5 and test 2 1247s # Flags 5 and test 3 1247s # Flags 5 and test 4 1247s # Flags 5 and test 5 1247s # Flags 5 and test 6 1247s # Flags 6 and test 0 1247s # Flags 6 and test 1 1247s # Flags 6 and test 2 1247s # Flags 6 and test 3 1247s # Flags 6 and test 4 1247s # Flags 6 and test 5 1247s # Flags 6 and test 6 1247s ok 21 /fileutils/set-contents-full 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/read-link/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/read-link/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/read-link/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/read-link/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/read-link/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/read-link/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/read-link/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/read-link/.dirs/runtime 1247s ok 22 /fileutils/read-link 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/stdio-wrappers/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/stdio-wrappers/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/stdio-wrappers/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/stdio-wrappers/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/stdio-wrappers/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/stdio-wrappers/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/stdio-wrappers/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/stdio-wrappers/.dirs/runtime 1247s # We do not have CAP_DAC_OVERRIDE or equivalent 1247s ok 23 /fileutils/stdio-wrappers 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/fopen-modes/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/fopen-modes/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/fopen-modes/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/fopen-modes/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/fopen-modes/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/fopen-modes/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/fopen-modes/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/fopen-modes/.dirs/runtime 1247s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 1247s # Testing fopen() mode 'w' 1247s # Testing fopen() mode 'r' 1247s # Testing fopen() mode 'a' 1247s # Testing fopen() mode 'w+' 1247s # Testing fopen() mode 'r+' 1247s # Testing fopen() mode 'a+' 1247s # Testing fopen() mode 'wb' 1247s # Testing fopen() mode 'rb' 1247s # Testing fopen() mode 'ab' 1247s # Testing fopen() mode 'w+b' 1247s # Testing fopen() mode 'r+b' 1247s # Testing fopen() mode 'a+b' 1247s # Testing fopen() mode 'wb+' 1247s # Testing fopen() mode 'rb+' 1247s # Testing fopen() mode 'ab+' 1247s # Testing fopen() mode 'we' 1247s # Testing fopen() mode 're' 1247s # Testing fopen() mode 'ae' 1247s # Testing fopen() mode 'w+e' 1247s # Testing fopen() mode 'r+e' 1247s # Testing fopen() mode 'a+e' 1247s # Testing fopen() mode 'wbe' 1247s # Testing fopen() mode 'rbe' 1247s # Testing fopen() mode 'abe' 1247s # Testing fopen() mode 'w+be' 1247s # Testing fopen() mode 'r+be' 1247s # Testing fopen() mode 'a+be' 1247s # Testing fopen() mode 'wb+e' 1247s # Testing fopen() mode 'rb+e' 1247s # Testing fopen() mode 'ab+e' 1247s # Testing fopen() mode 'web' 1247s # Testing fopen() mode 'reb' 1247s # Testing fopen() mode 'aeb' 1247s # Testing fopen() mode 'w+eb' 1247s # Testing fopen() mode 'r+eb' 1247s # Testing fopen() mode 'a+eb' 1247s # Testing fopen() mode 'web+' 1247s # Testing fopen() mode 'reb+' 1247s # Testing fopen() mode 'aeb+' 1248s ok 24 /fileutils/fopen-modes 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/clear-fd/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/clear-fd/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/clear-fd/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/clear-fd/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/clear-fd/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/clear-fd/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/clear-fd/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/clear-fd/.dirs/runtime 1248s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 1248s # Will be closed by autocleanup: 3, -42 1248s # Testing error handling 1248s ok 25 /fileutils/clear-fd 1248s # Start of set-contents-full tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-file/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-file/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-file/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-file/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-file/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-file/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-file/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-file/.dirs/runtime 1248s # We do not have CAP_DAC_OVERRIDE or equivalent 1248s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 1248s ok 26 /fileutils/set-contents-full/read-only-file 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-directory/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-directory/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-directory/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-directory/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-directory/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_KPMHK3/fileutils/set-contents-full/read-only-directory/.dirs/runtime 1248s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 1248s # Flags 0 1248s # We do not have CAP_DAC_OVERRIDE or equivalent 1248s # Flags 1 1248s # We do not have CAP_DAC_OVERRIDE or equivalent 1248s # Flags 2 1248s # We do not have CAP_DAC_OVERRIDE or equivalent 1248s # Flags 3 1248s # We do not have CAP_DAC_OVERRIDE or equivalent 1248s # Flags 4 1248s # We do not have CAP_DAC_OVERRIDE or equivalent 1248s # Flags 5 1248s # We do not have CAP_DAC_OVERRIDE or equivalent 1248s # Flags 6 1248s # We do not have CAP_DAC_OVERRIDE or equivalent 1248s ok 27 /fileutils/set-contents-full/read-only-directory 1248s # End of set-contents-full tests 1248s # Start of clear-fd tests 1248s # Start of subprocess tests 1248s # End of subprocess tests 1248s # End of clear-fd tests 1248s # End of fileutils tests 1248s Unable to clean up temporary directory /tmp/test_fileutils_KPMHK3/glib-file-set-contents-full-rodir-GUPEK3: Directory not empty 1248s Unable to clean up temporary directory /tmp/test_fileutils_KPMHK3/glib-file-set-contents-full-rodir-PHQEK3: Directory not empty 1248s Unable to clean up temporary directory /tmp/test_fileutils_KPMHK3/glib-file-set-contents-full-rodir-2LYEK3: Directory not empty 1248s Unable to clean up temporary directory /tmp/test_fileutils_KPMHK3/glib-file-set-contents-full-rodir-X6ZEK3: Directory not empty 1248s Unable to clean up temporary directory /tmp/test_fileutils_KPMHK3/glib-file-set-contents-full-rodir-W3UEK3: Directory not empty 1248s Unable to clean up temporary directory /tmp/test_fileutils_KPMHK3/glib-file-set-contents-full-rodir-PAWEK3: Directory not empty 1248s Unable to clean up temporary directory /tmp/test_fileutils_KPMHK3/glib-file-set-contents-full-rodir-WHXEK3: Directory not empty 1248s Unable to clean up temporary directory /tmp/test_fileutils_KPMHK3: Directory not empty 1248s ok - glib/fileutils.test 1248s # Running test: glib/gdbus-test-codegen-old.test 1248s TAP version 14 1248s # random seed: R02S738c2f77f2856607b6bf43b67af1a7f0 1248s 1..8 1248s # Start of gdbus tests 1248s # Start of codegen tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/annotations/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/annotations/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/annotations/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/annotations/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/annotations/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/annotations/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/annotations/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/annotations/.dirs/runtime 1248s ok 1 /gdbus/codegen/annotations 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/interface_stability/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/interface_stability/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/interface_stability/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/interface_stability/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/interface_stability/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/interface_stability/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/interface_stability/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/interface_stability/.dirs/runtime 1248s ok 2 /gdbus/codegen/interface_stability 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/object-manager/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/object-manager/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/object-manager/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/object-manager/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/object-manager/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/object-manager/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/object-manager/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/object-manager/.dirs/runtime 1248s ok 3 /gdbus/codegen/object-manager 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/property-naming/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/property-naming/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/property-naming/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/property-naming/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/property-naming/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/property-naming/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/property-naming/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/property-naming/.dirs/runtime 1248s ok 4 /gdbus/codegen/property-naming 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/autocleanups/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/autocleanups/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/autocleanups/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/autocleanups/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/autocleanups/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/autocleanups/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/autocleanups/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/autocleanups/.dirs/runtime 1248s ok 5 /gdbus/codegen/autocleanups 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/deprecations/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/deprecations/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/deprecations/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/deprecations/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/deprecations/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/deprecations/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/deprecations/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/deprecations/.dirs/runtime 1248s ok 6 /gdbus/codegen/deprecations 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/standalone-interface-info/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/standalone-interface-info/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/standalone-interface-info/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/standalone-interface-info/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/standalone-interface-info/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1248s ok 7 /gdbus/codegen/standalone-interface-info 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/unix-fd-list/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/unix-fd-list/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/unix-fd-list/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/unix-fd-list/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/unix-fd-list/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_SPKDK3/gdbus/codegen/unix-fd-list/.dirs/runtime 1248s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1248s ok 8 /gdbus/codegen/unix-fd-list 1248s # End of codegen tests 1248s # End of gdbus tests 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 - glib/gdbus-test-codegen-old.test 1248s TAP version 14 1248s # random seed: R02Sfcecf0db39d351dcc395894731873dc4 1248s # Running test: glib/gdbus-test-codegen.test 1248s 1..8 1248s # Start of gdbus tests 1248s # Start of codegen tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/annotations/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/annotations/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/annotations/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/annotations/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/annotations/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/annotations/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/annotations/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/annotations/.dirs/runtime 1248s ok 1 /gdbus/codegen/annotations 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/interface_stability/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/interface_stability/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/interface_stability/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/interface_stability/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/interface_stability/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/interface_stability/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/interface_stability/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/interface_stability/.dirs/runtime 1248s ok 2 /gdbus/codegen/interface_stability 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/object-manager/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/object-manager/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/object-manager/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/object-manager/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/object-manager/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/object-manager/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/object-manager/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/object-manager/.dirs/runtime 1248s ok 3 /gdbus/codegen/object-manager 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/property-naming/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/property-naming/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/property-naming/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/property-naming/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/property-naming/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/property-naming/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/property-naming/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/property-naming/.dirs/runtime 1248s ok 4 /gdbus/codegen/property-naming 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/autocleanups/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/autocleanups/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/autocleanups/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/autocleanups/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/autocleanups/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/autocleanups/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/autocleanups/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/autocleanups/.dirs/runtime 1248s ok 5 /gdbus/codegen/autocleanups 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/deprecations/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/deprecations/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/deprecations/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/deprecations/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/deprecations/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/deprecations/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/deprecations/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/deprecations/.dirs/runtime 1248s ok 6 /gdbus/codegen/deprecations 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/standalone-interface-info/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/standalone-interface-info/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/standalone-interface-info/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/standalone-interface-info/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/standalone-interface-info/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1248s ok 7 /gdbus/codegen/standalone-interface-info 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/unix-fd-list/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/unix-fd-list/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/unix-fd-list/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/unix-fd-list/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/unix-fd-list/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_OZ6BK3/gdbus/codegen/unix-fd-list/.dirs/runtime 1248s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1248s ok 8 /gdbus/codegen/unix-fd-list 1248s # End of codegen tests 1248s # End of gdbus tests 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 - glib/gdbus-test-codegen.test 1248s # Running test: glib/unicode-encoding.test 1248s TAP version 14 1248s # random seed: R02S79568f36470107b6c2c2c9b5a6f2b35e 1248s 1..1 1248s # Start of unicode tests 1248s ok 1 /unicode/encoding 1248s # End of unicode tests 1248s ok - glib/unicode-encoding.test 1248s # Running test: glib/notify-init.test 1248s TAP version 14 1248s # random seed: R02S251fb445cd62bce94cbc758c4fb5b4cc 1248s 1..1 1248s # Start of properties tests 1248s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 1248s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1248s ok 1 /properties/notify-in-init 1248s # End of properties tests 1248s ok - glib/notify-init.test 1248s # Running test: glib/g-icon.test 1248s TAP version 14 1248s # random seed: R02Sd9bf73b79c5eec91523e697d526cd1c6 1248s 1..6 1248s # Start of icons tests 1248s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1248s ok 1 /icons/to-string 1248s ok 2 /icons/serialize 1248s ok 3 /icons/themed 1248s ok 4 /icons/emblemed 1248s ok 5 /icons/file 1248s ok 6 /icons/bytes 1248s # End of icons tests 1248s ok - glib/g-icon.test 1248s # Running test: glib/flags.test 1248s TAP version 14 1248s # random seed: R02S7d6f8afb0ed46c7a141f2258d1b4b850 1248s 1..1 1248s # Start of gobject tests 1248s # Start of flags tests 1248s ok 1 /gobject/flags/validate 1248s # End of flags tests 1248s # End of gobject tests 1248s ok - glib/flags.test 1248s # Running test: glib/vfs.test 1248s TAP version 14 1248s # random seed: R02S48406a69e4cccce255bd473d5e84ecf6 1248s 1..3 1248s # Start of gvfs tests 1248s ok 1 /gvfs/local 1248s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1248s ok 2 /gvfs/register-scheme 1248s # Start of resource tests 1248s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 1248s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 1248s ok 3 /gvfs/resource/malformed-escaping 1248s # End of resource tests 1248s # End of gvfs tests 1248s ok - glib/vfs.test 1248s # Running test: glib/gdbus-close-pending.test 1248s TAP version 14 1248s # random seed: R02S5cc413fce0e90b2e5181f73236e0899a 1248s 1..2 1248s # Start of gdbus tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/close-pending/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/close-pending/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_I1EBK3/gdbus/close-pending/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/close-pending/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_I1EBK3/gdbus/close-pending/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/close-pending/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/close-pending/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/close-pending/.dirs/runtime 1248s ok 1 /gdbus/close-pending 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/unref-pending/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/unref-pending/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_I1EBK3/gdbus/unref-pending/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/unref-pending/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_I1EBK3/gdbus/unref-pending/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/unref-pending/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/unref-pending/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_I1EBK3/gdbus/unref-pending/.dirs/runtime 1248s ok 2 /gdbus/unref-pending 1248s # End of gdbus tests 1248s ok - glib/gdbus-close-pending.test 1248s # Running test: glib/refcount-macro.test 1248s TAP version 14 1248s # random seed: R02Sb59f6d5a200e9f09799fd73c842e6c01 1248s 1..4 1248s # Start of refcount tests 1248s ok 1 /refcount/grefcount 1248s ok 2 /refcount/gatomicrefcount 1248s # Start of grefcount tests 1248s ok 3 /refcount/grefcount/saturation 1248s # End of grefcount tests 1248s # Start of gatomicrefcount tests 1248s ok 4 /refcount/gatomicrefcount/saturation 1248s # End of gatomicrefcount tests 1248s # End of refcount tests 1248s ok - glib/refcount-macro.test 1248s # Running test: glib/rwlock.test 1248s TAP version 14 1248s # random seed: R02S365ef21fb921b42cef2b60d6b802bf0b 1248s 1..8 1248s # Start of thread tests 1248s ok 1 /thread/rwlock1 1248s ok 2 /thread/rwlock2 1248s ok 3 /thread/rwlock3 1248s ok 4 /thread/rwlock4 1248s ok 5 /thread/rwlock5 1248s ok 6 /thread/rwlock6 1252s # Executing: glib/rwlock.test 1255s ok 7 /thread/rwlock7 1255s # slow test /thread/rwlock7 executed in 6.57 secs 1255s ok 8 /thread/rwlock8 1255s # End of thread tests 1255s ok - glib/rwlock.test 1255s # Running test: glib/utils-unisolated.test 1255s TAP version 14 1255s # random seed: R02S83e4c7348e83391923d003edc743957b 1255s 1..1 1255s # Start of utils tests 1255s ok 1 /utils/xdgdirs 1255s # End of utils tests 1255s ok - glib/utils-unisolated.test 1255s # Running test: glib/guuid.test 1255s TAP version 14 1255s # random seed: R02S4294538605acac2038ee1fbfd746b67a 1255s 1..2 1255s # Start of uuid tests 1255s ok 1 /uuid/string 1255s ok 2 /uuid/random 1255s # End of uuid tests 1255s ok - glib/guuid.test 1255s # Running test: glib/binding.test 1255s TAP version 14 1255s # random seed: R02S7a5f2dad35ef49920c6382f7cc601030 1255s 1..19 1255s # Start of binding tests 1255s ok 1 /binding/default 1255s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 1255s ok 2 /binding/canonicalisation 1255s ok 3 /binding/bidirectional 1255s ok 4 /binding/transform 1255s ok 5 /binding/transform-default 1255s ok 6 /binding/transform-closure 1255s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 1255s ok 7 /binding/chain 1255s ok 8 /binding/sync-create 1255s ok 9 /binding/invert-boolean 1255s ok 10 /binding/same-object 1255s ok 11 /binding/unbind 1255s ok 12 /binding/unbind-weak 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 1255s ok 13 /binding/unbind-multiple 1255s ok 14 /binding/fail 1255s ok 15 /binding/interface 1255s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 1255s ok 16 /binding/concurrent-unbind 1255s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 1255s ok 17 /binding/concurrent-finalizing 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1255s ok 18 /binding/dispose-source 1255s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1255s ok 19 /binding/dispose-target 1255s # End of binding tests 1255s ok - glib/binding.test 1255s # Running test: glib/memory-monitor-dbus.test 1255s TAP version 13 1255s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 1255s 1..1 1255s ok - glib/memory-monitor-dbus.test 1255s # Running test: glib/portal-support-flatpak-none.test 1255s TAP version 14 1255s # random seed: R02S4a2a3bf68791041b1502c3c968b6fb8e 1255s 1..1 1255s # Start of portal-support tests 1255s # Start of flatpak tests 1255s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_FH7JK3/portal-support/flatpak/none/.dirs/home 1255s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_FH7JK3/portal-support/flatpak/none/.dirs/cache 1255s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_FH7JK3/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_FH7JK3/portal-support/flatpak/none/.dirs/system-config2 1255s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_FH7JK3/portal-support/flatpak/none/.dirs/config 1255s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_FH7JK3/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_FH7JK3/portal-support/flatpak/none/.dirs/system-data2 1255s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_FH7JK3/portal-support/flatpak/none/.dirs/data 1255s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_FH7JK3/portal-support/flatpak/none/.dirs/state 1255s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_FH7JK3/portal-support/flatpak/none/.dirs/runtime 1255s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_FH7JK3/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 1255s ok 1 /portal-support/flatpak/none 1255s # End of flatpak tests 1255s # End of portal-support tests 1255s ok - glib/portal-support-flatpak-none.test 1255s # Running test: glib/messages-low-memory.py.test 1255s TAP version 13 1255s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 1255s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 1255s # tmpdir: /tmp/tmp7oh__vac 1255s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 1255s # Return code: -6 1255s # Output: 1255s # 1255s # Error: 1255s # GLib-Message: 10:18:35.933: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 1255s # GLib-Message: 10:18:35.933: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 1255s # ../../../glib/gprintf.c:351: failed to allocate memory 1255s 1..1 1255s ok - glib/messages-low-memory.py.test 1255s TAP version 14 1255s # random seed: R02Sc9888802a5d301958bca692c0079db2b 1255s # Running test: glib/param.test 1256s 1..32 1256s # Start of param tests 1256s ok 1 /param/value 1256s ok 2 /param/strings 1256s ok 3 /param/qdata 1256s ok 4 /param/validate 1256s ok 5 /param/convert 1256s ok 6 /param/implement # SKIP Skipping slow /param/implement test 1256s ok 7 /param/default 1256s ok 8 /param/is-valid-name 1256s # Start of invalid-name tests 1256s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 1256s ok 9 /param/invalid-name/colon 1256s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 1256s ok 10 /param/invalid-name/first-char 1256s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 1256s ok 11 /param/invalid-name/empty 1256s # End of invalid-name tests 1256s # Start of implement tests 1256s # Start of subprocess tests 1256s # End of subprocess tests 1256s # End of implement tests 1256s # End of param tests 1256s # Start of value tests 1256s ok 12 /value/transform 1256s # End of value tests 1256s # Start of paramspec tests 1256s ok 13 /paramspec/char 1256s ok 14 /paramspec/uchar 1256s ok 15 /paramspec/int 1256s ok 16 /paramspec/uint 1256s ok 17 /paramspec/long 1256s ok 18 /paramspec/ulong 1256s ok 19 /paramspec/int64 1256s ok 20 /paramspec/uint64 1256s ok 21 /paramspec/float 1256s ok 22 /paramspec/double 1256s ok 23 /paramspec/unichar 1256s ok 24 /paramspec/param 1256s ok 25 /paramspec/null-param 1256s ok 26 /paramspec/string 1256s ok 27 /paramspec/override 1256s ok 28 /paramspec/gtype 1256s ok 29 /paramspec/variant 1256s ok 30 /paramspec/custom 1256s ok 31 /paramspec/pool 1256s # Start of variant tests 1256s ok 32 /paramspec/variant/cmp 1256s # End of variant tests 1256s # End of paramspec tests 1256s ok - glib/param.test 1256s # Running test: glib/portal-support-flatpak-gsettings-only.test 1256s TAP version 14 1256s # random seed: R02S5bef470d949c7cee5e56573a084dc917 1256s 1..1 1256s # Start of portal-support tests 1256s # Start of flatpak tests 1256s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_B26CK3/portal-support/flatpak/gsettings/.dirs/home 1256s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_B26CK3/portal-support/flatpak/gsettings/.dirs/cache 1256s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_B26CK3/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_B26CK3/portal-support/flatpak/gsettings/.dirs/system-config2 1256s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_B26CK3/portal-support/flatpak/gsettings/.dirs/config 1256s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_B26CK3/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_B26CK3/portal-support/flatpak/gsettings/.dirs/system-data2 1256s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_B26CK3/portal-support/flatpak/gsettings/.dirs/data 1256s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_B26CK3/portal-support/flatpak/gsettings/.dirs/state 1256s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_B26CK3/portal-support/flatpak/gsettings/.dirs/runtime 1256s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_B26CK3/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 1256s ok 1 /portal-support/flatpak/gsettings 1256s # End of flatpak tests 1256s # End of portal-support tests 1256s ok - glib/portal-support-flatpak-gsettings-only.test 1256s # Running test: glib/tree.test 1256s TAP version 14 1256s # random seed: R02S5876d5092afdb8c8aaed261b5ce8ac6b 1256s 1..7 1256s # Start of tree tests 1256s ok 1 /tree/search 1256s ok 2 /tree/remove 1256s ok 3 /tree/destroy 1256s ok 4 /tree/traverse 1256s ok 5 /tree/insert 1256s ok 6 /tree/bounds 1256s ok 7 /tree/remove-all 1256s # End of tree tests 1256s ok - glib/tree.test 1256s # Running test: glib/memory-settings-backend.test 1256s TAP version 14 1256s # random seed: R02Sd64d7ae0be297a9783c1f3b004da9c5a 1256s 1..1 1256s # Start of memory-settings-backend tests 1256s ok 1 /memory-settings-backend/extension-point-registered 1256s # End of memory-settings-backend tests 1256s ok - glib/memory-settings-backend.test 1256s # Running test: glib/markup-parse.test 1256s TAP version 14 1256s # random seed: R02S358b66f67b8d35762660d4b91caca986 1256s 1..71 1256s # Start of markup tests 1256s # Start of parse tests 1256s ok 1 /markup/parse/fail-1.gmarkup 1256s ok 2 /markup/parse/fail-10.gmarkup 1256s ok 3 /markup/parse/fail-11.gmarkup 1256s ok 4 /markup/parse/fail-12.gmarkup 1256s ok 5 /markup/parse/fail-13.gmarkup 1256s ok - glib/markup-parse.test 1256s # Running test: glib/performance.test 1256s ok 6 /markup/parse/fail-14.gmarkup 1256s ok 7 /markup/parse/fail-15.gmarkup 1256s ok 8 /markup/parse/fail-16.gmarkup 1256s ok 9 /markup/parse/fail-17.gmarkup 1256s ok 10 /markup/parse/fail-18.gmarkup 1256s ok 11 /markup/parse/fail-19.gmarkup 1256s ok 12 /markup/parse/fail-2.gmarkup 1256s ok 13 /markup/parse/fail-20.gmarkup 1256s ok 14 /markup/parse/fail-21.gmarkup 1256s ok 15 /markup/parse/fail-22.gmarkup 1256s ok 16 /markup/parse/fail-23.gmarkup 1256s ok 17 /markup/parse/fail-24.gmarkup 1256s ok 18 /markup/parse/fail-25.gmarkup 1256s ok 19 /markup/parse/fail-26.gmarkup 1256s ok 20 /markup/parse/fail-27.gmarkup 1256s ok 21 /markup/parse/fail-28.gmarkup 1256s ok 22 /markup/parse/fail-29.gmarkup 1256s ok 23 /markup/parse/fail-3.gmarkup 1256s ok 24 /markup/parse/fail-30.gmarkup 1256s ok 25 /markup/parse/fail-31.gmarkup 1256s ok 26 /markup/parse/fail-32.gmarkup 1256s ok 27 /markup/parse/fail-33.gmarkup 1256s ok 28 /markup/parse/fail-34.gmarkup 1256s ok 29 /markup/parse/fail-35.gmarkup 1256s ok 30 /markup/parse/fail-36.gmarkup 1256s ok 31 /markup/parse/fail-37.gmarkup 1256s ok 32 /markup/parse/fail-38.gmarkup 1256s ok 33 /markup/parse/fail-39.gmarkup 1256s ok 34 /markup/parse/fail-4.gmarkup 1256s ok 35 /markup/parse/fail-40.gmarkup 1256s ok 36 /markup/parse/fail-41.gmarkup 1256s ok 37 /markup/parse/fail-42.gmarkup 1256s ok 38 /markup/parse/fail-43.gmarkup 1256s ok 39 /markup/parse/fail-44.gmarkup 1256s ok 40 /markup/parse/fail-45.gmarkup 1256s ok 41 /markup/parse/fail-46.gmarkup 1256s ok 42 /markup/parse/fail-47.gmarkup 1256s ok 43 /markup/parse/fail-48.gmarkup 1256s ok 44 /markup/parse/fail-49.gmarkup 1256s ok 45 /markup/parse/fail-5.gmarkup 1256s ok 46 /markup/parse/fail-50.gmarkup 1256s ok 47 /markup/parse/fail-51.gmarkup 1256s ok 48 /markup/parse/fail-52.gmarkup 1256s ok 49 /markup/parse/fail-53.gmarkup 1256s ok 50 /markup/parse/fail-54.gmarkup 1256s ok 51 /markup/parse/fail-6.gmarkup 1256s ok 52 /markup/parse/fail-7.gmarkup 1256s ok 53 /markup/parse/fail-8.gmarkup 1256s ok 54 /markup/parse/fail-9.gmarkup 1256s ok 55 /markup/parse/valid-1.gmarkup 1256s ok 56 /markup/parse/valid-10.gmarkup 1256s ok 57 /markup/parse/valid-11.gmarkup 1256s ok 58 /markup/parse/valid-12.gmarkup 1256s ok 59 /markup/parse/valid-13.gmarkup 1256s ok 60 /markup/parse/valid-14.gmarkup 1256s ok 61 /markup/parse/valid-15.gmarkup 1256s ok 62 /markup/parse/valid-16.gmarkup 1256s ok 63 /markup/parse/valid-17.gmarkup 1256s ok 64 /markup/parse/valid-2.gmarkup 1256s ok 65 /markup/parse/valid-3.gmarkup 1256s ok 66 /markup/parse/valid-4.gmarkup 1256s ok 67 /markup/parse/valid-5.gmarkup 1256s ok 68 /markup/parse/valid-6.gmarkup 1256s ok 69 /markup/parse/valid-7.gmarkup 1256s ok 70 /markup/parse/valid-8.gmarkup 1256s ok 71 /markup/parse/valid-9.gmarkup 1256s # End of parse tests 1256s # End of markup tests 1257s # Executing: glib/performance.test 1262s # Executing: glib/performance.test 1264s simple-construction: Millions of constructed objects per second: 11.692 1266s simple-construction1: Millions of constructed objects per second: 68.270 1267s # Executing: glib/performance.test 1270s complex-construction: Millions of constructed objects per second: 4.617 1272s # Executing: glib/performance.test 1276s complex-construction1: Millions of constructed objects per second: 7.426 1277s # Executing: glib/performance.test 1282s complex-construction2: Millions of constructed objects per second: 8.592 1282s # Executing: glib/performance.test 1283s finalization: Millions of finalized objects per second: 2.051 1284s type-check: Million type checks per second: 41.36 1286s emit-unhandled: Emissions per second: 2431557 1287s emit-unhandled-empty: Emissions per second: 20893564 1287s # Executing: glib/performance.test 1288s emit-unhandled-generic: Emissions per second: 3229313 1289s emit-unhandled-generic-empty: Emissions per second: 20966809 1291s emit-unhandled-args: Emissions per second: 2191217 1292s emit-handled: Emissions per second: 1573869 1292s # Executing: glib/performance.test 1293s emit-handled-empty: Emissions per second: 1654333 1294s emit-handled-generic: Emissions per second: 1621557 1296s emit-handled-generic-empty: Emissions per second: 2728582 1297s emit-handled-args: Emissions per second: 1536341 1297s # Executing: glib/performance.test 1298s notify-unhandled: Notify (unhandled) per second: 11208805 1300s notify-by-pspec-unhandled: Notify (unhandled) per second: 75289157 1301s notify-handled: Notify per second: 1048640 1302s notify-by-pspec-handled: Notify per second: 1133559 1302s # Executing: glib/performance.test 1303s property-set: Property set per second: 9930952 1305s property-set-signaled: Property set per second: 2628808 1306s property-get: Property get per second: 10096888 1307s refcount: Million refs+unref per second: 16.31 1307s # Executing: glib/performance.test 1308s refcount-1: Million refs+unref per second: 41.76 1310s refcount-toggle: Million refs+unref per second: 32.41 1310s ok - glib/performance.test 1310s # Running test: glib/memory-monitor.test 1310s TAP version 14 1310s # random seed: R02S6cd6c4c6bedd19ababf35671b82b994c 1310s 1..1 1310s # Start of memory-monitor tests 1310s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 1310s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ‘gio-memory-monitor’ 1310s ok 1 /memory-monitor/default 1310s # End of memory-monitor tests 1310s ok - glib/memory-monitor.test 1310s # Running test: glib/private.test 1310s TAP version 14 1310s # random seed: R02S8a911f5ba52b5b3f622ffb88724bdada 1310s 1..8 1310s # Start of thread tests 1310s ok 1 /thread/private1 1311s ok 2 /thread/private2 1311s # slow test /thread/private2 executed in 1.08 secs 1311s ok 3 /thread/private3 1311s ok 4 /thread/staticprivate1 1311s ok 5 /thread/staticprivate2 1311s ok 6 /thread/staticprivate3 1312s ok 7 /thread/staticprivate4 1312s # slow test /thread/staticprivate4 executed in 1.09 secs 1312s ok 8 /thread/staticprivate5 1312s # End of thread tests 1312s ok - glib/private.test 1312s # Running test: glib/array-test.test 1312s TAP version 14 1312s # random seed: R02S6b75e7b6954e4c51489ab7d1a4fb2d60 1312s 1..120 1312s # Start of array tests 1312s ok 1 /array/ref-count 1312s ok 2 /array/steal 1312s ok 3 /array/clear-func 1312s ok 4 /array/binary-search 1312s ok 5 /array/overflow-append-vals 1312s ok 6 /array/overflow-set-size 1312s # Start of new tests 1312s ok 7 /array/new/zero-terminated 1312s ok 8 /array/new/take 1312s ok 9 /array/new/take-zero-terminated 1312s # Start of take tests 1312s ok 10 /array/new/take/empty 1312s ok 11 /array/new/take/overflow # SKIP Overflow test requires SIZE_WIDTH > UINT_WIDTH. 1312s ok 12 /array/new/take/zero-size 1312s # End of take tests 1312s # Start of take-zero-terminated tests 1312s ok 13 /array/new/take-zero-terminated/zero-size 1312s ok 14 /array/new/take-zero-terminated/null 1312s # End of take-zero-terminated tests 1312s # End of new tests 1312s # Start of copy tests 1312s # /array/copy/sized summary: Test that copying a newly-allocated sized array works. 1312s ok 15 /array/copy/sized 1312s ok 16 /array/copy/zero-terminated 1312s ok 17 /array/copy/non-zero-terminated-no-clear 1312s ok 18 /array/copy/non-zero-terminated-clear 1312s ok 19 /array/copy/zero-terminated-no-clear 1312s ok 20 /array/copy/zero-terminated-clear 1312s # End of copy tests 1312s # Start of remove-range tests 1312s ok 21 /array/remove-range/zero-terminated-null 1312s ok 22 /array/remove-range/non-zero-terminated-no-clear 1312s ok 23 /array/remove-range/non-zero-terminated-clear 1312s ok 24 /array/remove-range/zero-terminated-no-clear 1312s ok 25 /array/remove-range/zero-terminated-clear 1312s # End of remove-range tests 1312s # Start of set-size tests 1312s ok 26 /array/set-size/zero-terminated-null 1312s ok 27 /array/set-size/non-zero-terminated-no-clear 1312s ok 28 /array/set-size/non-zero-terminated-clear 1312s ok 29 /array/set-size/zero-terminated-no-clear 1312s ok 30 /array/set-size/zero-terminated-clear 1312s # Start of sized tests 1312s ok 31 /array/set-size/sized/non-zero-terminated-no-clear 1312s ok 32 /array/set-size/sized/non-zero-terminated-clear 1312s ok 33 /array/set-size/sized/zero-terminated-no-clear 1312s ok 34 /array/set-size/sized/zero-terminated-clear 1312s # End of sized tests 1312s # End of set-size tests 1312s # Start of append-val tests 1312s ok 35 /array/append-val/non-zero-terminated-no-clear 1312s ok 36 /array/append-val/non-zero-terminated-clear 1312s ok 37 /array/append-val/zero-terminated-no-clear 1312s ok 38 /array/append-val/zero-terminated-clear 1312s # End of append-val tests 1312s # Start of prepend-val tests 1312s ok 39 /array/prepend-val/non-zero-terminated-no-clear 1312s ok 40 /array/prepend-val/non-zero-terminated-clear 1312s ok 41 /array/prepend-val/zero-terminated-no-clear 1312s ok 42 /array/prepend-val/zero-terminated-clear 1312s # End of prepend-val tests 1312s # Start of prepend-vals tests 1312s ok 43 /array/prepend-vals/non-zero-terminated-no-clear 1312s ok 44 /array/prepend-vals/non-zero-terminated-clear 1312s ok 45 /array/prepend-vals/zero-terminated-no-clear 1312s ok 46 /array/prepend-vals/zero-terminated-clear 1312s # End of prepend-vals tests 1312s # Start of insert-vals tests 1312s ok 47 /array/insert-vals/non-zero-terminated-no-clear 1312s ok 48 /array/insert-vals/non-zero-terminated-clear 1312s ok 49 /array/insert-vals/zero-terminated-no-clear 1312s ok 50 /array/insert-vals/zero-terminated-clear 1312s # End of insert-vals tests 1312s # Start of remove-index tests 1312s ok 51 /array/remove-index/non-zero-terminated-no-clear 1312s ok 52 /array/remove-index/non-zero-terminated-clear 1312s ok 53 /array/remove-index/zero-terminated-no-clear 1312s ok 54 /array/remove-index/zero-terminated-clear 1312s # End of remove-index tests 1312s # Start of remove-index-fast tests 1312s ok 55 /array/remove-index-fast/non-zero-terminated-no-clear 1312s ok 56 /array/remove-index-fast/non-zero-terminated-clear 1312s ok 57 /array/remove-index-fast/zero-terminated-no-clear 1312s ok 58 /array/remove-index-fast/zero-terminated-clear 1312s # End of remove-index-fast tests 1312s # Start of sort tests 1312s ok 59 /array/sort/non-zero-terminated-no-clear 1312s ok 60 /array/sort/non-zero-terminated-clear 1312s ok 61 /array/sort/zero-terminated-no-clear 1312s ok 62 /array/sort/zero-terminated-clear 1312s # End of sort tests 1312s # Start of sort-with-data tests 1312s ok 63 /array/sort-with-data/non-zero-terminated-no-clear 1312s ok 64 /array/sort-with-data/non-zero-terminated-clear 1312s ok 65 /array/sort-with-data/zero-terminated-no-clear 1312s ok 66 /array/sort-with-data/zero-terminated-clear 1312s # End of sort-with-data tests 1312s # End of array tests 1312s # Start of pointerarray tests 1312s ok 67 /pointerarray/add 1312s ok 68 /pointerarray/insert 1312s ok 69 /pointerarray/new-take 1312s ok 70 /pointerarray/new-take-null-terminated 1312s ok 71 /pointerarray/new-from-array 1312s ok 72 /pointerarray/new-from-null-terminated-array 1312s ok 73 /pointerarray/free-func 1312s ok 74 /pointerarray/array_extend_and_steal 1312s ok 75 /pointerarray/sort 1312s ok 76 /pointerarray/sort-with-data 1312s ok 77 /pointerarray/sort-values 1312s ok 78 /pointerarray/sort-values-with-data 1312s ok 79 /pointerarray/remove-range 1312s ok 80 /pointerarray/steal 1312s # Start of free tests 1312s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 1312s ok 81 /pointerarray/free/null-terminated 1312s # End of free tests 1312s # Start of new-take tests 1312s ok 82 /pointerarray/new-take/empty 1312s ok 83 /pointerarray/new-take/overflow # SKIP Overflow test requires SIZE_WIDTH > UINT_WIDTH. 1312s ok 84 /pointerarray/new-take/with-free-func 1312s # End of new-take tests 1312s # Start of new-take-null-terminated tests 1312s ok 85 /pointerarray/new-take-null-terminated/empty 1312s ok 86 /pointerarray/new-take-null-terminated/with-free-func 1312s ok 87 /pointerarray/new-take-null-terminated/from-gstrv 1312s # End of new-take-null-terminated tests 1312s # Start of new-from-array tests 1312s ok 88 /pointerarray/new-from-array/empty 1312s ok 89 /pointerarray/new-from-array/overflow # SKIP Overflow test requires SIZE_WIDTH > UINT_WIDTH. 1312s ok 90 /pointerarray/new-from-array/with-copy-and-free-func 1312s # End of new-from-array tests 1312s # Start of new-from-null-terminated-array tests 1312s ok 91 /pointerarray/new-from-null-terminated-array/empty 1312s ok - glib/array-test.test 1312s ok 92 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 1312s ok 93 /pointerarray/new-from-null-terminated-array/from-gstrv 1312s # End of new-from-null-terminated-array tests 1312s # Start of ref-count tests 1312s ok 94 /pointerarray/ref-count/not-null-terminated 1312s ok 95 /pointerarray/ref-count/null-terminated 1312s # End of ref-count tests 1312s # Start of array_copy tests 1312s # /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 1312s ok 96 /pointerarray/array_copy/not-null-terminated 1312s # /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 1312s ok 97 /pointerarray/array_copy/null-terminated 1312s # End of array_copy tests 1312s # Start of array_extend tests 1312s ok 98 /pointerarray/array_extend/not-null-terminated 1312s ok 99 /pointerarray/array_extend/null-terminated 1312s # End of array_extend tests 1312s # Start of sort tests 1312s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 1312s ok 100 /pointerarray/sort/example 1312s # End of sort tests 1312s # Start of sort-with-data tests 1312s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 1312s ok 101 /pointerarray/sort-with-data/example 1312s # End of sort-with-data tests 1312s # Start of sort-values tests 1312s ok 102 /pointerarray/sort-values/example 1312s # End of sort-values tests 1312s # Start of sort-values-with-data tests 1312s ok 103 /pointerarray/sort-values-with-data/example 1312s # End of sort-values-with-data tests 1312s # Start of find tests 1312s ok 104 /pointerarray/find/empty 1312s ok 105 /pointerarray/find/non-empty 1312s # End of find tests 1312s # Start of steal_index tests 1312s ok 106 /pointerarray/steal_index/not-null-terminated 1312s ok 107 /pointerarray/steal_index/null-terminated 1312s # End of steal_index tests 1312s # End of pointerarray tests 1312s # Start of bytearray tests 1312s ok 108 /bytearray/steal 1312s ok 109 /bytearray/append 1312s ok 110 /bytearray/prepend 1312s ok 111 /bytearray/remove 1312s ok 112 /bytearray/remove-fast 1312s ok 113 /bytearray/remove-range 1312s ok 114 /bytearray/ref-count 1312s ok 115 /bytearray/set-size 1312s ok 116 /bytearray/sort 1312s ok 117 /bytearray/sort-with-data 1312s ok 118 /bytearray/new-take 1312s ok 119 /bytearray/new-take-overflow # SKIP Overflow test requires SIZE_WIDTH > UINT_WIDTH. 1312s ok 120 /bytearray/free-to-bytes 1312s # End of bytearray tests 1312s TAP version 14 1312s # random seed: R02S08bdac4b860f7335f6cd850c885c086c 1312s 1..14 1312s # Start of slist tests 1312s ok 1 /slist/sort 1312s ok 2 /slist/sort-with-data 1312s ok 3 /slist/insert-sorted 1312s ok 4 /slist/insert-sorted-with-data 1312s # Running test: glib/slist.test 1312s ok 5 /slist/reverse 1312s ok 6 /slist/nth 1312s ok 7 /slist/remove 1312s ok 8 /slist/remove-all 1312s ok 9 /slist/insert 1312s ok 10 /slist/position 1312s ok 11 /slist/concat 1312s ok 12 /slist/copy 1312s # Start of sort tests 1312s ok 13 /slist/sort/stable 1312s # End of sort tests 1312s # Start of copy tests 1312s ok 14 /slist/copy/deep 1312s # End of copy tests 1312s # End of slist tests 1312s ok - glib/slist.test 1312s # Running test: glib/data-output-stream.test 1312s TAP version 14 1312s # random seed: R02S4b5028572d0dc8a2792b829b5232b74d 1312s 1..7 1312s # Start of data-output-stream tests 1312s ok 1 /data-output-stream/basic 1312s ok 2 /data-output-stream/write-lines-LF 1312s ok 3 /data-output-stream/write-lines-CR 1312s ok 4 /data-output-stream/write-lines-CR-LF 1312s ok 5 /data-output-stream/write-int 1312s ok 6 /data-output-stream/seek 1312s ok 7 /data-output-stream/truncate 1312s # End of data-output-stream tests 1312s ok - glib/data-output-stream.test 1312s # Running test: glib/timer.test 1312s TAP version 14 1312s # random seed: R02S4177453cf100afba34cef3abc2e9c1fa 1312s 1..10 1312s # Start of timer tests 1312s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 1312s ok 2 /timer/stop 1312s ok - glib/timer.test 1312s # Running test: glib/gapplication.test 1312s ok 3 /timer/continue 1312s ok 4 /timer/reset 1312s ok 5 /timer/is_active 1312s # End of timer tests 1312s # Start of timeval tests 1312s ok 6 /timeval/add 1312s ok 7 /timeval/from-iso8601 1312s ok 8 /timeval/to-iso8601 1312s # Start of to-iso8601 tests 1312s ok 9 /timeval/to-iso8601/overflow # SKIP G_MAXINT == G_MAXLONG - we can't make g_time_val_to_iso8601() overflow. 1312s # End of to-iso8601 tests 1312s # End of timeval tests 1312s # Start of usleep tests 1312s ok 10 /usleep/with-zero-wait 1312s # End of usleep tests 1312s TAP version 14 1312s # random seed: R02Sc92a64c34c34ed34f7efbbdfe59336ca 1312s 1..25 1312s # Start of gapplication tests 1312s ok 1 /gapplication/no-dbus 1312s ok 2 /gapplication/no-appid 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s ok 3 /gapplication/properties 1312s ok 4 /gapplication/app-id 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s ok 5 /gapplication/quit 1312s ok 6 /gapplication/registered 1312s ok 7 /gapplication/local-actions 1312s ok 8 /gapplication/local-command-line 1312s ok 9 /gapplication/resource-path 1312s ok 10 /gapplication/test-help 1312s ok 11 /gapplication/command-line-done 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s ok 12 /gapplication/test-busy 1312s ok 13 /gapplication/test-handle-local-options1 1312s ok 14 /gapplication/test-handle-local-options2 1312s ok 15 /gapplication/test-handle-local-options3 1312s ok 16 /gapplication/api 1312s ok 17 /gapplication/version 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1312s # launching subprocess 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s ok 18 /gapplication/replace 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1312s # launching subprocess 1312s # Executing: glib/gapplication.test 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s ok 19 /gapplication/no-replace 1312s # slow test /gapplication/no-replace executed in 0.51 secs 1312s # Start of command-line tests 1312s # /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 1312s ok 20 /gapplication/command-line/arguments 1312s # End of command-line tests 1312s # Start of dbus tests 1312s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1312s # Message 0 1312s # Message 1 1312s # Message 2 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s ok 21 /gapplication/dbus/activate 1312s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1312s # Message 0 1312s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1312s # Message 1 1312s # Message 2 1312s # Message 3 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s ok 22 /gapplication/dbus/open 1312s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1312s # Message 0 1312s # Message 1 1312s # Message 2 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s ok 23 /gapplication/dbus/command-line 1312s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1312s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s ok 24 /gapplication/dbus/command-line-done 1313s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1313s # Message 0 1313s # Message 1 1313s # Message 2 1313s # Message 3 1313s # Message 4 1313s # Message 5 1313s # Message 6 1313s # Message 7 1313s # Message 8 1313s # Message 9 1313s # Message 10 1313s # Message 11 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1313s ok 25 /gapplication/dbus/activate-action 1313s # End of dbus tests 1313s # End of gapplication tests 1313s ok - glib/gapplication.test 1313s # Running test: glib/power-profile-monitor-dbus.test 1313s TAP version 13 1313s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 1313s 1..1 1313s ok - glib/power-profile-monitor-dbus.test 1313s # Running test: glib/registered-type-info.test 1313s TAP version 14 1313s # random seed: R02Sd5be48e6b662016607c63a73989ef777 1313s 1..1 1313s # Start of registered-type-info tests 1313s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_TP13J3/registered-type-info/boxed/.dirs/home 1313s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_TP13J3/registered-type-info/boxed/.dirs/cache 1313s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_TP13J3/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_TP13J3/registered-type-info/boxed/.dirs/system-config2 1313s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_TP13J3/registered-type-info/boxed/.dirs/config 1313s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_TP13J3/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_TP13J3/registered-type-info/boxed/.dirs/system-data2 1313s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_TP13J3/registered-type-info/boxed/.dirs/data 1313s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_TP13J3/registered-type-info/boxed/.dirs/state 1313s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_TP13J3/registered-type-info/boxed/.dirs/runtime 1313s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1313s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 1313s # Expecting CClosure to not be boxed 1313s # Expecting TypeCValue to not be boxed 1313s # Expecting InitiallyUnownedClass to not be boxed 1313s # Expecting BookmarkFile to be boxed 1313s # Expecting Closure to be boxed 1313s # Expecting Object to not be boxed 1313s ok 1 /registered-type-info/boxed 1313s # End of registered-type-info tests 1313s ok - glib/registered-type-info.test 1313s # Running test: glib/charset.test 1313s TAP version 14 1313s # random seed: R02S8e8c7690f7b90e85940af5f27fab49e1 1313s 1..2 1313s # Start of charset tests 1313s # Test 0 1313s # Test 1 1313s # Test 2 1313s # Test 3 1313s ok 1 /charset/language_names_with_category 1313s ok 2 /charset/language_names_with_category_async 1313s # End of charset tests 1313s ok - glib/charset.test 1313s # Running test: glib/file-enumerator.test 1313s TAP version 14 1313s # random seed: R02S8c0c0268a397367cb5c389a04b99c554 1313s 1..1 1313s # Start of file-enumerator tests 1313s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1313s ok 1 /file-enumerator/close-on-dispose 1313s # End of file-enumerator tests 1313s ok - glib/file-enumerator.test 1313s # Running test: glib/include.test 1313s TAP version 14 1313s # random seed: R02S995482fc9e7434c9f34331bbe7732116 1313s 1..1 1313s # Start of include tests 1313s ok 1 /include/rwlock 1313s # End of include tests 1313s ok - glib/include.test 1313s # Running test: glib/collate.test 1313s TAP version 14 1313s # random seed: R02S190a6a6d55a5bca451622d60463865c6 1313s 1..9 1313s # Start of unicode tests 1313s # Start of collate tests 1313s ok 1 /unicode/collate/0 1313s ok 2 /unicode/collate/1 1313s ok 3 /unicode/collate/2 1313s # End of collate tests 1313s # Start of collate-key tests 1313s ok 4 /unicode/collate-key/0 1313s ok 5 /unicode/collate-key/1 1313s ok 6 /unicode/collate-key/2 1313s # End of collate-key tests 1313s # Start of collate-filename tests 1313s ok 7 /unicode/collate-filename/0 1313s ok 8 /unicode/collate-filename/1 1313s ok 9 /unicode/collate-filename/2 1313s # End of collate-filename tests 1313s # End of unicode tests 1313s ok - glib/collate.test 1313s TAP version 14 1313s # random seed: R02S3e9120ae78bef9e51a4722da4b795559 1313s 1..6 1313s # Start of thread_pool tests 1313s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3712 1313s ok 1 /thread_pool/pool_fail 1313s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 1313s ok 2 /thread_pool/shared 1313s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 1313s ok 3 /thread_pool/exclusive 1313s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1313s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 1313s ok 4 /thread_pool/create_shared_after_exclusive 1313s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 1313s ok 5 /thread_pool/create_full 1313s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1313s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 1313s ok 6 /thread_pool/create_exclusive_after_shared 1313s # End of thread_pool tests 1313s TAP version 14 1313s # random seed: R02S403d93206292427d5c1a860a1f84bb52 1313s 1..14 1313s # Start of contenttype tests 1313s ok 1 /contenttype/guess 1313s ok 2 /contenttype/guess_svg_from_data 1313s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 1313s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 1313s ok 5 /contenttype/unknown 1313s ok 6 /contenttype/subtype 1313s ok 7 /contenttype/list 1313s # Running test: glib/thread-pool.test 1313s ok - glib/thread-pool.test 1313s # Running test: glib/contenttype.test 1313s ok - glib/contenttype.test 1313s # Running test: glib/power-profile-monitor.test 1313s ok - glib/power-profile-monitor.test 1313s ok 8 /contenttype/executable 1313s ok 9 /contenttype/description 1313s ok 10 /contenttype/icon 1313s ok 11 /contenttype/symbolic-icon 1313s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1313s ok 12 /contenttype/tree 1313s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 1313s ok 13 /contenttype/tree_invalid_encoding 1313s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 1313s ok 14 /contenttype/test_type_is_a_special_case 1313s # End of contenttype tests 1313s TAP version 14 1313s # random seed: R02S4d32f67c9f37ee18e7d2c0e13b114194 1313s 1..1 1313s # Start of power-profile-monitor tests 1313s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 1313s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ‘gio-power-profile-monitor’ 1313s ok 1 /power-profile-monitor/default 1313s # End of power-profile-monitor tests 1313s # Running test: glib/hostutils.test 1313s TAP version 14 1313s # random seed: R02Se49dd9d87e35da0095d1f3a1cdae3c63 1313s 1..4 1313s # Start of hostutils tests 1313s ok 1 /hostutils/hostname_is_non_ascii 1313s ok 2 /hostutils/to_ascii 1313s ok 3 /hostutils/to_unicode 1313s ok 4 /hostutils/is_ip_addr 1313s # End of hostutils tests 1313s ok - glib/hostutils.test 1313s # Running test: glib/gsocketclient-slow.test 1313s TAP version 14 1313s # random seed: R02Sdf6d5d9e6133c6767919bb33c0978b9b 1313s 1..4 1313s # Start of socket-client tests 1313s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3184 1313s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1313s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x463eff0 and GSocketClientAsyncConnectData 0x4635810 1313s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1313s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1313s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x463a960 for GSocketClientAsyncConnectData 0x4635810 1313s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1314s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1314s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1314s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1314s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1314s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1314s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x463a960 for GSocketClientAsyncConnectData 0x4635810 1314s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1314s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1314s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1314s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Could not connect to localhost: Connection refused 1314s ok 1 /socket-client/connection-fail 1314s # slow test /socket-client/connection-fail executed in 1.20 secs 1314s # Start of happy-eyeballs tests 1314s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x463a560 and GSocketClientAsyncConnectData 0x4635810 1314s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1314s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1314s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x463a960 for GSocketClientAsyncConnectData 0x4635810 1314s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1315s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1315s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1315s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1315s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1315s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1315s ok 2 /socket-client/happy-eyeballs/slow 1315s # slow test /socket-client/happy-eyeballs/slow executed in 0.60 secs 1315s # Start of cancellation tests 1315s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x463cb78 and GSocketClientAsyncConnectData 0x463a008 1315s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1315s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled 1315s ok 3 /socket-client/happy-eyeballs/cancellation/instant 1315s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x463a050 and GSocketClientAsyncConnectData 0x4633948 1315s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1315s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1315s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x463a910 for GSocketClientAsyncConnectData 0x4633948 1315s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1315s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1315s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1315s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1315s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1315s # GLib-GIO-DEBUG: GSocketClient: Connection cancelled! 1315s ok 4 /socket-client/happy-eyeballs/cancellation/delayed 1315s # slow test /socket-client/happy-eyeballs/cancellation/delayed executed in 0.60 secs 1315s # End of cancellation tests 1315s # End of happy-eyeballs tests 1315s # End of socket-client tests 1315s ok - glib/gsocketclient-slow.test 1315s # Running test: glib/strfuncs.test 1315s TAP version 14 1315s # random seed: R02S34fcc9654e43806581576c348eeb5007 1315s 1..51 1315s # Start of strfuncs tests 1315s ok 1 /strfuncs/ascii-strcasecmp 1315s ok 2 /strfuncs/ascii_strdown 1315s ok 3 /strfuncs/ascii_strdup 1316s ok 4 /strfuncs/ascii_strtod 1316s ok 5 /strfuncs/bounds-check 1316s ok 6 /strfuncs/has-prefix 1316s ok 7 /strfuncs/has-prefix-macro 1316s ok 8 /strfuncs/has-suffix 1316s ok 9 /strfuncs/has-suffix-macro 1316s ok 10 /strfuncs/memdup 1316s ok 11 /strfuncs/memdup2 1316s ok 12 /strfuncs/set_str 1316s ok 13 /strfuncs/stpcpy 1316s ok 14 /strfuncs/str_match_string 1316s ok 15 /strfuncs/str_tokenize_and_fold 1316s ok 16 /strfuncs/strcanon 1316s ok 17 /strfuncs/strchomp 1316s ok 18 /strfuncs/strchug 1316s ok 19 /strfuncs/strcompress-strescape 1316s ok 20 /strfuncs/strconcat 1316s ok 21 /strfuncs/strdelimit 1316s ok 22 /strfuncs/strdup 1316s ok 23 /strfuncs/strdup-printf 1316s ok 24 /strfuncs/strdupv 1316s ok - glib/strfuncs.test 1316s # Running test: glib/memory-input-stream.test 1316s ok - glib/memory-input-stream.test 1316s # Running test: glib/protocol.test 1316s ok - glib/protocol.test 1316s # Running test: glib/g-file-info-filesystem-readonly.test 1316s ok - glib/g-file-info-filesystem-readonly.test 1316s # Running test: glib/once.test 1316s ok 25 /strfuncs/strerror 1316s ok 26 /strfuncs/strip-context 1316s ok 27 /strfuncs/strjoin 1316s ok 28 /strfuncs/strjoinv 1316s ok 29 /strfuncs/strlcat 1316s ok 30 /strfuncs/strlcpy 1316s ok 31 /strfuncs/strncasecmp 1316s ok 32 /strfuncs/strndup 1316s ok 33 /strfuncs/strnfill 1316s ok 34 /strfuncs/strreverse 1316s ok 35 /strfuncs/strsignal 1316s ok 36 /strfuncs/strsplit 1316s ok 37 /strfuncs/strsplit-set 1316s ok 38 /strfuncs/strstr 1316s ok 39 /strfuncs/strtod 1316s ok 40 /strfuncs/strtoull-strtoll 1316s ok 41 /strfuncs/strup 1316s ok 42 /strfuncs/strv-contains 1316s ok 43 /strfuncs/strv-equal 1316s ok 44 /strfuncs/strv-length 1316s ok 45 /strfuncs/test-is-to-digit 1316s ok 46 /strfuncs/transliteration 1316s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 1316s ok 47 /strfuncs/str-equal 1316s ok 48 /strfuncs/str-is-ascii 1316s # Start of ascii-string-to-num tests 1316s ok 49 /strfuncs/ascii-string-to-num/pathological 1316s ok 50 /strfuncs/ascii-string-to-num/usual 1316s # End of ascii-string-to-num tests 1316s # Start of strdup tests 1316s ok 51 /strfuncs/strdup/inline 1316s # End of strdup tests 1316s # End of strfuncs tests 1316s TAP version 14 1316s # random seed: R02Sb5848bcd38217b4963c401bb58788754 1316s 1..6 1316s # Start of memory-input-stream tests 1316s ok 1 /memory-input-stream/read-chunks 1316s ok 2 /memory-input-stream/async 1316s ok 3 /memory-input-stream/seek 1316s ok 4 /memory-input-stream/truncate 1316s ok 5 /memory-input-stream/read-bytes 1316s ok 6 /memory-input-stream/from-bytes 1316s # End of memory-input-stream tests 1316s TAP version 14 1316s # random seed: R02S2aea92f3528a394ad8066a585172bc97 1316s 1..9 1316s # Start of glib tests 1316s # Start of testing tests 1316s # Start of protocol tests 1316s ok 1 /glib/testing/protocol/debug 1316s ok 2 /glib/testing/protocol/info 1316s ok 3 /glib/testing/protocol/message 1316s ok 4 /glib/testing/protocol/warning 1316s ok 5 /glib/testing/protocol/critical 1316s ok 6 /glib/testing/protocol/error 1316s ok 7 /glib/testing/protocol/gtest-message 1316s ok 8 /glib/testing/protocol/test-message 1316s ok 9 /glib/testing/protocol/test-error 1316s # End of protocol tests 1316s # End of testing tests 1316s # End of glib tests 1316s TAP version 14 1316s # random seed: R02Scd71e7c738ba1d2660c593b7c0e13624 1316s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 1316s 1..2 1316s # Start of g-file-info-filesystem-readonly tests 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 1316s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_VSMDK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 1316s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1316s # End of g-file-info-filesystem-readonly tests 1316s TAP version 14 1316s # random seed: R02S6f0e737044c9fc32ecf439ee5fce7ed6 1316s 1..5 1316s # Start of once tests 1316s # /once/single-threaded summary: Test g_once() usage from a single thread 1316s ok 1 /once/single-threaded 1316s # /once/multi-threaded summary: Test g_once() usage from multiple threads 1316s ok 2 /once/multi-threaded 1316s # End of once tests 1316s # Start of once-init tests 1316s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 1316s ok 3 /once-init/single-threaded 1316s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 1316s ok 4 /once-init/multi-threaded 1316s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 1316s ok 5 /once-init/string 1316s # End of once-init tests 1316s ok - glib/once.test 1316s TAP version 14 1316s # random seed: R02S5e2bbde634e1f262b00118052cd7d5ee 1316s 1..7 1316s # Start of strvbuilder tests 1316s ok 1 /strvbuilder/empty 1316s ok 2 /strvbuilder/add 1316s ok 3 /strvbuilder/addv 1316s ok 4 /strvbuilder/add_many 1316s ok 5 /strvbuilder/take 1316s ok 6 /strvbuilder/ref 1316s ok 7 /strvbuilder/unref_to_strv 1316s # End of strvbuilder tests 1316s # Running test: glib/strvbuilder.test 1316s ok - glib/strvbuilder.test 1316s # Running test: glib/utils.test 1316s TAP version 14 1316s # random seed: R02Sfc198e66e9fe201f10287fdaad9db6d8 1316s 1..41 1316s # Start of utils tests 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/language-names/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/language-names/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/language-names/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/language-names/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/language-names/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/language-names/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/language-names/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/language-names/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/language-names/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/language-names/.dirs/runtime 1316s ok 1 /utils/language-names 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/locale-variants/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/locale-variants/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/locale-variants/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/locale-variants/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/locale-variants/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/locale-variants/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/locale-variants/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/locale-variants/.dirs/runtime 1316s # Testing locale ‘en’ 1316s # Testing locale ‘sr@latin’ 1316s # Testing locale ‘fr_BE’ 1316s # Testing locale ‘sr_SR@latin’ 1316s # Testing locale ‘sr_SR@latin.UTF-8’ 1316s # Testing locale ‘sr@latin_invalid’ 1316s # Testing locale ‘sr.UTF-8@latin’ 1316s # Testing locale ‘sr.UTF-8_latin’ 1316s # Testing locale ‘sr.UTF-8@latin_invalid’ 1316s ok 2 /utils/locale-variants 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/version/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/version/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/version/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/version/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/version/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/version/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/version/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/version/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/version/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/version/.dirs/runtime 1316s ok 3 /utils/version 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/appname/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/appname/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/appname/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/appname/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/appname/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/appname/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/appname/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/appname/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/appname/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/appname/.dirs/runtime 1316s ok 4 /utils/appname 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/prgname-thread-safety/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/prgname-thread-safety/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/prgname-thread-safety/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/prgname-thread-safety/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/prgname-thread-safety/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/prgname-thread-safety/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/prgname-thread-safety/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/prgname-thread-safety/.dirs/runtime 1316s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1316s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1316s ok 5 /utils/prgname-thread-safety 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/tmpdir/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/tmpdir/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/tmpdir/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/tmpdir/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/tmpdir/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/tmpdir/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/tmpdir/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/tmpdir/.dirs/runtime 1316s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1316s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1316s Unable to clean up temporary directory /tmp/test_utils_WEMEK3/utils/tmpdir: No such file or directory 1316s ok 6 /utils/tmpdir 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/basic_bits/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/basic_bits/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/basic_bits/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/basic_bits/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/basic_bits/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/basic_bits/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/basic_bits/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/basic_bits/.dirs/runtime 1316s ok 7 /utils/basic_bits 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/bits/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/bits/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/bits/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/bits/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/bits/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/bits/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/bits/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/bits/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/bits/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/bits/.dirs/runtime 1316s ok - glib/utils.test 1316s # Running test: glib/portal-support-flatpak-network-only.test 1316s ok 8 /utils/bits 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/swap/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/swap/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/swap/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/swap/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/swap/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/swap/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/swap/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/swap/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/swap/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/swap/.dirs/runtime 1316s ok 9 /utils/swap 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/find-program/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/find-program/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/find-program/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/find-program/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/find-program/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/find-program/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/find-program/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/find-program/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/find-program/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/find-program/.dirs/runtime 1316s ok 10 /utils/find-program 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/find-program-for-path/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/find-program-for-path/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/find-program-for-path/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/find-program-for-path/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/find-program-for-path/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/find-program-for-path/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/find-program-for-path/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/find-program-for-path/.dirs/runtime 1316s ok 11 /utils/find-program-for-path 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/debug/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/debug/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/debug/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/debug/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/debug/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/debug/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/debug/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/debug/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/debug/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/debug/.dirs/runtime 1316s Unable to clean up temporary directory /tmp/test_utils_WEMEK3/utils/debug: No such file or directory 1316s ok 12 /utils/debug 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/codeset/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/codeset/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/codeset/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/codeset/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/codeset/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/codeset/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/codeset/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/codeset/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/codeset/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/codeset/.dirs/runtime 1316s ok 13 /utils/codeset 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/codeset2/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/codeset2/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/codeset2/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/codeset2/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/codeset2/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/codeset2/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/codeset2/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/codeset2/.dirs/runtime 1316s Unable to clean up temporary directory /tmp/test_utils_WEMEK3/utils/codeset2: No such file or directory 1316s ok 14 /utils/codeset2 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/console-charset/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/console-charset/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/console-charset/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/console-charset/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/console-charset/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/console-charset/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/console-charset/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/console-charset/.dirs/runtime 1316s ok 15 /utils/console-charset 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/gettext/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/gettext/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/gettext/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/gettext/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/gettext/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/gettext/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/gettext/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/gettext/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/gettext/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/gettext/.dirs/runtime 1316s ok 16 /utils/gettext 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/username/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/username/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/username/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/username/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/username/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/username/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/username/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/username/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/username/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/username/.dirs/runtime 1316s ok 17 /utils/username 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/realname/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/realname/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/realname/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/realname/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/realname/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/realname/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/realname/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/realname/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/realname/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/realname/.dirs/runtime 1316s ok 18 /utils/realname 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/hostname/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/hostname/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/hostname/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/hostname/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/hostname/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/hostname/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/hostname/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/hostname/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/hostname/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/hostname/.dirs/runtime 1316s ok 19 /utils/hostname 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/os-info/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/os-info/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/os-info/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/os-info/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/os-info/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/os-info/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/os-info/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/os-info/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/os-info/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/os-info/.dirs/runtime 1316s # NAME: Ubuntu 1316s ok 20 /utils/os-info 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/clear-pointer/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/clear-pointer/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/clear-pointer/.dirs/runtime 1316s ok 21 /utils/clear-pointer 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer-cast/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer-cast/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/clear-pointer-cast/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer-cast/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/clear-pointer-cast/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer-cast/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer-cast/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/clear-pointer-cast/.dirs/runtime 1316s ok - glib/portal-support-flatpak-network-only.test 1316s ok 22 /utils/clear-pointer-cast 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/take-pointer/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/take-pointer/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/take-pointer/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/take-pointer/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/take-pointer/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/take-pointer/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/take-pointer/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/take-pointer/.dirs/runtime 1316s ok 23 /utils/take-pointer 1316s # Running test: glib/refstring.test 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/clear-source/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/clear-source/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/clear-source/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/clear-source/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/clear-source/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/clear-source/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/clear-source/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/clear-source/.dirs/runtime 1316s ok 24 /utils/clear-source 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/misc-mem/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/misc-mem/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/misc-mem/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/misc-mem/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/misc-mem/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/misc-mem/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/misc-mem/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/misc-mem/.dirs/runtime 1316s ok 25 /utils/misc-mem 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/aligned-mem/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/aligned-mem/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/aligned-mem/.dirs/runtime 1316s # /utils/aligned-mem summary: Aligned memory allocator 1316s # Alignment must not be zero 1316s # Alignment must be a power of two 1316s # Alignment must be a multiple of sizeof(void*) 1316s ok 26 /utils/aligned-mem 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/free-sized/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/free-sized/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/free-sized/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/free-sized/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/free-sized/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/free-sized/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/free-sized/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/free-sized/.dirs/runtime 1316s # /utils/free-sized summary: Check that g_free_sized() works 1316s ok 27 /utils/free-sized 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/nullify/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/nullify/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/nullify/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/nullify/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/nullify/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/nullify/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/nullify/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/nullify/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/nullify/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/nullify/.dirs/runtime 1316s ok 28 /utils/nullify 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/atexit/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/atexit/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/atexit/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/atexit/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/atexit/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/atexit/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/atexit/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/atexit/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/atexit/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/atexit/.dirs/runtime 1316s Unable to clean up temporary directory /tmp/test_utils_WEMEK3/utils/atexit: No such file or directory 1316s ok 29 /utils/atexit 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/check-setuid/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/check-setuid/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/check-setuid/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/check-setuid/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/check-setuid/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/check-setuid/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/check-setuid/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/check-setuid/.dirs/runtime 1316s ok 30 /utils/check-setuid 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/int-limits/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/int-limits/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/int-limits/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/int-limits/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/int-limits/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/int-limits/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/int-limits/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/int-limits/.dirs/runtime 1316s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1316s ok 31 /utils/int-limits 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/clear-list/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/clear-list/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/clear-list/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/clear-list/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/clear-list/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/clear-list/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/clear-list/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/clear-list/.dirs/runtime 1316s ok 32 /utils/clear-list 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/clear-slist/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/clear-slist/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/clear-slist/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/clear-slist/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/clear-slist/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/clear-slist/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/clear-slist/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/clear-slist/.dirs/runtime 1316s ok 33 /utils/clear-slist 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/steal-handle-id/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/steal-handle-id/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/steal-handle-id/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/steal-handle-id/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/steal-handle-id/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/steal-handle-id/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/steal-handle-id/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/steal-handle-id/.dirs/runtime 1316s ok 34 /utils/steal-handle-id 1316s # Start of user-special-dirs tests 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/desktop/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/desktop/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/user-special-dirs/desktop/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/desktop/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/user-special-dirs/desktop/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/desktop/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/desktop/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/user-special-dirs/desktop/.dirs/runtime 1316s ok 35 /utils/user-special-dirs/desktop 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/load-unlocked/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/load-unlocked/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/load-unlocked/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/load-unlocked/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1316s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1316s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1316s Unable to clean up temporary directory /tmp/test_utils_WEMEK3/utils/user-special-dirs/load-unlocked: No such file or directory 1316s ok 36 /utils/user-special-dirs/load-unlocked 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/reload-leaks/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/reload-leaks/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/reload-leaks/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/user-special-dirs/reload-leaks/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1316s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1316s Unable to clean up temporary directory /tmp/test_utils_WEMEK3/utils/user-special-dirs/reload-leaks: No such file or directory 1316s ok 37 /utils/user-special-dirs/reload-leaks 1316s # End of user-special-dirs tests 1316s # Start of clear-pointer tests 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer/side-effects/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer/side-effects/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/clear-pointer/side-effects/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer/side-effects/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/clear-pointer/side-effects/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer/side-effects/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/clear-pointer/side-effects/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/clear-pointer/side-effects/.dirs/runtime 1316s ok 38 /utils/clear-pointer/side-effects 1316s # End of clear-pointer tests 1316s # Start of aligned-mem tests 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/alignment/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/alignment/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/aligned-mem/alignment/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/alignment/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/aligned-mem/alignment/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/alignment/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/alignment/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/aligned-mem/alignment/.dirs/runtime 1316s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1316s ok 39 /utils/aligned-mem/alignment 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/zeroed/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/zeroed/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/aligned-mem/zeroed/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/zeroed/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/aligned-mem/zeroed/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/zeroed/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/zeroed/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/aligned-mem/zeroed/.dirs/runtime 1316s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1316s ok 40 /utils/aligned-mem/zeroed 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/free-sized/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/free-sized/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_WEMEK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils_WEMEK3/utils/aligned-mem/free-sized/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/free-sized/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_WEMEK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils_WEMEK3/utils/aligned-mem/free-sized/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/free-sized/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_WEMEK3/utils/aligned-mem/free-sized/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_WEMEK3/utils/aligned-mem/free-sized/.dirs/runtime 1316s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1316s ok 41 /utils/aligned-mem/free-sized 1316s # Start of subprocess tests 1316s # End of subprocess tests 1316s # End of aligned-mem tests 1316s # End of utils tests 1316s TAP version 14 1316s # random seed: R02Sb446b6ba93955e8b6f08841eb38635c2 1316s 1..1 1316s # Start of portal-support tests 1316s # Start of flatpak tests 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_2O0CK3/portal-support/flatpak/network/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_2O0CK3/portal-support/flatpak/network/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_2O0CK3/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_2O0CK3/portal-support/flatpak/network/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_2O0CK3/portal-support/flatpak/network/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_2O0CK3/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_2O0CK3/portal-support/flatpak/network/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_2O0CK3/portal-support/flatpak/network/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_2O0CK3/portal-support/flatpak/network/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_2O0CK3/portal-support/flatpak/network/.dirs/runtime 1316s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_2O0CK3/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 1316s ok 1 /portal-support/flatpak/network 1316s # End of flatpak tests 1316s # End of portal-support tests 1316s TAP version 14 1316s # random seed: R02S3a1396d7c0f2a977fa8b5d6eaee515b7 1316s 1..8 1316s # Start of refstring tests 1316s # s = 'hello, world' (0x1027bf48) 1316s ok 1 /refstring/base 1316s ok 2 /refstring/length 1316s ok 3 /refstring/length-auto 1316s ok 4 /refstring/length-nuls 1316s # s = 'hello, world' (0x1027bf98) 1316s # p = s = 'hello, world' (0x1027bf98) 1316s # releasing p[0x1027bf98] ('hello, world') 1316s # p = 'goodbye, world' (0x1027c0a8) 1316s # releasing p[0x1027c0a8] ('goodbye, world') 1316s # releasing s[0x1027bf98] ('hello, world') 1316s ok 5 /refstring/intern 1316s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 1316s ok 6 /refstring/hash_equal 1316s # /refstring/equal summary: Test g_ref_string_equal() standalone 1316s ok 7 /refstring/equal 1316s ok 8 /refstring/intern-thread-safety 1316s # slow test /refstring/intern-thread-safety executed in 0.78 secs 1316s # End of refstring tests 1316s ok - glib/refstring.test 1316s # Running test: glib/refcount.test 1316s TAP version 14 1316s # random seed: R02Sf9e2f4643951be940047abd7a31ea989 1316s 1..4 1316s # Start of refcount tests 1316s ok 1 /refcount/grefcount 1316s ok 2 /refcount/gatomicrefcount 1316s # Start of grefcount tests 1316s ok 3 /refcount/grefcount/saturation 1316s # End of grefcount tests 1316s # Start of gatomicrefcount tests 1316s ok 4 /refcount/gatomicrefcount/saturation 1316s # End of gatomicrefcount tests 1316s # End of refcount tests 1316s ok - glib/refcount.test 1316s # Running test: glib/properties-refcount4.test 1316s TAP version 14 1316s # random seed: R02Sa1e3c8834f9259ad10cb05a56b72a4ab 1316s 1..1 1316s # Start of gobject tests 1316s # Start of refcount tests 1316s ok 1 /gobject/refcount/properties-4 1316s # End of refcount tests 1316s # End of gobject tests 1316s ok - glib/properties-refcount4.test 1316s # Running test: glib/properties-introspection.test 1316s TAP version 14 1316s # random seed: R02Sf5d39a871bd9974e85f6ed35bac8d04c 1316s 1..2 1316s # Start of properties tests 1316s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 1316s ok 1 /properties/introspection 1316s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 1316s ok 2 /properties/collision 1316s # End of properties tests 1316s ok - glib/properties-introspection.test 1316s # Running test: glib/cxx-11.test 1316s TAP version 14 1316s # random seed: R02S3cbe049d88259348f093484c2f56401c 1316s 1..2 1316s # Start of gtask tests 1316s # 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. 1316s ok 1 /gtask/name 1316s # Start of name tests 1316s # 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. 1316s ok 2 /gtask/name/macro-wrapper 1316s # End of name tests 1316s # End of gtask tests 1316s ok - glib/cxx-11.test 1316s # Running test: glib/unix-mounts.test 1316s TAP version 14 1316s # random seed: R02Sf3b5c29ef921e3db846cc11bf2961401 1316s 1..4 1316s # Start of unix-mounts tests 1316s ok 1 /unix-mounts/is-system-fs-type 1316s ok 2 /unix-mounts/is-system-device-path 1316s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 1316s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1316s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1316s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1316s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1316s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1316s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1316s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1316s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1316s ok 3 /unix-mounts/get-mount-points 1316s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 1316s ok 4 /unix-mounts/get-mount-entries 1316s # End of unix-mounts tests 1316s TAP version 14 1316s # random seed: R02Sed840001c5d451dc807c1d7cf5d4dc85 1316s 1..6 1316s # Start of g-file-info tests 1316s ok 1 /g-file-info/test_g_file_info 1316s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 1316s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1316s ok 2 /g-file-info/xattrs 1316s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 1316s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 1316s ok 3 /g-file-info/set-modified-date-time-precision 1316s # Start of test_g_file_info tests 1316s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 1316s ok 4 /g-file-info/test_g_file_info/modification-time 1316s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 1316s ok 5 /g-file-info/test_g_file_info/access-time 1316s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 1316s ok 6 /g-file-info/test_g_file_info/creation-time 1316s # End of test_g_file_info tests 1316s # End of g-file-info tests 1316s TAP version 14 1316s # random seed: R02S6a9dba2ce18087efa237edde3e76cfca 1316s 1..2 1316s # Start of object-info tests 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_XT1GK3/object-info/find-method-using-interfaces/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_XT1GK3/object-info/find-method-using-interfaces/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_XT1GK3/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_XT1GK3/object-info/find-method-using-interfaces/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_XT1GK3/object-info/find-method-using-interfaces/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_XT1GK3/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_XT1GK3/object-info/find-method-using-interfaces/.dirs/system-data2 1316s ok - glib/unix-mounts.test 1316s # Running test: glib/g-file-info.test 1316s ok - glib/g-file-info.test 1316s # Running test: glib/object-info.test 1316s ok - glib/object-info.test 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_XT1GK3/object-info/find-method-using-interfaces/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_XT1GK3/object-info/find-method-using-interfaces/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_XT1GK3/object-info/find-method-using-interfaces/.dirs/runtime 1316s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1316s ok 1 /object-info/find-method-using-interfaces 1316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_XT1GK3/object-info/find-vfunc-using-interfaces/.dirs/home 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_XT1GK3/object-info/find-vfunc-using-interfaces/.dirs/cache 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_XT1GK3/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_XT1GK3/object-info/find-vfunc-using-interfaces/.dirs/system-config2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_XT1GK3/object-info/find-vfunc-using-interfaces/.dirs/config 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_XT1GK3/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_XT1GK3/object-info/find-vfunc-using-interfaces/.dirs/system-data2 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_XT1GK3/object-info/find-vfunc-using-interfaces/.dirs/data 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_XT1GK3/object-info/find-vfunc-using-interfaces/.dirs/state 1316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_XT1GK3/object-info/find-vfunc-using-interfaces/.dirs/runtime 1316s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1316s ok 2 /object-info/find-vfunc-using-interfaces 1316s # End of object-info tests 1316s # Running test: glib/socket-address.test 1316s TAP version 14 1316s # random seed: R02S3dc11e3b7f0d67126dba81ca55319bba 1316s 1..2 1316s # Start of socket tests 1316s # Start of address tests 1316s # Start of unix tests 1316s ok 1 /socket/address/unix/construct 1316s ok 2 /socket/address/unix/to-string 1316s # End of unix tests 1316s # End of address tests 1316s # End of socket tests 1316s ok - glib/socket-address.test 1316s # Running test: glib/gdatetime.test 1316s TAP version 14 1316s # random seed: R02Scf35c03b6ef3b0dcfcdb25d69b86554b 1316s 1..68 1316s # Start of GDateTime tests 1316s # Bug Reference: http://bugzilla.gnome.org/702674 1316s ok 1 /GDateTime/invalid 1316s ok 2 /GDateTime/add_days 1316s ok 3 /GDateTime/add_full 1316s ok 4 /GDateTime/add_hours 1316s ok 5 /GDateTime/add_minutes 1316s ok 6 /GDateTime/add_months 1317s ok 7 /GDateTime/add_seconds 1317s ok 8 /GDateTime/add_weeks 1317s ok 9 /GDateTime/add_years 1317s ok 10 /GDateTime/compare 1317s ok 11 /GDateTime/diff 1317s ok 12 /GDateTime/equal 1317s ok 13 /GDateTime/get_day_of_week 1317s ok 14 /GDateTime/get_day_of_month 1317s ok 15 /GDateTime/get_day_of_year 1317s ok 16 /GDateTime/get_hour 1317s ok 17 /GDateTime/get_microsecond 1317s ok 18 /GDateTime/get_minute 1317s ok 19 /GDateTime/get_month 1317s ok 20 /GDateTime/get_second 1317s ok 21 /GDateTime/get_utc_offset 1317s ok 22 /GDateTime/get_year 1317s ok 23 /GDateTime/hash 1317s ok 24 /GDateTime/new_from_unix 1317s ok 25 /GDateTime/new_from_unix_utc 1317s ok 26 /GDateTime/new_from_timeval 1317s ok 27 /GDateTime/new_from_timeval_utc 1317s ok 28 /GDateTime/new_from_iso8601 1317s ok 29 /GDateTime/new_full 1317s ok 30 /GDateTime/now 1317s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 1317s ok 31 /GDateTime/test-6-days-until-end-of-the-month 1317s # %a -> expected: Sat 1317s # %a -> actual: Sat 1317s # %A -> expected: Saturday 1317s # %A -> actual: Saturday 1317s # %b -> expected: Oct 1317s # %b -> actual: Oct 1317s # %B -> expected: October 1317s # %B -> actual: October 1317s # %d -> expected: 24 1317s # %d -> actual: 24 1317s # %d -> expected: 01 1317s # %d -> actual: 01 1317s # %e -> expected: 24 1317s # %e -> actual: 24 1317s # %e -> expected:  1 1317s # %e -> actual:  1 1317s # %f -> expected: 001000 1317s # %f -> actual: 001000 1317s # %h -> expected: Oct 1317s # %h -> actual: Oct 1317s # %H -> expected: 00 1317s # %H -> actual: 00 1317s # %H -> expected: 15 1317s # %H -> actual: 15 1317s # %I -> expected: 12 1317s # %I -> actual: 12 1317s # %I -> expected: 12 1317s # %I -> actual: 12 1317s # %I -> expected: 03 1317s # %I -> actual: 03 1317s # %j -> expected: 297 1317s # %j -> actual: 297 1317s # %k -> expected:  0 1317s # %k -> actual:  0 1317s # %k -> expected: 13 1317s # %k -> actual: 13 1317s # %l -> expected: 12 1317s # %l -> actual: 12 1317s # %I -> expected: 12 1317s # %I -> actual: 12 1317s # %l -> expected:  1 1317s # %l -> actual:  1 1317s # %l -> expected: 10 1317s # %l -> actual: 10 1317s # %m -> expected: 10 1317s # %m -> actual: 10 1317s # %M -> expected: 00 1317s # %M -> actual: 00 1317s # %p -> expected: AM 1317s # %p -> actual: AM 1317s # %p -> expected: PM 1317s # %p -> actual: PM 1317s # %P -> expected: am 1317s # %P -> actual: am 1317s # %P -> expected: pm 1317s # %P -> actual: pm 1317s # %r -> expected: 12:00:00 AM 1317s # %r -> actual: 12:00:00 AM 1317s # %r -> expected: 01:13:13 PM 1317s # %r -> actual: 01:13:13 PM 1317s # %R -> expected: 00:00 1317s # %R -> actual: 00:00 1317s # %R -> expected: 13:13 1317s # %R -> actual: 13:13 1317s # %S -> expected: 00 1317s # %S -> actual: 00 1317s # %t -> expected: 1317s # %t -> actual: 1317s # %u -> expected: 6 1317s # %u -> actual: 6 1317s # %x -> expected: 10/24/09 1317s # %x -> actual: 10/24/09 1317s # %X -> expected: 00:00:00 1317s # %X -> actual: 00:00:00 1317s # %X -> expected: 13:14:15 1317s # %X -> actual: 13:14:15 1317s # %y -> expected: 09 1317s # %y -> actual: 09 1317s # %Y -> expected: 2009 1317s # %Y -> actual: 2009 1317s # %% -> expected: % 1317s # %% -> actual: % 1317s # % -> expected: 1317s # % -> actual: 1317s # %9 -> expected: (null) 1317s # %9 -> actual: (null) 1317s # %Z -> expected: UTC 1317s # %Z -> actual: UTC 1317s # %#Z %Z -> expected: utc UTC 1317s # %#Z %Z -> actual: utc UTC 1317s ok 32 /GDateTime/printf 1317s # %a -> expected: 土 1317s # %a -> actual: 土 1317s # %A -> expected: 土曜日 1317s # %A -> actual: 土曜日 1317s # %b -> expected: 10月 1317s # %b -> actual: 10月 1317s # %B -> expected: 10月 1317s # %B -> actual: 10月 1317s # %c -> expected: 2009年10月24日 00時00分00秒 1317s # %c -> actual: 2009年10月24日 00時00分00秒 1317s # %C -> expected: 20 1317s # %C -> actual: 20 1317s # %d -> expected: 24 1317s # %d -> actual: 24 1317s # %d -> expected: 01 1317s # %d -> actual: 01 1317s # %e -> expected: 24 1317s # %e -> actual: 24 1317s # %h -> expected: 10月 1317s # %h -> actual: 10月 1317s # %H -> expected: 00 1317s # %H -> actual: 00 1317s # %H -> expected: 15 1317s # %H -> actual: 15 1317s # %I -> expected: 12 1317s # %I -> actual: 12 1317s # %I -> expected: 12 1317s # %I -> actual: 12 1317s # %I -> expected: 03 1317s # %I -> actual: 03 1317s # %j -> expected: 297 1317s # %j -> actual: 297 1317s # %k -> expected:  0 1317s # %k -> actual:  0 1317s # %k -> expected: 13 1317s # %k -> actual: 13 1317s # %l -> expected: 12 1317s # %l -> actual: 12 1317s # %I -> expected: 12 1317s # %I -> actual: 12 1317s # %l -> expected:  1 1317s # %l -> actual:  1 1317s # %l -> expected: 10 1317s # %l -> actual: 10 1317s # %m -> expected: 10 1317s # %m -> actual: 10 1317s # %M -> expected: 00 1317s # %M -> actual: 00 1317s # %p -> expected: 午前 1317s # %p -> actual: 午前 1317s # %p -> expected: 午後 1317s # %p -> actual: 午後 1317s # %P -> expected: 午前 1317s # %P -> actual: 午前 1317s # %P -> expected: 午後 1317s # %P -> actual: 午後 1317s # %r -> expected: 午前12時00分00秒 1317s # %r -> actual: 午前12時00分00秒 1317s # %r -> expected: 午後01時13分13秒 1317s # %r -> actual: 午後01時13分13秒 1317s # %R -> expected: 00:00 1317s # %R -> actual: 00:00 1317s # %R -> expected: 13:13 1317s # %R -> actual: 13:13 1317s # %S -> expected: 00 1317s # %S -> actual: 00 1317s # %t -> expected: 1317s # %t -> actual: 1317s # %u -> expected: 6 1317s # %u -> actual: 6 1317s # %x -> expected: 2009年10月24日 1317s # %x -> actual: 2009年10月24日 1317s # %X -> expected: 00時00分00秒 1317s # %X -> actual: 00時00分00秒 1317s # %X -> expected: 13時14分15秒 1317s # %X -> actual: 13時14分15秒 1317s # %y -> expected: 09 1317s # %y -> actual: 09 1317s # %Y -> expected: 2009 1317s # %Y -> actual: 2009 1317s # %% -> expected: % 1317s # %% -> actual: % 1317s # % -> expected: 1317s # % -> actual: 1317s # %9 -> expected: (null) 1317s # %9 -> actual: (null) 1317s # %Ec -> expected: 平成21年10月24日 00時00分00秒 1317s # %Ec -> actual: 平成21年10月24日 00時00分00秒 1317s # %EC -> expected: 平成 1317s # %EC -> actual: 平成 1317s # %Ex -> expected: 平成21年10月24日 1317s # %Ex -> actual: 平成21年10月24日 1317s # %EX -> expected: 00時00分00秒 1317s # %EX -> actual: 00時00分00秒 1317s # %Ey -> expected: 21 1317s # %Ey -> actual: 21 1317s # %EY -> expected: 平成21年 1317s # %EY -> actual: 平成21年 1317s ok 33 /GDateTime/non_utf8_printf 1317s # ąśćł -> expected: ąśćł 1317s # ąśćł -> actual: ąśćł 1317s # %H∶%M -> expected: 23∶15 1317s # %H∶%M -> actual: 23∶15 1317s # %H∶%M -> expected: 23∶15 1317s # %H∶%M -> actual: 23∶15 1317s ok 34 /GDateTime/format_unrepresentable 1317s ok 35 /GDateTime/format_iso8601 1317s ok 36 /GDateTime/strftime 1317s # %d -> expected: 01 1317s # %d -> actual: 01 1317s # %_d -> expected: 1 1317s # %_d -> actual: 1 1317s # %-d -> expected: 1 1317s # %-d -> actual: 1 1317s # %0d -> expected: 01 1317s # %0d -> actual: 01 1317s # %d -> expected: 21 1317s # %d -> actual: 21 1317s # %_d -> expected: 21 1317s # %_d -> actual: 21 1317s # %-d -> expected: 21 1317s # %-d -> actual: 21 1317s # %0d -> expected: 21 1317s # %0d -> actual: 21 1317s # %e -> expected:  1 1317s # %e -> actual:  1 1317s # %_e -> expected: 1 1317s # %_e -> actual: 1 1317s # %-e -> expected: 1 1317s # %-e -> actual: 1 1317s # %0e -> expected: 01 1317s # %0e -> actual: 01 1317s # %e -> expected: 21 1317s # %e -> actual: 21 1317s # %_e -> expected: 21 1317s # %_e -> actual: 21 1317s # %-e -> expected: 21 1317s # %-e -> actual: 21 1317s # %0e -> expected: 21 1317s # %0e -> actual: 21 1317s # %a -> expected: Thu 1317s # %a -> actual: Thu 1317s # %^a -> expected: THU 1317s # %^a -> actual: THU 1317s # %#a -> expected: THU 1317s # %#a -> actual: THU 1317s # %A -> expected: Thursday 1317s # %A -> actual: Thursday 1317s # %^A -> expected: THURSDAY 1317s # %^A -> actual: THURSDAY 1317s # %#A -> expected: THURSDAY 1317s # %#A -> actual: THURSDAY 1317s # %b -> expected: Jan 1317s # %b -> actual: Jan 1317s # %^b -> expected: JAN 1317s # %^b -> actual: JAN 1317s # %#b -> expected: JAN 1317s # %#b -> actual: JAN 1317s # %B -> expected: January 1317s # %B -> actual: January 1317s # %^B -> expected: JANUARY 1317s # %^B -> actual: JANUARY 1317s # %#B -> expected: JANUARY 1317s # %#B -> actual: JANUARY 1317s # %h -> expected: Jan 1317s # %h -> actual: Jan 1317s # %^h -> expected: JAN 1317s # %^h -> actual: JAN 1317s # %#h -> expected: JAN 1317s # %#h -> actual: JAN 1317s # %Z -> expected: UTC 1317s # %Z -> actual: UTC 1317s # %^Z -> expected: UTC 1317s # %^Z -> actual: UTC 1317s # %#Z -> expected: utc 1317s # %#Z -> actual: utc 1317s # %H -> expected: 01 1317s # %H -> actual: 01 1317s # %_H -> expected: 1 1317s # %_H -> actual: 1 1317s # %-H -> expected: 1 1317s # %-H -> actual: 1 1317s # %0H -> expected: 01 1317s # %0H -> actual: 01 1317s # %H -> expected: 21 1317s # %H -> actual: 21 1317s # %_H -> expected: 21 1317s # %_H -> actual: 21 1317s # %-H -> expected: 21 1317s # %-H -> actual: 21 1317s # %0H -> expected: 21 1317s # %0H -> actual: 21 1317s # %I -> expected: 01 1317s # %I -> actual: 01 1317s # %_I -> expected: 1 1317s # %_I -> actual: 1 1317s # %-I -> expected: 1 1317s # %-I -> actual: 1 1317s # %0I -> expected: 01 1317s # %0I -> actual: 01 1317s # %I -> expected: 11 1317s # %I -> actual: 11 1317s # %_I -> expected: 11 1317s # %_I -> actual: 11 1317s # %-I -> expected: 11 1317s # %-I -> actual: 11 1317s # %0I -> expected: 11 1317s # %0I -> actual: 11 1317s # %k -> expected:  1 1317s # %k -> actual:  1 1317s # %_k -> expected: 1 1317s # %_k -> actual: 1 1317s # %-k -> expected: 1 1317s # %-k -> actual: 1 1317s # %0k -> expected: 01 1317s # %0k -> actual: 01 1317s # %l -> expected:  1 1317s # %l -> actual:  1 1317s # %_l -> expected: 1 1317s # %_l -> actual: 1 1317s # %-l -> expected: 1 1317s # %-l -> actual: 1 1317s # %0l -> expected: 01 1317s # %0l -> actual: 01 1317s # %l -> expected: 11 1317s # %l -> actual: 11 1317s # %_l -> expected: 11 1317s # %_l -> actual: 11 1317s # %-l -> expected: 11 1317s # %-l -> actual: 11 1317s # %0l -> expected: 11 1317s # %0l -> actual: 11 1317s # %p -> expected: AM 1317s # %p -> actual: AM 1317s # %^p -> expected: AM 1317s # %^p -> actual: AM 1317s # %#p -> expected: am 1317s # %#p -> actual: am 1317s # %P -> expected: am 1317s # %P -> actual: am 1317s # %^P -> expected: AM 1317s # %^P -> actual: AM 1317s # %#P -> expected: am 1317s # %#P -> actual: am 1317s # %OH -> expected: ۲۳ 1317s # %OH -> actual: ۲۳ 1317s # %OI -> expected: ۱۱ 1317s # %OI -> actual: ۱۱ 1317s # %OM -> expected: ۰۰ 1317s # %OM -> actual: ۰۰ 1317s # %Om -> expected: ۰۷ 1317s # %Om -> actual: ۰۷ 1317s # %0Om -> expected: ۰۷ 1317s # %0Om -> actual: ۰۷ 1317s # %-Om -> expected: ۷ 1317s # %-Om -> actual: ۷ 1317s # %_Om -> expected: ۷ 1317s # %_Om -> actual: ۷ 1317s # %c -> expected: thu 01 jan 2009 00:00:00 utc 1317s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 1317s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 1317s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 1317s # %C -> expected: 20 1317s # %C -> actual: 20 1317s # %EC -> expected: 20 1317s # %EC -> actual: 20 1317s # %x -> expected: 02/01/09 1317s # %x -> actual: 02/01/09 1317s # %Ex -> expected: 02/01/09 1317s # %Ex -> actual: 02/01/09 1317s # %X -> expected: 01:02:03 1317s # %X -> actual: 01:02:03 1317s # %EX -> expected: 01:02:03 1317s # %EX -> actual: 01:02:03 1317s # %y -> expected: 09 1317s # %y -> actual: 09 1317s # %Ey -> expected: 09 1317s # %Ey -> actual: 09 1317s # %Y -> expected: 2009 1317s # %Y -> actual: 2009 1317s # %EY -> expected: 2009 1317s # %EY -> actual: 2009 1317s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 1317s # Bug Reference: http://bugzilla.gnome.org/749206 1317s # %B -> expected: January 1317s # %B -> actual: January 1317s # %OB -> expected: February 1317s # %OB -> actual: February 1317s # %b -> expected: Mar 1317s # %b -> actual: Mar 1317s # %Ob -> expected: Apr 1317s # %Ob -> actual: Apr 1317s # %h -> expected: May 1317s # %h -> actual: May 1317s # %Oh -> expected: Jun 1317s # %Oh -> actual: Jun 1317s # %B -> expected: Juli 1317s # %B -> actual: Juli 1317s # %OB -> expected: August 1317s # %OB -> actual: August 1317s # %b -> expected: Sep 1317s # %b -> actual: Sep 1317s # %Ob -> expected: Okt 1317s # %Ob -> actual: Okt 1317s # %h -> expected: Nov 1317s # %h -> actual: Nov 1317s # %Oh -> expected: Dez 1317s # %Oh -> actual: Dez 1317s # %B -> expected: enero 1317s # %B -> actual: enero 1317s # %OB -> expected: febrero 1317s # %OB -> actual: febrero 1317s # %b -> expected: mar 1317s # %b -> actual: mar 1317s # %Ob -> expected: abr 1317s # %Ob -> actual: abr 1317s # %h -> expected: may 1317s # %h -> actual: may 1317s # %Oh -> expected: jun 1317s # %Oh -> actual: jun 1317s # %B -> expected: juillet 1317s # %B -> actual: juillet 1317s # %OB -> expected: août 1317s # %OB -> actual: août 1317s # %b -> expected: sept. 1317s # %b -> actual: sept. 1317s # %Ob -> expected: oct. 1317s # %Ob -> actual: oct. 1317s # %h -> expected: nov. 1317s # %h -> actual: nov. 1317s # %Oh -> expected: déc. 1317s # %Oh -> actual: déc. 1317s # %B -> expected: Ιανουαρίου 1317s # %B -> actual: Ιανουαρίου 1317s # %B -> expected: Φεβρουαρίου 1317s # %B -> actual: Φεβρουαρίου 1317s # %B -> expected: Μαρτίου 1317s # %B -> actual: Μαρτίου 1317s # %OB -> expected: Απρίλιος 1317s # %OB -> actual: Απρίλιος 1317s # %OB -> expected: Μάιος 1317s # %OB -> actual: Μάιος 1317s # %OB -> expected: Ιούνιος 1317s # %OB -> actual: Ιούνιος 1317s # %b -> expected: Ιουλ 1317s # %b -> actual: Ιουλ 1317s # %Ob -> expected: Αύγ 1317s # %Ob -> actual: Αύγ 1317s # %B -> expected: svibnja 1317s # %B -> actual: svibnja 1317s # %B -> expected: lipnja 1317s # %B -> actual: lipnja 1317s # %B -> expected: srpnja 1317s # %B -> actual: srpnja 1317s # %OB -> expected: Kolovoz 1317s # %OB -> actual: kolovoz 1317s # %OB -> expected: Rujan 1317s # %OB -> actual: rujan 1317s # %OB -> expected: Listopad 1317s # %OB -> actual: listopad 1317s # %b -> expected: Stu 1317s # %b -> actual: stu 1317s # %Ob -> expected: Pro 1317s # %Ob -> actual: pro 1317s # %B -> expected: sausio 1317s # %B -> actual: sausio 1317s # %B -> expected: vasario 1317s # %B -> actual: vasario 1317s # %B -> expected: kovo 1317s # %B -> actual: kovo 1317s # %OB -> expected: balandis 1317s # %OB -> actual: balandis 1317s # %OB -> expected: gegužė 1317s # %OB -> actual: gegužė 1317s # %OB -> expected: birželis 1317s # %OB -> actual: birželis 1317s # %b -> expected: liep. 1317s # %b -> actual: liep. 1317s # %Ob -> expected: rugp. 1317s # %Ob -> actual: rugp. 1317s # %B -> expected: maja 1317s # %B -> actual: maja 1317s # %B -> expected: czerwca 1317s # %B -> actual: czerwca 1317s # %B -> expected: lipca 1317s # %B -> actual: lipca 1317s # %OB -> expected: sierpień 1317s # %OB -> actual: sierpień 1317s # %OB -> expected: wrzesień 1317s # %OB -> actual: wrzesień 1317s # %OB -> expected: październik 1317s # %OB -> actual: październik 1317s # %b -> expected: lis 1317s # %b -> actual: lis 1317s # %Ob -> expected: gru 1317s # %Ob -> actual: gru 1317s # %B -> expected: января 1317s # %B -> actual: января 1317s # %B -> expected: февраля 1317s # %B -> actual: февраля 1317s # %B -> expected: марта 1317s # %B -> actual: марта 1317s # %OB -> expected: Апрель 1317s # %OB -> actual: Апрель 1317s # %OB -> expected: Май 1317s # %OB -> actual: Май 1317s # %OB -> expected: Июнь 1317s # %OB -> actual: Июнь 1317s # %b -> expected: июл 1317s # %b -> actual: июл 1317s # %Ob -> expected: авг 1317s # %Ob -> actual: авг 1317s # %b -> expected: мая 1317s # %b -> actual: мая 1317s # %Ob -> expected: май 1317s # %Ob -> actual: май 1317s ok 38 /GDateTime/month_names 1317s ok 39 /GDateTime/to_local 1317s ok 40 /GDateTime/to_unix 1317s ok 41 /GDateTime/to_timeval 1317s ok 42 /GDateTime/to_utc 1317s ok 43 /GDateTime/now_utc 1317s ok 44 /GDateTime/dst 1317s # Bug Reference: http://bugzilla.gnome.org/642935 1317s ok 45 /GDateTime/test_z 1317s # Executing: glib/gdatetime.test 1318s ok 46 /GDateTime/test-all-dates 1318s # slow test /GDateTime/test-all-dates executed in 1.63 secs 1318s ok 47 /GDateTime/unix_usec 1318s # Start of new_from_unix tests 1318s # Bug Reference: http://bugzilla.gnome.org/782089 1318s ok 48 /GDateTime/new_from_unix/overflow 1318s # End of new_from_unix tests 1318s # Start of new_from_timeval tests 1318s # Bug Reference: http://bugzilla.gnome.org/782089 1318s # Maximum supported GTimeVal.tv_sec = 2147483647 1318s ok 49 /GDateTime/new_from_timeval/overflow 1318s # End of new_from_timeval tests 1318s # Start of new_from_iso8601 tests 1318s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 1318s # Vector 0: 1990-11-01T10:21:17Z 1318s # Vector 1: 19901101T102117Z 1318s # Vector 2: 1970-01-01T00:00:17.12Z 1318s # Vector 3: 1970-01-01T00:00:17.1234Z 1318s # Vector 4: 1970-01-01T00:00:17.123456Z 1318s # Vector 5: 1980-02-22T12:36:00+02:00 1318s # Vector 6: 1990-12-31T15:59:60-08:00 1318s # Vector 7: 1318s # Vector 8: x 1318s # Vector 9: 123x 1318s # Vector 10: 2001-10+x 1318s # Vector 11: 1980-02-22T 1318s # Vector 12: 2001-10-08Tx 1318s # Vector 13: 2001-10-08T10:11x 1318s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 1318s # Vector 15: 1980-02-22T10:36:00Zulu 1318s # Vector 16: 2T0+819855292164632335 1318s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 1318s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 1318s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 1318s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 1318s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 1318s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 1318s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 1318s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 1318s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 1318s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 1318s # Vector 27: 20180803T140805.446178377+0100 1318s # Vector 28: 21474836480803T140805.446178377+0100 1318s # Vector 29: 20181303T140805.446178377+0100 1318s # Vector 30: 20180003T140805.446178377+0100 1318s # Vector 31: 20180800T140805.446178377+0100 1318s # Vector 32: 20180832T140805.446178377+0100 1318s # Vector 33: 20180803T240805.446178377+0100 1318s # Vector 34: 20180803T146005.446178377+0100 1318s # Vector 35: 20180803T140863.446178377+0100 1318s # Vector 36: 20180803T140805.446178377+10000 1318s # Vector 37: -0005-01-01T00:00:00Z 1318s # Vector 38: 2018-08-06 1318s # Vector 39: 20180803T140805,446178377+0100 1318s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 1318s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 1318s # Vector 42: 1990-11-01T10:21:17 1318s # Vector 43: 1719W462 407777-07 1318s # Vector 44: 4011090 260528Z 1318s # Vector 45: 0000W011 228214-22 1318s ok 50 /GDateTime/new_from_iso8601/2 1318s # End of new_from_iso8601 tests 1318s # Start of format_mixed tests 1318s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1318s # %b -> expected: mar 1318s # %b -> actual: Mar 1318s # %B -> expected: march 1318s # %B -> actual: March 1318s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 1318s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1318s # %b -> expected: mar 1318s # %b -> actual: Mar 1318s # %B -> expected: march 1318s # %B -> actual: March 1318s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 1318s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1318s # %b -> expected: Mär 1318s # %b -> actual: Mär 1318s # %B -> expected: März 1318s # %B -> actual: März 1318s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 1318s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1318s # %b -> expected: Mär 1318s # %b -> actual: Mär 1318s # %B -> expected: März 1318s # %B -> actual: März 1318s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 1318s # End of format_mixed tests 1318s # Start of strftime tests 1318s # %r -> expected: (null) 1318s # %r -> actual: (null) 1318s ok 55 /GDateTime/strftime/error_handling 1318s # End of strftime tests 1318s # Start of eras tests 1318s # %Ec -> expected: 令和05年06月01日 00時00分00秒 1318s # %Ec -> actual: 令和05年06月01日 00時00分00秒 1318s # %EC -> expected: 令和 1318s # %EC -> actual: 令和 1318s # %Ex -> expected: 令和05年06月01日 1318s # %Ex -> actual: 令和05年06月01日 1318s # %EX -> expected: 00時00分00秒 1318s # %EX -> actual: 00時00分00秒 1318s # %Ey -> expected: 05 1318s # %Ey -> actual: 05 1318s # %EY -> expected: 令和05年 1318s # %EY -> actual: 令和05年 1318s # %Ec -> expected: 平成31年04月30日 00時00分00秒 1318s # %Ec -> actual: 平成31年04月30日 00時00分00秒 1318s # %EC -> expected: 平成 1318s # %EC -> actual: 平成 1318s # %Ex -> expected: 平成31年04月30日 1318s # %Ex -> actual: 平成31年04月30日 1318s # %EX -> expected: 00時00分00秒 1318s # %EX -> actual: 00時00分00秒 1318s # %Ey -> expected: 31 1318s # %Ey -> actual: 31 1318s # %EY -> expected: 平成31年 1318s # %EY -> actual: 平成31年 1318s # %Ec -> expected: 昭和元年12月25日 00時00分00秒 1318s # %Ec -> actual: 昭和元年12月25日 00時00分00秒 1318s # %EC -> expected: 昭和 1318s # %EC -> actual: 昭和 1318s # %Ex -> expected: 昭和元年12月25日 1318s # %Ex -> actual: 昭和元年12月25日 1318s # %EX -> expected: 00時00分00秒 1318s # %EX -> actual: 00時00分00秒 1318s # %Ey -> expected: 01 1318s # %Ey -> actual: 01 1318s # %EY -> expected: 昭和元年 1318s # %EY -> actual: 昭和元年 1318s ok 56 /GDateTime/eras/japan 1318s ok - glib/gdatetime.test 1318s # Running test: glib/gio-tool.py.test 1318s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 1318s # Vector 0: 1318s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 1318s # 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年 1318s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Ey年 1318s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Ey年 1318s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Ey年 1318s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Ey年 1318s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Ey年 1318s # Vector 8: + 1318s # Vector 9: +: 1318s # Vector 10: +:: 1318s # Vector 11: +:200 1318s # Vector 12: +:2nonsense 1318s # Vector 13: +:2nonsense: 1318s # Vector 14: +:2: 1318s # Vector 15: +:2:: 1318s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Ey年 1318s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Ey年 1318s # Vector 18: +:2:2020:+*:令和:%EC%Ey年 1318s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Ey年 1318s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Ey年 1318s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Ey年 1318s # Vector 22: +:2:2020/01:+*:令和:%EC%Ey年 1318s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Ey年 1318s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Ey年 1318s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Ey年 1318s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Ey年 1318s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Ey年 1318s # Vector 28: +:2:2020/01/01 1318s # Vector 29: +:2:2020/01/01: 1318s # Vector 30: +:2:2020/01/01:: 1318s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Ey年 1318s # Vector 32: +:2:2020/01/01:+* 1318s # Vector 33: +:2:2020/01/01:+*: 1318s # Vector 34: +:2:2020/01/01:+*:: 1318s # Vector 35: +:2:2020/01/01:+*:令和 1318s # Vector 36: +:2:2020/01/01:+*:令和: 1318s # Vector 37: +:2:2020/01/01:+*:令和:; 1318s ok 58 /GDateTime/eras/parsing 1318s # End of eras tests 1318s # End of GDateTime tests 1318s # Start of GTimeZone tests 1318s ok 59 /GTimeZone/find-interval 1318s ok 60 /GTimeZone/adjust-time 1318s ok 61 /GTimeZone/no-header 1318s ok 62 /GTimeZone/no-header-identifier 1318s ok 63 /GTimeZone/posix-parse 1318s # Bug Reference: http://bugzilla.gnome.org/697715 1318s ok 64 /GTimeZone/floating-point 1318s # System time zone identifier: Etc/UTC 1318s ok 65 /GTimeZone/identifier 1318s # Vector 0: -158400 1318s # Vector 1: -10000 1318s # Vector 2: -3600 1318s # Vector 3: -61 1318s # Vector 4: -60 1318s # Vector 5: -59 1318s # Vector 6: 0 1318s # Vector 7: 59 1318s # Vector 8: 60 1318s # Vector 9: 61 1318s # Vector 10: 3600 1318s # Vector 11: 10000 1318s # Vector 12: 158400 1318s ok 66 /GTimeZone/new-offset 1318s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 1318s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 1318s ok 67 /GTimeZone/parse-rfc8536 1318s # /GTimeZone/caching summary: GTimeZone instances are cached 1318s ok 68 /GTimeZone/caching 1318s # End of GTimeZone tests 1318s TAP version 13 1318s ok 1 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_folder 1318s # gio: /usr/bin/gio 1318s # tmpdir: /tmp/tmppgu9000b 1318s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmppgu9000b/folder/desktop.entry'] 1318s # Working Directory: /tmp/tmppgu9000b/folder 1318s # Return code: 0 1318s # Output: 1318s # /tmp/tmppgu9000b/folder/desktop.entry 1318s # Error: 1318s ok 2 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_parent 1318s # gio: /usr/bin/gio 1318s # tmpdir: /tmp/tmp4eqre1zi 1318s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmp4eqre1zi/folder/desktop.entry'] 1318s # Working Directory: /tmp/tmp4eqre1zi 1318s # Return code: 0 1318s # Output: 1318s # /tmp/tmp4eqre1zi/folder/desktop.entry 1318s # Error: 1319s ok 3 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_sibling 1319s # gio: /usr/bin/gio 1319s # tmpdir: /tmp/tmpn7_24cjk 1319s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpn7_24cjk/folder/desktop.entry'] 1319s # Working Directory: /tmp/tmpn7_24cjk/sibling 1319s # Return code: 0 1319s # Output: 1319s # /tmp/tmpn7_24cjk/folder/desktop.entry 1319s # Error: 1319s ok 4 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_folder 1319s # gio: /usr/bin/gio 1319s # tmpdir: /tmp/tmp9c_4852e 1319s # Running: ['/usr/bin/gio', 'launch', 'desktop.entry'] 1319s # Working Directory: /tmp/tmp9c_4852e/folder 1319s # Return code: 0 1319s # Output: 1319s # /tmp/tmp9c_4852e/folder/desktop.entry 1319s # Error: 1319s ok 5 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_parent 1319s # gio: /usr/bin/gio 1319s # tmpdir: /tmp/tmpitkez8kg 1319s # Running: ['/usr/bin/gio', 'launch', 'folder/desktop.entry'] 1319s # Working Directory: /tmp/tmpitkez8kg 1319s # Return code: 0 1319s # Output: 1319s # /tmp/tmpitkez8kg/folder/desktop.entry 1319s # Error: 1319s ok 6 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_sibling 1319s # gio: /usr/bin/gio 1319s # tmpdir: /tmp/tmpm5xhfauo 1319s # Running: ['/usr/bin/gio', 'launch', '../folder/desktop.entry'] 1319s # Working Directory: /tmp/tmpm5xhfauo/sibling 1319s # Return code: 0 1319s # Output: 1319s # /tmp/tmpm5xhfauo/folder/desktop.entry 1319s # Error: 1319s ok 7 __main__.TestGioTool.test_help 1319s # gio: /usr/bin/gio 1319s # tmpdir: /tmp/tmpm_nta3oz 1319s # Running: ['/usr/bin/gio', '--help'] 1319s # Return code: 0 1319s # Output: 1319s # Usage: 1319s # gio COMMAND [ARGS…] 1319s # 1319s # Commands: 1319s # help Print help 1319s # version Print version 1319s # cat Concatenate files to standard output 1319s # copy Copy one or more files 1319s # info Show information about locations 1319s # launch Launch an application from a desktop file 1319s # list List the contents of locations 1319s # mime Get or set the handler for a mimetype 1319s # mkdir Create directories 1319s # monitor Monitor files and directories for changes 1319s # mount Mount or unmount the locations 1319s # move Move one or more files 1319s # open Open files with the default application 1319s # rename Rename a file 1319s # remove Delete one or more files 1319s # save Read from standard input and save 1319s # set Set a file attribute 1319s # trash Move files or directories to the trash 1319s # tree Lists the contents of locations in a tree 1319s # 1319s # Use “gio help COMMAND” to get detailed help. 1319s # Error: 1319s # 1319s # Running: ['/usr/bin/gio', 'help'] 1319s # Return code: 0 1319s # Output: 1319s # Usage: 1319s # gio COMMAND [ARGS…] 1319s # 1319s # Commands: 1319s # help Print help 1319s # version Print version 1319s # cat Concatenate files to standard output 1319s # copy Copy one or more files 1319s # info Show information about locations 1319s # launch Launch an application from a desktop file 1319s # list List the contents of locations 1319s # mime Get or set the handler for a mimetype 1319s # mkdir Create directories 1319s # monitor Monitor files and directories for changes 1319s # mount Mount or unmount the locations 1319s # move Move one or more files 1319s # open Open files with the default application 1319s # rename Rename a file 1319s # remove Delete one or more files 1319s # save Read from standard input and save 1319s # set Set a file attribute 1319s # trash Move files or directories to the trash 1319s # tree Lists the contents of locations in a tree 1319s # 1319s # Use “gio help COMMAND” to get detailed help. 1319s # Error: 1319s ok 8 __main__.TestGioTool.test_info_non_default_attributes 1319s # gio: /usr/bin/gio 1319s # tmpdir: /tmp/tmpd2suwrr2 1319s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmpd2suwrr2/tmpelf6vn85'] 1319s # Return code: 0 1319s # Output: 1319s # uri: file:///tmp/tmpd2suwrr2/tmpelf6vn85 1319s # local path: /tmp/tmpd2suwrr2/tmpelf6vn85 1319s # unix mount: /dev/vda2[/lxd/containers/autopkgtest-lxd-pjaaij/rootfs] / btrfs rw,relatime,discard=async,space_cache=v2,user_subvol_rm_allowed,subvolid=49748,subvol=/lxd/containers/autopkgtest-lxd-pjaaij 1319s # attributes: 1319s # standard::content-type: application/x-zerosize 1319s # Error: 1319s ok 9 __main__.TestGioTool.test_no_args 1319s # gio: /usr/bin/gio 1319s # tmpdir: /tmp/tmpt9coh0mr 1319s # Running: ['/usr/bin/gio'] 1319s # Return code: 1 1319s # Output: 1319s # 1319s # Error: 1319s # Usage: 1319s # gio COMMAND [ARGS…] 1319s # 1319s # Commands: 1319s # help Print help 1319s # version Print version 1319s # cat Concatenate files to standard output 1319s # copy Copy one or more files 1319s # info Show information about locations 1319s # launch Launch an application from a desktop file 1319s # list List the contents of locations 1319s # mime Get or set the handler for a mimetype 1319s # mkdir Create directories 1319s # monitor Monitor files and directories for changes 1319s # mount Mount or unmount the locations 1319s # move Move one or more files 1319s # open Open files with the default application 1319s # rename Rename a file 1319s # remove Delete one or more files 1319s # save Read from standard input and save 1319s # set Set a file attribute 1319s # trash Move files or directories to the trash 1319s # tree Lists the contents of locations in a tree 1319s # 1319s # Use “gio help COMMAND” to get detailed help. 1319s 1..9 1319s ok - glib/gio-tool.py.test 1319s # Running test: glib/overflow.test 1319s TAP version 14 1319s # random seed: R02S0d457e1638298c25f6ab3df67183c704 1319s 1..6 1319s # Start of glib tests 1319s # Start of checked-math tests 1319s ok 1 /glib/checked-math/guint-add 1319s ok 2 /glib/checked-math/guint-mul 1319s ok 3 /glib/checked-math/guint64-add 1319s ok 4 /glib/checked-math/guint64-mul 1319s ok 5 /glib/checked-math/gsize-add 1319s ok 6 /glib/checked-math/gsize-mul 1319s # End of checked-math tests 1319s # End of glib tests 1319s ok - glib/overflow.test 1319s TAP version 14 1319s # random seed: R02Sca1e75aa59ec9fbe9695efb706377507 1319s 1..24 1319s # Start of uri tests 1319s ok 1 /uri/file-to-uri 1319s ok 2 /uri/file-from-uri 1319s ok 3 /uri/file-roundtrip 1319s ok 4 /uri/list 1319s # Test 0: %2Babc %4F 1319s # Test 1: %2Babc %4F 1319s # Test 2: %00abc %4F 1319s # Test 3: /cursors/none.png 1319s # Test 4: /cursors%2fbad-subdir/none.png 1319s # Test 5: %0 1319s # Test 6: %ra 1319s # Test 7: %2r 1319s # Test 8: Timm Bäder 1319s # Test 9: (null) 1319s ok 5 /uri/unescape-string 1319s ok 6 /uri/unescape-segment 1319s # Test 0: abcdefgABCDEFG._~ 1319s # Test 1: :+ \\?# 1319s # Test 2: a+b:c 1319s # Test 3: a+b:c\303\234 1319s # Test 4: \374;\322 1319s # Test 5: \303\261\303( 1319s ok 7 /uri/escape-string 1319s ok 8 /uri/escape-bytes 1319s ok 9 /uri/scheme 1319s ok 10 /uri/build 1319s ok 11 /uri/split 1319s # Running test: glib/uri.test 1319s ok 12 /uri/is_valid 1319s ok 13 /uri/to-string 1319s ok 14 /uri/join 1319s # /uri/join-split-round-trip summary: Test that joining different URI components survives a round trip 1319s # Combination 0 1319s # Combination 1 1319s # Combination 2 1319s # Combination 3 1319s # Combination 4 1319s # Combination 5 1319s # Combination 6 1319s # Combination 7 1319s # Combination 8 1319s # Combination 9 1319s # Combination 10 1319s # Combination 11 1319s # Combination 12 1319s # Combination 13 1319s # Combination 14 1319s # Combination 15 1319s # Combination 16 1319s # Combination 17 1319s # Combination 18 1319s # Combination 19 1319s # Combination 20 1319s # Combination 21 1319s # Combination 22 1319s # Combination 23 1319s # Combination 24 1319s # Combination 25 1319s # Combination 26 1319s # Combination 27 1319s # Combination 28 1319s # Combination 29 1319s # Combination 30 1319s # Combination 31 1319s # Combination 32 1319s # Combination 33 1319s # Combination 34 1319s # Combination 35 1319s # Combination 36 1319s # Combination 37 1319s # Combination 38 1319s # Combination 39 1319s # Combination 40 1319s # Combination 41 1319s # Combination 42 1319s # Combination 43 1319s # Combination 44 1319s # Combination 45 1319s # Combination 46 1319s # Combination 47 1319s # Combination 48 1319s # Combination 49 1319s # Combination 50 1319s # Combination 51 1319s # Combination 52 1319s # Combination 53 1319s # Combination 54 1319s # Combination 55 1319s # Combination 56 1319s # Combination 57 1319s # Combination 58 1319s # Combination 59 1319s # Combination 60 1319s # Combination 61 1319s # Combination 62 1319s # Combination 63 1319s # Combination 64 1319s # Combination 65 1319s # Combination 66 1319s # Combination 67 1319s # Combination 68 1319s # Combination 69 1319s # Combination 70 1319s # Combination 71 1319s # Combination 72 1319s # Combination 73 1319s # Combination 74 1319s # Combination 75 1319s # Combination 76 1319s # Combination 77 1319s # Combination 78 1319s # Combination 79 1319s # Combination 80 1319s # Combination 81 1319s # Combination 82 1319s # Combination 83 1319s # Combination 84 1319s # Combination 85 1319s # Combination 86 1319s # Combination 87 1319s # Combination 88 1319s # Combination 89 1319s # Combination 90 1319s # Combination 91 1319s # Combination 92 1319s # Combination 93 1319s # Combination 94 1319s # Combination 95 1319s # Combination 96 1319s # Combination 97 1319s # Combination 98 1319s # Combination 99 1319s # Combination 100 1319s # Combination 101 1319s # Combination 102 1319s # Combination 103 1319s # Combination 104 1319s # Combination 105 1319s # Combination 106 1319s # Combination 107 1319s # Combination 108 1319s # Combination 109 1319s # Combination 110 1319s # Combination 111 1319s # Combination 112 1319s # Combination 113 1319s # Combination 114 1319s # Combination 115 1319s # Combination 116 1319s # Combination 117 1319s # Combination 118 1319s # Combination 119 1319s # Combination 120 1319s # Combination 121 1319s # Combination 122 1319s # Combination 123 1319s # Combination 124 1319s # Combination 125 1319s # Combination 126 1319s # Combination 127 1319s # Combination 128 1319s # Combination 129 1319s # Combination 130 1319s # Combination 131 1319s # Combination 132 1319s # Combination 133 1319s # Combination 134 1319s # Combination 135 1319s # Combination 136 1319s # Combination 137 1319s # Combination 138 1319s # Combination 139 1319s # Combination 140 1319s # Combination 141 1319s # Combination 142 1319s # Combination 143 1319s # Combination 144 1319s # Combination 145 1319s # Combination 146 1319s # Combination 147 1319s # Combination 148 1319s # Combination 149 1319s # Combination 150 1319s # Combination 151 1319s # Combination 152 1319s # Combination 153 1319s # Combination 154 1319s # Combination 155 1319s # Combination 156 1319s # Combination 157 1319s # Combination 158 1319s # Combination 159 1319s # Combination 160 1319s # Combination 161 1319s # Combination 162 1319s # Combination 163 1319s # Combination 164 1319s # Combination 165 1319s # Combination 166 1319s # Combination 167 1319s # Combination 168 1319s # Combination 169 1319s # Combination 170 1319s # Combination 171 1319s # Combination 172 1319s # Combination 173 1319s # Combination 174 1319s # Combination 175 1319s # Combination 176 1319s # Combination 177 1319s # Combination 178 1319s # Combination 179 1319s # Combination 180 1319s # Combination 181 1319s # Combination 182 1319s # Combination 183 1319s # Combination 184 1319s # Combination 185 1319s # Combination 186 1319s # Combination 187 1319s # Combination 188 1319s # Combination 189 1319s # Combination 190 1319s # Combination 191 1319s # Combination 192 1319s # Combination 193 1319s # Combination 194 1319s # Combination 195 1319s # Combination 196 1319s # Combination 197 1319s # Combination 198 1319s # Combination 199 1319s # Combination 200 1319s # Combination 201 1319s # Combination 202 1319s # Combination 203 1319s # Combination 204 1319s # Combination 205 1319s # Combination 206 1319s # Combination 207 1319s # Combination 208 1319s # Combination 209 1319s # Combination 210 1319s # Combination 211 1319s # Combination 212 1319s # Combination 213 1319s # Combination 214 1319s # Combination 215 1319s # Combination 216 1319s # Combination 217 1319s # Combination 218 1319s # Combination 219 1319s # Combination 220 1319s # Combination 221 1319s # Combination 222 1319s # Combination 223 1319s # Combination 224 1319s # Combination 225 1319s # Combination 226 1319s # Combination 227 1319s ok - glib/uri.test 1319s # Running test: glib/init.test 1319s # Combination 228 1319s # Combination 229 1319s # Combination 230 1319s # Combination 231 1319s # Combination 232 1319s # Combination 233 1319s # Combination 234 1319s # Combination 235 1319s # Combination 236 1319s # Combination 237 1319s # Combination 238 1319s # Combination 239 1319s # Combination 240 1319s # Combination 241 1319s # Combination 242 1319s # Combination 243 1319s # Combination 244 1319s # Combination 245 1319s # Combination 246 1319s # Combination 247 1319s # Combination 248 1319s # Combination 249 1319s # Combination 250 1319s # Combination 251 1319s # Combination 252 1319s # Combination 253 1319s # Combination 254 1319s # Combination 255 1319s ok 15 /uri/join-split-round-trip 1319s ok 16 /uri/normalize 1319s # Start of unescape-bytes tests 1319s # Test 0: %00%00 1319s # Test 1: /cursors/none.png 1319s # Test 2: /cursors%2fbad-subdir/none.png 1319s # Test 3: %% 1319s # Test 4: % 1319s ok 17 /uri/unescape-bytes/nul-terminated 1319s # Test 0: %00%00 1319s # Test 1: /cursors/none.png 1319s # Test 2: /cursors%2fbad-subdir/none.png 1319s # Test 3: %% 1319s # Test 4: % 1319s ok 18 /uri/unescape-bytes/length 1319s # End of unescape-bytes tests 1319s # Start of parsing tests 1319s # Test 0: foo: 1319s # Test 1: file:/dev/null 1319s # Test 2: file:///dev/null 1319s # Test 3: ftp://user@host/path 1319s # Test 4: ftp://user@host:9999/path 1319s # Test 5: ftp://user:password@host/path 1319s # Test 6: ftp://user:password@host:9999/path 1319s # Test 7: ftp://user:password@host 1319s # Test 8: http://us%65r@host 1319s # Test 9: http://us%40r@host 1319s # Test 10: http://us%3ar@host 1319s # Test 11: http://us%2fr@host 1319s # Test 12: http://us%3fr@host 1319s # Test 13: http://host?query 1319s # Test 14: http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fchildparam%3Dchildvalue¶m=value 1319s # 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 1319s # Test 16: http://space/%20 1319s # Test 17: http://delims/%3C%3E%23%25%22 1319s # Test 18: http://unwise-chars/%7B%7D%7C%5C%5E%5B%5D%60 1319s # Test 19: http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 1319s # Test 20: http://[1080:0:0:0:8:800:200C:417A]/index.html 1319s # Test 21: http://[3ffe:2a00:100:7031::1] 1319s # Test 22: http://[1080::8:800:200C:417A]/foo 1319s # Test 23: http://[::192.9.5.5]/ipng 1319s # Test 24: http://[::FFFF:129.144.52.38]:80/index.html 1319s # Test 25: http://[2010:836B:4179::836B:4179] 1319s # Test 26: http://host/path with spaces 1319s # Test 27: http://host/path 1319s # Test 28: http://host/path 1319s # Test 29: http://host 1319s # Test 30: http://host:999 1319s # Test 31: http://host/pa 1319s # th 1319s # Test 32: http: 1319s # //host/path 1319s # Test 33: http:// host/path 1319s # Test 34: http://host/path? 1319s # Test 35: http://host/path# 1319s # Test 36: http://host/path% 1319s ok - glib/init.test 1319s # Running test: glib/gdbus-names.test 1319s # Test 37: http://h%ost/path 1319s # Test 38: http://host/path%% 1319s # Test 39: http://host/path%%% 1319s # Test 40: http://host/path%/x/ 1319s # Test 41: http://host/path%0x/ 1319s # Test 42: http://host/path%ax 1319s # Test 43: http://host/päth/ 1319s # Test 44: HTTP://////////////// 1319s # Test 45: http://@host 1319s # Test 46: http://:@host 1319s # Test 47: scheme://foo%3Abar._webdav._tcp.local 1319s # Test 48: http://example.com/.. 1319s # Test 49: foo0://host/path 1319s # Test 50: f0.o://host/path 1319s # Test 51: http++://host/path 1319s # Test 52: http-ish://host/path 1319s # Test 53: http://[fe80::dead:beef%]/ 1319s # Test 54: http://[fe80::dead:beef%em1]/ 1319s # Test 55: http://[fe80::dead:beef%em1]/ 1319s # Test 56: http://[fe80::dead:beef%25em1]/ 1319s # Test 57: http://[fe80::dead:beef%25em1%20]/ 1319s # Test 58: http://[fe80::dead:beef%25em%31]/ 1319s # Test 59: http://[fe80::dead:beef%10]/ 1319s # Test 60: http://[fe80::dead:beef%10]/ 1319s # Test 61: http://[fe80::dead:beef%25]/ 1319s # Test 62: http://[fe80::dead:beef%25]/ 1319s # Test 63: http://[192.168.0.1%25em1]/ 1319s # Test 64: http://[fe80::dead:beef%2em1]/ 1319s # Test 65: http://[fe80::dead:beef%2em1]/ 1319s # Test 66: http://[fe80::dead:beef%25em1%00]/ 1319s # Test 67: http://[fe80::dead:beef%25em1%00]/ 1319s # Test 68: http://xn--mixed-üp/ 1319s # Test 69: data:./// 1319s # Test 70: data:/.// 1319s ok 19 /uri/parsing/absolute 1319s ok 20 /uri/parsing/relative 1319s # End of parsing tests 1319s # Start of iter-params tests 1319s # URI 0: p1=foo&p2=bar;p3=baz 1319s # URI 1: p1=foo&p2=bar 1319s # URI 2: p1=foo&&P1=bar 1319s # URI 3: %00=foo 1319s # URI 4: p1=%00 1319s # URI 5: p1=foo&p1=bar 1319s # URI 6: p1=foo&P1=bar 1319s # URI 7: =% 1319s # URI 8: = 1319s # URI 9: foo 1319s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1319s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1319s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1319s ok 21 /uri/iter-params/nul-terminated 1319s # URI 0: p1=foo&p2=bar;p3=baz 1319s # URI 1: p1=foo&p2=bar 1319s # URI 2: p1=foo&&P1=bar 1319s # URI 3: %00=foo 1319s # URI 4: p1=%00 1319s # URI 5: p1=foo&p1=bar 1319s # URI 6: p1=foo&P1=bar 1319s # URI 7: =% 1319s # URI 8: = 1319s # URI 9: foo 1319s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1319s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1319s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1319s ok 22 /uri/iter-params/length 1319s # End of iter-params tests 1319s # Start of parse-params tests 1319s # URI 0: p1=foo&p2=bar;p3=baz 1319s # URI 1: p1=foo&p2=bar 1319s # URI 2: p1=foo&&P1=bar 1319s # URI 3: %00=foo 1319s # URI 4: p1=%00 1319s # URI 5: p1=foo&p1=bar 1319s # URI 6: p1=foo&P1=bar 1319s # URI 7: =% 1319s # URI 8: = 1319s # URI 9: foo 1319s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1319s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1319s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1319s ok 23 /uri/parse-params/nul-terminated 1319s # URI 0: p1=foo&p2=bar;p3=baz 1319s # URI 1: p1=foo&p2=bar 1319s # URI 2: p1=foo&&P1=bar 1319s # URI 3: %00=foo 1319s # URI 4: p1=%00 1319s # URI 5: p1=foo&p1=bar 1319s # URI 6: p1=foo&P1=bar 1319s # URI 7: =% 1319s # URI 8: = 1319s # URI 9: foo 1319s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1319s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1319s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1319s ok 24 /uri/parse-params/length 1319s # End of parse-params tests 1319s # End of uri tests 1319s TAP version 14 1319s # random seed: R02S3fc84ef890f2d33adda9ffe1bd2bb959 1319s 1..2 1319s # Start of thread tests 1319s # Start of deprecated tests 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_6N2AK3/thread/deprecated/init/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_6N2AK3/thread/deprecated/init/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_6N2AK3/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_6N2AK3/thread/deprecated/init/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_6N2AK3/thread/deprecated/init/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_6N2AK3/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_6N2AK3/thread/deprecated/init/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_6N2AK3/thread/deprecated/init/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_6N2AK3/thread/deprecated/init/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_6N2AK3/thread/deprecated/init/.dirs/runtime 1319s ok 1 /thread/deprecated/init 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_6N2AK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_6N2AK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_6N2AK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_6N2AK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_6N2AK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_6N2AK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_6N2AK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_6N2AK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_6N2AK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_6N2AK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 1319s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 1319s # End of deprecated tests 1319s # End of thread tests 1319s TAP version 14 1319s # random seed: R02S92e2b28d3d3d59be84b23cc4f19c44be 1319s 1..10 1319s # Start of gdbus tests 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/validate-names/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/validate-names/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_2D9AK3/gdbus/validate-names/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/validate-names/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_2D9AK3/gdbus/validate-names/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/validate-names/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/validate-names/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2D9AK3/gdbus/validate-names/.dirs/runtime 1319s ok 1 /gdbus/validate-names 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-own-name/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-own-name/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-own-name/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-own-name/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-own-name/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-own-name/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-own-name/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-own-name/.dirs/runtime 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s ok 2 /gdbus/bus-own-name 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name/.dirs/runtime 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s ok 3 /gdbus/bus-watch-name 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start/.dirs/runtime 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s ok 4 /gdbus/bus-watch-name-auto-start 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is 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 dbus-daemon[6679]: [session uid=1000 pid=6679 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=6670 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 1319s # Acquired a message bus connection 1319s dbus-daemon[6679]: [session uid=1000 pid=6679 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 1319s # Acquired the name org.gtk.GDBus.FakeService 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures/.dirs/runtime 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s ok 6 /gdbus/bus-watch-name-closures 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures-auto-start/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures-auto-start/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures-auto-start/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures-auto-start/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s ok 7 /gdbus/bus-watch-name-closures-auto-start 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-different-context/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-different-context/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-different-context/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-different-context/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-different-context/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-different-context/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-different-context/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-watch-different-context/.dirs/runtime 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s ok 8 /gdbus/bus-watch-different-context 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-unwatch-early/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-unwatch-early/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-unwatch-early/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-unwatch-early/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_2D9AK3/gdbus/bus-unwatch-early/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-unwatch-early/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-unwatch-early/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2D9AK3/gdbus/bus-unwatch-early/.dirs/runtime 1319s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1319s ok 9 /gdbus/bus-unwatch-early 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/escape-object-path/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/escape-object-path/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_2D9AK3/gdbus/escape-object-path/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/escape-object-path/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2D9AK3/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_2D9AK3/gdbus/escape-object-path/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/escape-object-path/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2D9AK3/gdbus/escape-object-path/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2D9AK3/gdbus/escape-object-path/.dirs/runtime 1319s ok 10 /gdbus/escape-object-path 1319s # End of gdbus tests 1319s ok - glib/gdbus-names.test 1319s # Running test: glib/socket-listener.test 1319s TAP version 14 1319s # random seed: R02S0dae0f829de09b2b737ceb8ba2eecff3 1319s 1..4 1319s # Start of socket-listener tests 1319s ok 1 /socket-listener/event-signal 1319s # Start of accept tests 1319s # /socket-listener/accept/multi-simultaneously summary: Test that accepting multiple pending connections on the same GMainContext iteration works 1319s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3739 1319s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1319s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb3ee678 and GSocketClientAsyncConnectData 0xb3ee630 1319s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1319s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb3f2558 and GSocketClientAsyncConnectData 0xb3f2500 1319s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1319s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb3f2a18 and GSocketClientAsyncConnectData 0xb3f29c0 1319s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1319s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb3f2fd8 and GSocketClientAsyncConnectData 0xb3f2f80 1319s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1319s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xb3f3508 and GSocketClientAsyncConnectData 0xb3f34b0 1319s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1319s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1319s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb3f4fb8 for GSocketClientAsyncConnectData 0xb3ee630 1319s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1319s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1319s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb3f6268 for GSocketClientAsyncConnectData 0xb3f2500 1319s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1319s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1319s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb3f6668 for GSocketClientAsyncConnectData 0xb3f29c0 1319s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1319s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1319s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb3f6c08 for GSocketClientAsyncConnectData 0xb3f2f80 1319s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1319s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1319s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xb3f4928 for GSocketClientAsyncConnectData 0xb3f34b0 1319s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1319s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1319s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1319s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1319s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1319s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1319s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1319s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1319s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1319s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1319s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1319s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1319s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1319s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1319s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1319s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1319s ok 2 /socket-listener/accept/multi-simultaneously 1319s # End of accept tests 1319s # Start of add-any-inet-port tests 1319s # /socket-listener/add-any-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 1319s # Test 0 1319s # Test 1 1319s # Test 2 1319s # Test 3 1319s # Test 4 1319s # Test 5 1319s # Test 6 1319s # Test 7 1319s # Test 8 1319s # Test 9 1319s # Test 10 1319s ok 3 /socket-listener/add-any-inet-port/listen-failures 1319s # End of add-any-inet-port tests 1319s # Start of add-inet-port tests 1319s # /socket-listener/add-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 1319s # Test 0 1319s # Test 1 1319s # Test 2 1319s # Test 3 1319s # Test 4 1319s # Test 5 1319s # Test 6 1319s # Test 7 1319s # Test 8 1319s # Test 9 1319s # Test 10 1319s ok 4 /socket-listener/add-inet-port/listen-failures 1319s # End of add-inet-port tests 1319s # End of socket-listener tests 1319s ok - glib/socket-listener.test 1319s # Running test: glib/filenamecompleter.test 1319s TAP version 14 1319s # random seed: R02Sc8cc26d21094aaf97718c323d07d4ebd 1319s 1..1 1319s # Start of filenamecompleter tests 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_filenamecompleter_4017J3/filenamecompleter/basic/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_filenamecompleter_4017J3/filenamecompleter/basic/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_filenamecompleter_4017J3/filenamecompleter/basic/.dirs/system-config1:/tmp/test_filenamecompleter_4017J3/filenamecompleter/basic/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_filenamecompleter_4017J3/filenamecompleter/basic/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_filenamecompleter_4017J3/filenamecompleter/basic/.dirs/system-data1:/tmp/test_filenamecompleter_4017J3/filenamecompleter/basic/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_filenamecompleter_4017J3/filenamecompleter/basic/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_filenamecompleter_4017J3/filenamecompleter/basic/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_filenamecompleter_4017J3/filenamecompleter/basic/.dirs/runtime 1319s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1319s ok 1 /filenamecompleter/basic 1319s # End of filenamecompleter tests 1319s ok - glib/filenamecompleter.test 1319s # Running test: glib/application-command-line.test 1319s TAP version 14 1319s # random seed: R02Sc978ec9fc5b4f6159148aa2cddebd922 1319s 1..1 1319s # Start of application-command-line tests 1319s ok 1 /application-command-line/basic-properties 1319s # End of application-command-line tests 1319s ok - glib/application-command-line.test 1319s # Running test: glib/sandbox.test 1319s TAP version 14 1319s # random seed: R02S33283dd15dfa5bbfaa1a466535b16511 1319s 1..4 1319s # Start of sandbox tests 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_90N8J3/sandbox/none/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_90N8J3/sandbox/none/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_90N8J3/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_90N8J3/sandbox/none/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_90N8J3/sandbox/none/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_90N8J3/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_90N8J3/sandbox/none/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_90N8J3/sandbox/none/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_90N8J3/sandbox/none/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_90N8J3/sandbox/none/.dirs/runtime 1319s ok 1 /sandbox/none 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_90N8J3/sandbox/snap/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_90N8J3/sandbox/snap/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_90N8J3/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_90N8J3/sandbox/snap/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_90N8J3/sandbox/snap/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_90N8J3/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_90N8J3/sandbox/snap/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_90N8J3/sandbox/snap/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_90N8J3/sandbox/snap/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_90N8J3/sandbox/snap/.dirs/runtime 1319s # Created snap.yaml in /tmp/test_sandbox_90N8J3/snap/current/meta/snap.yaml 1319s ok 2 /sandbox/snap 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_90N8J3/sandbox/classic-snap/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_90N8J3/sandbox/classic-snap/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_90N8J3/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_90N8J3/sandbox/classic-snap/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_90N8J3/sandbox/classic-snap/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_90N8J3/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_90N8J3/sandbox/classic-snap/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_90N8J3/sandbox/classic-snap/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_90N8J3/sandbox/classic-snap/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_90N8J3/sandbox/classic-snap/.dirs/runtime 1319s # Created snap.yaml in /tmp/test_sandbox_90N8J3/snap/current/meta/snap.yaml 1319s ok 3 /sandbox/classic-snap 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_90N8J3/sandbox/flatpak/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_90N8J3/sandbox/flatpak/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_90N8J3/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_90N8J3/sandbox/flatpak/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_90N8J3/sandbox/flatpak/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_90N8J3/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_90N8J3/sandbox/flatpak/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_90N8J3/sandbox/flatpak/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_90N8J3/sandbox/flatpak/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_90N8J3/sandbox/flatpak/.dirs/runtime 1319s # Creating .flatpak-info in /tmp/test_sandbox_90N8J3/sandbox/flatpak/.dirs/runtime/.flatpak-info 1319s ok 4 /sandbox/flatpak 1319s # End of sandbox tests 1319s ok - glib/sandbox.test 1319s # Running test: glib/converter.test 1319s TAP version 14 1319s # random seed: R02Sc45b341b80fbfcde264040a7bdf01379 1319s 1..3 1319s # Start of converter tests 1319s ok 1 /converter/bytes 1319s ok 2 /converter/extra-bytes-at-end 1319s ok 3 /converter/gzip-os-property 1319s # End of converter tests 1319s ok - glib/converter.test 1319s # Running test: glib/properties-refcount2.test 1319s TAP version 14 1319s # random seed: R02S59509ae5ebb1da9726fbdbf4c2a91d9d 1319s 1..1 1319s # Start of gobject tests 1319s # Start of refcount tests 1319s # init 0x5509f40 1319s # 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1319s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s # . 1320s ok - glib/properties-refcount2.test 1320s # . 1320s # dispose 0x5509f40! 1320s # 1320s ok 1 /gobject/refcount/properties-2 1320s # slow test /gobject/refcount/properties-2 executed in 1.46 secs 1320s # End of refcount tests 1320s # End of gobject tests 1320s # Running test: glib/pathbuf.test 1320s ok - glib/pathbuf.test 1320s # Running test: glib/portal-support-env-var.test 1320s TAP version 14 1320s # random seed: R02S20afd3054b61d3dc59eac34fec082a4a 1320s 1..3 1320s # Start of pathbuf tests 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/init/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/init/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_TN6IK3/pathbuf/init/.dirs/system-config1:/tmp/test_pathbuf_TN6IK3/pathbuf/init/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/init/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_TN6IK3/pathbuf/init/.dirs/system-data1:/tmp/test_pathbuf_TN6IK3/pathbuf/init/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/init/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/init/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_TN6IK3/pathbuf/init/.dirs/runtime 1320s # Initializing empty path buf 1320s # Initializing with empty path 1320s # Initializing with full path 1320s # Initializing with no path 1320s # Allocating GPathBuf on the heap 1320s ok 1 /pathbuf/init 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/push-pop/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/push-pop/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_TN6IK3/pathbuf/push-pop/.dirs/system-config1:/tmp/test_pathbuf_TN6IK3/pathbuf/push-pop/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/push-pop/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_TN6IK3/pathbuf/push-pop/.dirs/system-data1:/tmp/test_pathbuf_TN6IK3/pathbuf/push-pop/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/push-pop/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/push-pop/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_TN6IK3/pathbuf/push-pop/.dirs/runtime 1320s # Pushing relative path component 1320s # Pushing absolute path component 1320s # Popping a path component 1320s # Can't pop the last element of a path buffer 1320s ok 2 /pathbuf/push-pop 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/filename-extension/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/filename-extension/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_TN6IK3/pathbuf/filename-extension/.dirs/system-config1:/tmp/test_pathbuf_TN6IK3/pathbuf/filename-extension/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/filename-extension/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_TN6IK3/pathbuf/filename-extension/.dirs/system-data1:/tmp/test_pathbuf_TN6IK3/pathbuf/filename-extension/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/filename-extension/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_TN6IK3/pathbuf/filename-extension/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_TN6IK3/pathbuf/filename-extension/.dirs/runtime 1320s ok 3 /pathbuf/filename-extension 1320s # End of pathbuf tests 1320s ok - glib/portal-support-env-var.test 1320s # Running test: glib/function-info.test 1320s TAP version 14 1320s # random seed: R02Sb49f792de54e5825914b4087da155ac0 1320s 1..1 1320s # Start of portal-support tests 1320s ok 1 /portal-support/env-var 1320s # End of portal-support tests 1320s TAP version 14 1320s # random seed: R02Sb4f2a33a53c7cf55de74458a6537520a 1320s 1..1 1320s # Start of function-info tests 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_COIJK3/function-info/invoker/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_COIJK3/function-info/invoker/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_COIJK3/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_COIJK3/function-info/invoker/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_COIJK3/function-info/invoker/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_COIJK3/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_COIJK3/function-info/invoker/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_COIJK3/function-info/invoker/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_COIJK3/function-info/invoker/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_COIJK3/function-info/invoker/.dirs/runtime 1320s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1320s # /function-info/invoker summary: Test preparing a function invoker 1320s ok 1 /function-info/invoker 1320s # End of function-info tests 1320s ok - glib/function-info.test 1320s # Running test: glib/buffered-input-stream.test 1320s TAP version 14 1320s # random seed: R02S7da88b529cdd3fc10bc42b82ef552c69 1320s 1..10 1320s # Start of buffered-input-stream tests 1320s ok 1 /buffered-input-stream/peek 1320s ok 2 /buffered-input-stream/peek-buffer 1320s ok 3 /buffered-input-stream/set-buffer-size 1320s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 1320s ok 4 /buffered-input-stream/read-byte 1320s ok 5 /buffered-input-stream/read 1320s ok 6 /buffered-input-stream/read-async 1320s ok 7 /buffered-input-stream/skip 1320s ok 8 /buffered-input-stream/skip-async 1320s ok 9 /buffered-input-stream/seek 1320s # End of buffered-input-stream tests 1320s # Start of filter-input-stream tests 1320s ok 10 /filter-input-stream/close 1320s # End of filter-input-stream tests 1320s ok - glib/buffered-input-stream.test 1320s # Running test: glib/gdbus-non-socket.test 1320s TAP version 14 1320s # random seed: R02Sd312a7c940b5cb1ee88e2a258e6b239f 1320s 1..1 1320s # Start of gdbus tests 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_BUWJK3/gdbus/non-socket/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_BUWJK3/gdbus/non-socket/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_BUWJK3/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_BUWJK3/gdbus/non-socket/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_BUWJK3/gdbus/non-socket/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_BUWJK3/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_BUWJK3/gdbus/non-socket/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_BUWJK3/gdbus/non-socket/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_BUWJK3/gdbus/non-socket/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_BUWJK3/gdbus/non-socket/.dirs/runtime 1320s ok 1 /gdbus/non-socket 1320s # End of gdbus tests 1320s TAP version 14 1320s # random seed: R02Sc215260fb83cfc00e3dc64619c46d5fc 1320s 1..47 1320s # Start of maincontext tests 1320s ok 1 /maincontext/basic 1320s ok - glib/gdbus-non-socket.test 1320s # Running test: glib/mainloop.test 1320s # Add same-priority sources: 37 1320s # Find each source: 7 1321s # Remove in random order: 71 1321s ok 2 /maincontext/nsources_same_priority 1321s # Add different-priority sources: 42 1321s # Find each source: 7 1321s # Remove in random order: 76 1321s ok 3 /maincontext/nsources_different_priority 1321s # Add sources from threads: 302 1321s # Remove sources from threads: 164 1321s ok 4 /maincontext/nsources_threadpool 1321s ok 5 /maincontext/source_finalization 1321s # /maincontext/idle-once summary: Test g_idle_add_once() works 1321s ok 6 /maincontext/idle-once 1321s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1321s ok 7 /maincontext/timeout-once 1321s # /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. 1321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 1321s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 1321s # Start of source_finalization_from_source tests 1321s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1321s ok 9 /maincontext/source_finalization_from_source/0 1321s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1321s ok 10 /maincontext/source_finalization_from_source/1 1321s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1321s ok 11 /maincontext/source_finalization_from_source/2 1321s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1321s ok 12 /maincontext/source_finalization_from_source/3 1321s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1321s ok 13 /maincontext/source_finalization_from_source/4 1321s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1321s ok 14 /maincontext/source_finalization_from_source/5 1321s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1321s ok 15 /maincontext/source_finalization_from_source/6 1321s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1321s ok 16 /maincontext/source_finalization_from_source/7 1321s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1321s ok 17 /maincontext/source_finalization_from_source/8 1321s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1321s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1321s ok 18 /maincontext/source_finalization_from_source/9 1321s # End of source_finalization_from_source tests 1321s # Start of source_finalization_from_dispatch tests 1321s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1321s ok 19 /maincontext/source_finalization_from_dispatch/0 1321s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1321s ok 20 /maincontext/source_finalization_from_dispatch/1 1321s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1321s ok 21 /maincontext/source_finalization_from_dispatch/2 1321s # End of source_finalization_from_dispatch tests 1321s # End of maincontext tests 1321s # Start of mainloop tests 1321s ok 22 /mainloop/basic 1321s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 1321s ok 24 /mainloop/priorities 1322s ok 25 /mainloop/invoke 1322s # slow test /mainloop/invoke executed in 0.50 secs 1322s ok 26 /mainloop/child_sources # SKIP Not reliable on older ARM hardware 1322s ok 27 /mainloop/recursive_child_sources # SKIP Not reliable on older ARM hardware 1322s ok 28 /mainloop/recursive_loop_child_sources 1322s ok 29 /mainloop/swapping_child_sources 1322s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1322s ok 30 /mainloop/blocked_child_sources 1322s # Executing: glib/mainloop.test 1323s ok 31 /mainloop/source_time 1323s # slow test /mainloop/source_time executed in 1.00 secs 1323s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1323s ok 32 /mainloop/overflow 1323s ok 33 /mainloop/ready-time 1323s # slow test /mainloop/ready-time executed in 0.50 secs 1323s ok 34 /mainloop/wakeup 1323s ok 35 /mainloop/remove-invalid 1323s ok 36 /mainloop/unref-while-pending 1324s ok 37 /mainloop/unix-fd 1324s # slow test /mainloop/unix-fd executed in 0.90 secs 1324s ok 38 /mainloop/unix-fd-source 1324s ok 39 /mainloop/source-unix-fd-api 1324s ok 40 /mainloop/wait 1324s ok 41 /mainloop/unix-file-poll 1324s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1324s ok 42 /mainloop/unix-fd-priority 1324s ok 43 /mainloop/nfds 1324s ok 44 /mainloop/steal-fd 1326s ok 45 /mainloop/simultaneous-source-context-destruction 1326s # slow test /mainloop/simultaneous-source-context-destruction executed in 1.86 secs 1326s # Start of ownerless-polling tests 1326s ok 46 /mainloop/ownerless-polling/attach-first 1326s ok 47 /mainloop/ownerless-polling/pop-first 1326s # End of ownerless-polling tests 1326s # End of mainloop tests 1326s ok - glib/mainloop.test 1326s # Running test: glib/buffered-output-stream.test 1326s TAP version 14 1326s # random seed: R02S7b22c7df33bd55251c22267d7fe49c12 1326s 1..5 1326s # Start of buffered-output-stream tests 1326s ok 1 /buffered-output-stream/write 1326s ok 2 /buffered-output-stream/grow 1326s ok 3 /buffered-output-stream/seek 1326s ok 4 /buffered-output-stream/truncate 1326s # End of buffered-output-stream tests 1326s # Start of filter-output-stream tests 1326s ok 5 /filter-output-stream/close 1326s # End of filter-output-stream tests 1326s ok - glib/buffered-output-stream.test 1326s # Running test: glib/appmonitor.test 1326s TAP version 14 1326s # random seed: R02Sc972fe03af13613358d23d8bba873094 1326s 1..1 1326s # Start of monitor tests 1326s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_TXUJK3/monitor/app/.dirs/home 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_TXUJK3/monitor/app/.dirs/cache 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_TXUJK3/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_TXUJK3/monitor/app/.dirs/system-config2 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_TXUJK3/monitor/app/.dirs/config 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_TXUJK3/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_TXUJK3/monitor/app/.dirs/system-data2 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_TXUJK3/monitor/app/.dirs/data 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_TXUJK3/monitor/app/.dirs/state 1326s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_TXUJK3/monitor/app/.dirs/runtime 1326s # Using data directory: /tmp/test_appmonitor_TXUJK3/monitor/app/.dirs/data 1326s ok - glib/appmonitor.test 1326s ok 1 /monitor/app 1326s # End of monitor tests 1326s # Running test: glib/markup-subparser.test 1326s TAP version 14 1326s # random seed: R02S3075345de72da2bf76b56aa0ee822265 1326s 1..14 1326s # Start of glib tests 1326s # Start of markup tests 1326s # Start of subparser tests 1326s # Start of success tests 1326s ok 1 /glib/markup/subparser/success/0 1326s ok 2 /glib/markup/subparser/success/1 1326s ok 3 /glib/markup/subparser/success/2 1326s ok 4 /glib/markup/subparser/success/3 1326s ok 5 /glib/markup/subparser/success/4 1326s ok 6 /glib/markup/subparser/success/5 1326s ok 7 /glib/markup/subparser/success/6 1326s # End of success tests 1326s # Start of failure tests 1326s ok 8 /glib/markup/subparser/failure/0 1326s ok 9 /glib/markup/subparser/failure/1 1326s ok 10 /glib/markup/subparser/failure/2 1326s ok 11 /glib/markup/subparser/failure/3 1326s ok 12 /glib/markup/subparser/failure/4 1326s ok 13 /glib/markup/subparser/failure/5 1326s ok 14 /glib/markup/subparser/failure/6 1326s # End of failure tests 1326s # End of subparser tests 1326s # End of markup tests 1326s # End of glib tests 1326s ok - glib/markup-subparser.test 1326s # Running test: glib/thread-pool-slow.test 1326s TAP version 14 1326s # random seed: R02Sa7bc15348970b9ebea64c0c91998c3b1 1326s 1..7 1326s # Start of threadpool tests 1326s ok 1 /threadpool/functions 1327s ok 2 /threadpool/stop-unused 1327s # slow test /threadpool/stop-unused executed in 0.52 secs 1327s ok 3 /threadpool/pools 1327s # [unsorted] ===> pushed new thread with id:75, number of threads:1, unprocessed:0 1327s # [unsorted] ===> pushed new thread with id:7, number of threads:2, unprocessed:1 1327s # [unsorted] ===> pushed new thread with id:80, number of threads:3, unprocessed:2 1327s # [unsorted] ===> pushed new thread with id:39, number of threads:4, unprocessed:3 1327s # [unsorted] ===> pushed new thread with id:41, number of threads:5, unprocessed:4 1327s # [unsorted] ===> pushed new thread with id:83, number of threads:6, unprocessed:5 1327s # [unsorted] ===> pushed new thread with id:29, number of threads:7, unprocessed:3 1327s # [unsorted] ===> pushed new thread with id:30, number of threads:8, unprocessed:4 1327s # [unsorted] ===> pushed new thread with id:66, number of threads:9, unprocessed:5 1327s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:3 1327s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:4 1327s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:5 1327s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:6 1327s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:7 1327s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:8 1327s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:9 1327s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:9 1327s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:10 1327s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:11 1327s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:12 1327s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:13 1327s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:14 1327s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:15 1327s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:16 1327s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:17 1327s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:17 1327s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:18 1327s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:19 1327s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:20 1327s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:21 1327s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:22 1327s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:23 1327s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:24 1327s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:25 1327s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:26 1327s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:27 1327s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:28 1327s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:29 1327s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:29 1327s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:30 1327s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:31 1327s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:32 1327s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:33 1327s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:34 1327s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:35 1327s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:36 1327s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:37 1327s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:38 1327s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:39 1327s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:40 1327s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:41 1327s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:42 1327s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:43 1327s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:44 1327s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:45 1327s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:46 1327s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:47 1327s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:48 1327s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:49 1327s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:50 1327s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:51 1327s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:52 1327s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:53 1327s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:54 1327s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:55 1327s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:56 1327s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:57 1327s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:58 1327s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:59 1327s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:60 1327s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:61 1327s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:62 1327s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:63 1327s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:64 1327s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:65 1327s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:66 1327s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:67 1327s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:68 1327s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:69 1327s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:70 1327s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:71 1327s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:72 1327s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:73 1327s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:74 1327s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:75 1327s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:76 1327s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:77 1327s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:78 1327s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:79 1327s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:80 1327s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:81 1327s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:82 1327s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:83 1327s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:84 1327s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:85 1327s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:86 1327s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:87 1327s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:88 1327s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:89 1327s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:90 1327s ok 4 /threadpool/no-sort 1327s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:1 1327s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:2 1327s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:3 1327s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:4 1327s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:5 1327s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:6 1327s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:7 1327s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:8 1327s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:9 1327s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:10 1327s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:11 1327s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:12 1327s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:13 1327s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:14 1327s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:15 1327s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:16 1327s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:17 1327s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:18 1327s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:19 1327s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:20 1327s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:21 1327s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:22 1327s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:23 1327s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:24 1327s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:25 1327s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:26 1327s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:27 1327s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:28 1327s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:29 1327s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:30 1327s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:31 1327s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:32 1327s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:33 1327s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:34 1327s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:35 1327s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:36 1327s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:37 1327s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:38 1327s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:39 1327s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:40 1327s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:41 1327s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:42 1327s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:43 1327s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:44 1327s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:45 1327s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:46 1327s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:47 1327s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:48 1327s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:49 1327s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:50 1327s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:51 1327s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:52 1327s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:53 1327s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:54 1327s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:55 1327s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:56 1327s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:57 1327s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:58 1327s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:59 1327s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:60 1327s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:61 1327s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:62 1327s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:63 1327s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:64 1327s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:65 1327s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:66 1327s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:67 1327s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:68 1327s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:69 1327s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:70 1327s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:71 1327s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:72 1327s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:73 1327s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:74 1327s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:75 1327s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:76 1327s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:77 1327s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:78 1327s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:79 1327s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:80 1327s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:81 1327s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:82 1327s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:83 1327s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:84 1327s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:85 1327s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:86 1327s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:87 1327s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:88 1327s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:89 1327s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:90 1327s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:91 1327s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:92 1327s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:93 1327s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:94 1327s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:95 1327s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:96 1327s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:97 1327s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:98 1327s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:99 1327s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:100 1327s # Starting thread pool processing 1327s ok 5 /threadpool/sort 1327s # Executing: glib/thread-pool-slow.test 1328s ok 6 /threadpool/stop-unused-multiple 1328s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1328s # Pool idle thread count: 0, unprocessed jobs: 48 1328s # Pool idle thread count: 0, unprocessed jobs: 0 1328s # Pool idle thread count: 0, unprocessed jobs: 0 1329s # Pool idle thread count: 10, unprocessed jobs: 0 1329s # Pool idle thread count: 10, unprocessed jobs: 0 1329s # Pool idle thread count: 10, unprocessed jobs: 0 1329s # Pool idle thread count: 10, unprocessed jobs: 0 1330s # Pool idle thread count: 10, unprocessed jobs: 0 1330s # Pool idle thread count: 10, unprocessed jobs: 0 1330s # Pool idle thread count: 10, unprocessed jobs: 0 1330s # Pool idle thread count: 10, unprocessed jobs: 0 1331s # Pool idle thread count: 10, unprocessed jobs: 0 1331s # Pool idle thread count: 10, unprocessed jobs: 0 1331s # Pool idle thread count: 10, unprocessed jobs: 0 1331s # Pool idle thread count: 10, unprocessed jobs: 0 1332s # Pool idle thread count: 10, unprocessed jobs: 0 1332s # Pool idle thread count: 10, unprocessed jobs: 0 1332s # Pool idle thread count: 10, unprocessed jobs: 0 1332s # Pool idle thread count: 10, unprocessed jobs: 0 1332s # Executing: glib/thread-pool-slow.test 1333s # Pool idle thread count: 10, unprocessed jobs: 0 1333s # Pool idle thread count: 10, unprocessed jobs: 0 1333s # Pool idle thread count: 10, unprocessed jobs: 0 1333s # Pool idle thread count: 10, unprocessed jobs: 0 1334s # Pool idle thread count: 10, unprocessed jobs: 0 1334s # Pool idle thread count: 10, unprocessed jobs: 0 1334s # Pool idle thread count: 10, unprocessed jobs: 0 1334s # Pool idle thread count: 10, unprocessed jobs: 0 1335s # Pool idle thread count: 10, unprocessed jobs: 0 1335s # Pool idle thread count: 10, unprocessed jobs: 0 1335s # Pool idle thread count: 10, unprocessed jobs: 0 1335s # Pool idle thread count: 10, unprocessed jobs: 0 1336s # Pool idle thread count: 10, unprocessed jobs: 0 1336s # Pool idle thread count: 10, unprocessed jobs: 0 1336s # Pool idle thread count: 10, unprocessed jobs: 0 1336s # Pool idle thread count: 10, unprocessed jobs: 0 1337s # Pool idle thread count: 10, unprocessed jobs: 2 1337s # Pool idle thread count: 10, unprocessed jobs: 2 1337s # Pool idle thread count: 8, unprocessed jobs: 0 1337s # Pool idle thread count: 8, unprocessed jobs: 0 1337s # Pool idle thread count: 10, unprocessed jobs: 0 1337s # Pool idle thread count: 10, unprocessed jobs: 0 1337s # Executing: glib/thread-pool-slow.test 1338s # Pool idle thread count: 10, unprocessed jobs: 0 1338s # Pool idle thread count: 10, unprocessed jobs: 0 1338s # Pool idle thread count: 10, unprocessed jobs: 0 1338s # Pool idle thread count: 10, unprocessed jobs: 0 1339s # Pool idle thread count: 2, unprocessed jobs: 0 1339s # Pool idle thread count: 2, unprocessed jobs: 0 1339s # Pool idle thread count: 2, unprocessed jobs: 0 1339s # Pool idle thread count: 2, unprocessed jobs: 0 1340s # Pool idle thread count: 2, unprocessed jobs: 0 1340s # Pool idle thread count: 2, unprocessed jobs: 0 1340s # Pool idle thread count: 2, unprocessed jobs: 0 1340s # Pool idle thread count: 2, unprocessed jobs: 0 1341s # Pool idle thread count: 2, unprocessed jobs: 0 1341s # Pool idle thread count: 2, unprocessed jobs: 0 1341s # Pool idle thread count: 2, unprocessed jobs: 0 1341s # Pool idle thread count: 2, unprocessed jobs: 0 1342s # Pool idle thread count: 2, unprocessed jobs: 0 1342s # Pool idle thread count: 2, unprocessed jobs: 0 1342s # Pool idle thread count: 2, unprocessed jobs: 0 1342s # Pool idle thread count: 2, unprocessed jobs: 0 1342s # Executing: glib/thread-pool-slow.test 1343s # Pool idle thread count: 2, unprocessed jobs: 0 1343s # Pool idle thread count: 2, unprocessed jobs: 0 1343s # Pool idle thread count: 2, unprocessed jobs: 0 1343s # Pool idle thread count: 2, unprocessed jobs: 0 1344s # Pool idle thread count: 2, unprocessed jobs: 0 1344s # Pool idle thread count: 2, unprocessed jobs: 0 1344s # Pool idle thread count: 2, unprocessed jobs: 0 1344s # Pool idle thread count: 2, unprocessed jobs: 0 1345s # Pool idle thread count: 2, unprocessed jobs: 0 1345s # Pool idle thread count: 2, unprocessed jobs: 0 1345s # Pool idle thread count: 2, unprocessed jobs: 0 1345s # Pool idle thread count: 2, unprocessed jobs: 0 1346s # Pool idle thread count: 2, unprocessed jobs: 0 1346s # Pool idle thread count: 2, unprocessed jobs: 0 1346s # Pool idle thread count: 2, unprocessed jobs: 0 1346s # Pool idle thread count: 2, unprocessed jobs: 0 1347s # Pool idle thread count: 2, unprocessed jobs: 0 1347s # Pool idle thread count: 2, unprocessed jobs: 0 1347s ok 7 /threadpool/idle-time 1347s # slow test /threadpool/idle-time executed in 19.53 secs 1347s # End of threadpool tests 1347s ok - glib/thread-pool-slow.test 1347s TAP version 14 1347s # random seed: R02S48ccb5a28e5dc637a89036888640b9b5 1347s 1..1 1347s # Start of assert tests 1347s # Running test: glib/testing.test 1347s ok 1 /assert/finalize_object 1347s # Start of finalize_object tests 1347s # Start of subprocess tests 1347s # End of subprocess tests 1347s # End of finalize_object tests 1347s # End of assert tests 1347s ok - glib/testing.test 1347s # Running test: glib/timeout.test 1347s TAP version 14 1347s # random seed: R02S5c37fdd1128c59240d562394f0cfd2bc 1347s 1..5 1347s # Start of timeout tests 1347s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1347s # Executing: glib/timeout.test 1349s ok 1 /timeout/seconds 1349s # slow test /timeout/seconds executed in 2.10 secs 1351s ok 2 /timeout/seconds-once 1351s # slow test /timeout/seconds-once executed in 2.10 secs 1351s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1352s # Executing: glib/timeout.test 1353s ok 3 /timeout/weeks-overflow 1353s # slow test /timeout/weeks-overflow executed in 2.10 secs 1353s ok 4 /timeout/far-future-ready-time 1353s ok 5 /timeout/rounding # SKIP Not reliable on older ARM hardware 1353s # End of timeout tests 1353s ok - glib/timeout.test 1353s # Running test: glib/error.test 1353s TAP version 14 1353s # random seed: R02Se54bdd2652ab8db723cb5959bf867c79 1353s 1..3 1353s # Start of error tests 1353s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_F4XHK3/error/from-errno/.dirs/home 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_F4XHK3/error/from-errno/.dirs/cache 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_F4XHK3/error/from-errno/.dirs/system-config1:/tmp/test_error_F4XHK3/error/from-errno/.dirs/system-config2 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_F4XHK3/error/from-errno/.dirs/config 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_F4XHK3/error/from-errno/.dirs/system-data1:/tmp/test_error_F4XHK3/error/from-errno/.dirs/system-data2 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_F4XHK3/error/from-errno/.dirs/data 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_F4XHK3/error/from-errno/.dirs/state 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_F4XHK3/error/from-errno/.dirs/runtime 1353s ok 1 /error/from-errno 1353s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_F4XHK3/error/from-file-error/.dirs/home 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_F4XHK3/error/from-file-error/.dirs/cache 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_F4XHK3/error/from-file-error/.dirs/system-config1:/tmp/test_error_F4XHK3/error/from-file-error/.dirs/system-config2 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_F4XHK3/error/from-file-error/.dirs/config 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_F4XHK3/error/from-file-error/.dirs/system-data1:/tmp/test_error_F4XHK3/error/from-file-error/.dirs/system-data2 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_F4XHK3/error/from-file-error/.dirs/data 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_F4XHK3/error/from-file-error/.dirs/state 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_F4XHK3/error/from-file-error/.dirs/runtime 1353s ok 2 /error/from-file-error 1353s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_F4XHK3/error/from-win32-error/.dirs/home 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_F4XHK3/error/from-win32-error/.dirs/cache 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_F4XHK3/error/from-win32-error/.dirs/system-config1:/tmp/test_error_F4XHK3/error/from-win32-error/.dirs/system-config2 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_F4XHK3/error/from-win32-error/.dirs/config 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_F4XHK3/error/from-win32-error/.dirs/system-data1:/tmp/test_error_F4XHK3/error/from-win32-error/.dirs/system-data2 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_F4XHK3/error/from-win32-error/.dirs/data 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_F4XHK3/error/from-win32-error/.dirs/state 1353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_F4XHK3/error/from-win32-error/.dirs/runtime 1353s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 1353s # End of error tests 1353s ok - glib/error.test 1353s # Running test: glib/rec-mutex.test 1353s TAP version 14 1353s # random seed: R02S3fe10f2d7fb433683c8a5967721c03a0 1353s 1..29 1353s # Start of thread tests 1353s ok 1 /thread/rec-mutex1 1353s ok 2 /thread/rec-mutex2 1353s ok 3 /thread/rec-mutex3 1353s ok 4 /thread/rec-mutex4 1353s # Start of rec-mutex tests 1353s # Start of perf tests 1353s # Start of uncontended tests 1353s # max perf: 0.250000 mips 1353s ok 5 /thread/rec-mutex/perf/uncontended/depth1 1353s # max perf: inf mips 1353s ok 6 /thread/rec-mutex/perf/uncontended/depth2 1353s # max perf: inf mips 1353s ok 7 /thread/rec-mutex/perf/uncontended/depth3 1353s ok - glib/rec-mutex.test 1353s # Running test: glib/properties-refcount1.test 1353s # max perf: inf mips 1353s ok 8 /thread/rec-mutex/perf/uncontended/depth4 1353s # max perf: inf mips 1353s ok 9 /thread/rec-mutex/perf/uncontended/depth5 1353s # End of uncontended tests 1353s # Start of contended1 tests 1353s # max perf: 2.000000 mips 1353s ok 10 /thread/rec-mutex/perf/contended1/depth1 1353s # max perf: inf mips 1353s ok 11 /thread/rec-mutex/perf/contended1/depth2 1353s # max perf: 2.000000 mips 1353s ok 12 /thread/rec-mutex/perf/contended1/depth3 1353s # max perf: 2.000000 mips 1353s ok 13 /thread/rec-mutex/perf/contended1/depth4 1353s # max perf: inf mips 1353s ok 14 /thread/rec-mutex/perf/contended1/depth5 1353s # End of contended1 tests 1353s # Start of contended2 tests 1353s # max perf: 3.000000 mips 1353s ok 15 /thread/rec-mutex/perf/contended2/depth1 1353s # max perf: 3.000000 mips 1353s ok 16 /thread/rec-mutex/perf/contended2/depth2 1353s # max perf: 3.000000 mips 1353s ok 17 /thread/rec-mutex/perf/contended2/depth3 1353s # max perf: 3.000000 mips 1353s ok 18 /thread/rec-mutex/perf/contended2/depth4 1353s # max perf: 1.500000 mips 1353s ok 19 /thread/rec-mutex/perf/contended2/depth5 1353s # End of contended2 tests 1353s # Start of contended3 tests 1353s # max perf: 4.000000 mips 1353s ok 20 /thread/rec-mutex/perf/contended3/depth1 1353s # max perf: 1.333333 mips 1353s ok 21 /thread/rec-mutex/perf/contended3/depth2 1353s # max perf: 1.333333 mips 1353s ok 22 /thread/rec-mutex/perf/contended3/depth3 1353s # max perf: 1.333333 mips 1353s ok 23 /thread/rec-mutex/perf/contended3/depth4 1353s # max perf: 1.000000 mips 1353s ok 24 /thread/rec-mutex/perf/contended3/depth5 1353s # End of contended3 tests 1353s # Start of contended4 tests 1353s # max perf: 1.250000 mips 1353s ok 25 /thread/rec-mutex/perf/contended4/depth1 1353s # max perf: 0.625000 mips 1353s ok 26 /thread/rec-mutex/perf/contended4/depth2 1353s # max perf: 0.714286 mips 1353s ok 27 /thread/rec-mutex/perf/contended4/depth3 1353s # max perf: 0.714286 mips 1353s ok 28 /thread/rec-mutex/perf/contended4/depth4 1353s # max perf: 0.714286 mips 1353s ok 29 /thread/rec-mutex/perf/contended4/depth5 1353s # End of contended4 tests 1353s # End of perf tests 1353s # End of rec-mutex tests 1353s # End of thread tests 1353s TAP version 14 1353s # random seed: R02S17891ffec659e6944ad4b886077bed2d 1353s 1..1 1353s # Start of gobject tests 1353s # Start of refcount tests 1354s # .f 1354s # .c 1354s # .d 1354s # .b 1354s # .e 1354s # .f 1354s # .c 1354s # .d 1354s # .e 1354s # .b 1354s # .f 1354s # .c 1354s # .d 1354s # .e 1354s # .b 1354s # .f 1354s # .c 1355s # .d 1355s # .f 1355s # .e 1355s # .b 1355s # .c 1355s # .f 1355s # .d 1355s # .e 1355s # .c 1355s # .b 1355s # .f 1355s # .d 1355s # .c 1355s # .e 1355s # .f 1355s # .b 1355s # .d 1355s # .c 1356s # .e 1356s # .f 1356s # .b 1356s # .c 1356s # .d 1356s # .f 1356s # .e 1356s # .c 1356s # .b 1356s # .d 1356s # .f 1356s # .e 1356s # .c 1356s # .f 1356s # .b 1356s # .d 1356s # .e 1356s ok - glib/properties-refcount1.test 1356s # Running test: glib/atomic.test 1356s ok 1 /gobject/refcount/properties-1 1356s # slow test /gobject/refcount/properties-1 executed in 3.00 secs 1356s # End of refcount tests 1356s # End of gobject tests 1356s TAP version 14 1356s # random seed: R02S1dab0c0f92860fad0b962617516c78b0 1356s 1..2 1356s # Start of atomic tests 1356s ok 1 /atomic/types 1357s ok - glib/atomic.test 1357s # Running test: glib/gvariant.test 1357s ok 2 /atomic/threaded 1357s # End of atomic tests 1357s TAP version 14 1357s # random seed: R02Seef99e254fadff262d3796b70d568b6e 1357s 1..69 1357s # Start of gvariant tests 1357s ok 1 /gvariant/type 1357s ok 2 /gvariant/typeinfo 1357s ok 3 /gvariant/string 1357s ok 4 /gvariant/utf8 1357s ok 5 /gvariant/utf8-new-strings 1357s ok 6 /gvariant/containers 1357s ok 7 /gvariant/format-strings 1357s ok 8 /gvariant/invalid-varargs 1357s ok 9 /gvariant/varargs 1357s ok 10 /gvariant/valist 1357s ok 11 /gvariant/builder-memory 1357s ok 12 /gvariant/hashing 1357s ok 13 /gvariant/byteswap 1357s # Executing: glib/gvariant.test 1358s ok 14 /gvariant/parser 1358s # slow test /gvariant/parser executed in 0.88 secs 1358s ok 15 /gvariant/parse-failures 1358s ok 16 /gvariant/parse-positional 1358s ok 17 /gvariant/floating 1358s ok 18 /gvariant/bytestring 1358s ok 19 /gvariant/lookup-value 1358s ok 20 /gvariant/lookup 1358s ok 21 /gvariant/compare 1358s ok 22 /gvariant/equal 1358s ok 23 /gvariant/fixed-array 1358s ok 24 /gvariant/check-format-string 1358s ok 25 /gvariant/checksum-basic 1358s ok 26 /gvariant/checksum-nested 1358s ok 27 /gvariant/gbytes 1358s ok 28 /gvariant/print-context 1358s ok 29 /gvariant/error-quark 1358s ok 30 /gvariant/stack-builder-init 1358s ok 31 /gvariant/stack-builder-init-static 1358s ok 32 /gvariant/stack-builder-init-unset 1358s ok 33 /gvariant/stack-dict-init 1358s ok 34 /gvariant/unaligned-construction 1358s # Start of type tests 1358s # Start of string-scan tests 1358s # Start of recursion tests 1358s ok 35 /gvariant/type/string-scan/recursion/tuple 1358s ok 36 /gvariant/type/string-scan/recursion/array 1358s # End of recursion tests 1358s # End of string-scan tests 1358s # End of type tests 1358s # Start of serialiser tests 1358s ok 37 /gvariant/serialiser/maybe 1358s ok 38 /gvariant/serialiser/array 1359s ok 39 /gvariant/serialiser/tuple 1359s ok 40 /gvariant/serialiser/variant 1359s ok 41 /gvariant/serialiser/strings 1360s ok 42 /gvariant/serialiser/byteswap 1360s # slow test /gvariant/serialiser/byteswap executed in 1.38 secs 1360s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 1360s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 1360s ok 43 /gvariant/serialiser/children 1360s # Start of byteswap tests 1360s ok 44 /gvariant/serialiser/byteswap/zero-sized 1360s # End of byteswap tests 1360s # Start of fuzz tests 1360s ok 45 /gvariant/serialiser/fuzz/1% 1360s # slow test /gvariant/serialiser/fuzz/1% executed in 0.53 secs 1361s ok 46 /gvariant/serialiser/fuzz/5% 1361s # slow test /gvariant/serialiser/fuzz/5% executed in 0.68 secs 1361s ok 47 /gvariant/serialiser/fuzz/9% 1362s ok 48 /gvariant/serialiser/fuzz/13% 1362s # slow test /gvariant/serialiser/fuzz/13% executed in 0.50 secs 1362s ok 49 /gvariant/serialiser/fuzz/17% 1362s # End of fuzz tests 1362s # End of serialiser tests 1362s # Start of utf8 tests 1362s # Start of subprocess tests 1362s # End of subprocess tests 1362s # End of utf8 tests 1362s # Start of varargs tests 1362s # Start of subprocess tests 1362s # End of subprocess tests 1362s # End of varargs tests 1362s # Start of byteswap tests 1362s # /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. 1362s ok 50 /gvariant/byteswap/non-normal-non-aligned 1362s # End of byteswap tests 1362s # Start of parser tests 1362s ok 51 /gvariant/parser/integer-bounds 1362s ok 52 /gvariant/parser/recursion 1362s # Start of recursion tests 1362s ok 53 /gvariant/parser/recursion/typedecls 1362s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 1362s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 1362s # Text form 0: @mmmu 5 1362s # Text form 1: @mmmas ['hello'] 1362s # Text form 2: @mmmu just just nothing 1362s # Text form 3: @mmmas just just nothing 1362s # Text form 4: @mmmu just nothing 1362s # Text form 5: @mmmas just nothing 1362s # Text form 6: @mmmu nothing 1362s # Text form 7: @mmmas nothing 1362s ok 54 /gvariant/parser/recursion/maybes 1362s # End of recursion tests 1362s # End of parser tests 1362s # Start of parse tests 1362s # Start of subprocess tests 1362s # End of subprocess tests 1362s # End of parse tests 1362s # Start of normal-checking tests 1362s ok 55 /gvariant/normal-checking/tuples 1362s ok 56 /gvariant/normal-checking/array-offsets 1362s ok 57 /gvariant/normal-checking/array-offsets2 1362s ok 58 /gvariant/normal-checking/tuple-offsets 1362s ok 59 /gvariant/normal-checking/tuple-offsets2 1362s ok 60 /gvariant/normal-checking/tuple-offsets3 1362s ok 61 /gvariant/normal-checking/tuple-offsets4 1362s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 1362s ok 62 /gvariant/normal-checking/tuple-offsets5 1362s ok 63 /gvariant/normal-checking/empty-object-path 1362s # Start of array-offsets tests 1362s ok 64 /gvariant/normal-checking/array-offsets/overlapped 1362s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 1362s # End of array-offsets tests 1362s # Start of tuple-offsets tests 1362s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 1362s # End of tuple-offsets tests 1362s # End of normal-checking tests 1362s # Start of recursion-limits tests 1362s ok 67 /gvariant/recursion-limits/variant-in-variant 1362s ok 68 /gvariant/recursion-limits/array-in-variant 1362s # End of recursion-limits tests 1362s # End of gvariant tests 1362s # Start of gvarianttype tests 1362s ok 69 /gvarianttype/hash 1362s # End of gvarianttype tests 1362s ok - glib/gvariant.test 1362s # Running test: glib/macros-c-99.test 1362s TAP version 14 1362s # random seed: R02S9a5e83657c46c10c2b8aea11eedea2e4 1362s 1..4 1362s # Start of C tests 1362s ok 1 /C/standard-99 1362s # End of C tests 1362s # Start of alignof tests 1362s ok 2 /alignof/fallback 1362s # End of alignof tests 1362s # Start of assert tests 1362s ok 3 /assert/static 1362s # End of assert tests 1362s # Start of struct tests 1362s ok 4 /struct/sizeof_member 1362s # End of struct tests 1362s ok - glib/macros-c-99.test 1362s # Running test: glib/assert-msg-test.py.test 1362s # Executing: glib/assert-msg-test.py.test 1362s TAP version 13 1362s ok 1 __main__.TestAssertMessage.test_gassert 1362s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1362s # tmpdir: /tmp/tmpngzg1tqw 1362s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 1362s # Return code: -6 1362s # Output: 1362s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1362s # Error: 1362s # ** 1362s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1362s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 1362s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1362s # tmpdir: /tmp/tmpht3lgt86 1362s 1..2 1362s ok - glib/assert-msg-test.py.test 1362s # Running test: glib/genmarshal.py.test 1363s TAP version 13 1363s ok 1 __main__.TestGenmarshal.test_empty_list 1363s # glib-genmarshal: /usr/bin/glib-genmarshal 1363s # tmpdir: /tmp/tmpgvt9djz0 1363s # /tmp/tmpgvt9djz0/tmpe2rhbeud.list: 1363s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpgvt9djz0/tmpe2rhbeud.list', '--header', '--quiet'] 1363s # Return code: 0 1363s # Output: 1363s # /* 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. */ 1363s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1363s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1363s # 1363s # #include 1363s # 1363s # G_BEGIN_DECLS 1363s # 1363s # 1363s # G_END_DECLS 1363s # 1363s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1363s # Error: 1363s # 1363s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpgvt9djz0/tmpe2rhbeud.list', '--body', '--quiet'] 1363s # Return code: 0 1363s # Output: 1363s # /* 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. */ 1363s # #include 1363s # 1363s # #ifdef G_ENABLE_DEBUG 1363s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1363s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1363s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1363s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1363s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1363s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1363s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1363s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1363s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1363s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1363s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1363s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1363s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1363s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1363s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1363s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1363s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1363s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1363s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1363s # #else /* !G_ENABLE_DEBUG */ 1363s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1363s # * Do not access GValues directly in your code. Instead, use the 1363s # * g_value_get_*() functions 1363s # */ 1363s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1363s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1363s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1363s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1363s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1363s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1363s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1363s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1363s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1363s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1363s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1363s # #endif /* !G_ENABLE_DEBUG */ 1363s # Error: 1363s ok 2 __main__.TestGenmarshal.test_help 1363s # glib-genmarshal: /usr/bin/glib-genmarshal 1363s # tmpdir: /tmp/tmpt0n3idst 1363s # Running: ['/usr/bin/glib-genmarshal', '--help'] 1363s # Return code: 0 1363s # Output: 1363s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 1363s # [--internal] [--valist-marshallers] [-v] 1363s # [--g-fatal-warnings] [--include-header [HEADER]] 1363s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 1363s # [--prototypes] [--header] [--body] [--stdinc | 1363s # --nostdinc] [--quiet | --verbose] 1363s # [FILE ...] 1363s # 1363s # Generate signal marshallers for GObject 1363s # 1363s # positional arguments: 1363s # FILE Files with lists of marshallers to generate, or "-" 1363s # for standard input 1363s # 1363s # options: 1363s # -h, --help show this help message and exit 1363s # --prefix STRING Specify marshaller prefix 1363s # --output FILE Write output into the specified file 1363s # --skip-source Skip source location comments 1363s # --internal Mark generated functions as internal 1363s # --valist-marshallers Generate va_list marshallers 1363s # -v, --version Print version information, and exit 1363s # --g-fatal-warnings Make warnings fatal 1363s # --include-header [HEADER] 1363s # Include the specified header in the body 1363s # --pragma-once Use "pragma once" as the inclusion guard 1363s # -D CPP_DEFINES Pre-processor define 1363s # -U CPP_UNDEFINES Pre-processor undefine 1363s # --prototypes Generate the marshallers prototype in the C code 1363s # --header Generate C headers 1363s # --body Generate C code 1363s # --stdinc Include standard marshallers 1363s # --nostdinc Use standard marshallers 1363s # --quiet Only print warnings and errors 1363s # --verbose Be verbose, and include debugging information 1363s # Error: 1363s ok 3 __main__.TestGenmarshal.test_no_args 1363s # glib-genmarshal: /usr/bin/glib-genmarshal 1363s # tmpdir: /tmp/tmpdyicfh__ 1363s # Running: ['/usr/bin/glib-genmarshal'] 1363s # Return code: 0 1363s # Output: 1363s # 1363s # Error: 1363s ok 4 __main__.TestGenmarshal.test_void_boolean 1363s # glib-genmarshal: /usr/bin/glib-genmarshal 1363s # tmpdir: /tmp/tmp87lru3xp 1363s # /tmp/tmp87lru3xp/tmp4cxp4nxp.list: VOID:BOOLEAN 1363s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp87lru3xp/tmp4cxp4nxp.list', '--header', '--quiet'] 1363s # Return code: 0 1363s # Output: 1363s # /* 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. */ 1363s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1363s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1363s # 1363s # #include 1363s # 1363s # G_BEGIN_DECLS 1363s # 1363s # /* VOID:BOOLEAN (/tmp/tmp87lru3xp/tmp4cxp4nxp.list:1) */ 1363s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 1363s # 1363s # 1363s # G_END_DECLS 1363s # 1363s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1363s # Error: 1363s # 1363s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp87lru3xp/tmp4cxp4nxp.list', '--body', '--quiet'] 1363s # Return code: 0 1363s # Output: 1363s # /* 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. */ 1363s # #include 1363s # 1363s # #ifdef G_ENABLE_DEBUG 1363s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1363s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1363s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1363s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1363s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1363s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1363s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1363s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1363s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1363s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1363s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1363s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1363s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1363s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1363s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1363s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1363s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1363s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1363s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1363s # #else /* !G_ENABLE_DEBUG */ 1363s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1363s # * Do not access GValues directly in your code. Instead, use the 1363s # * g_value_get_*() functions 1363s # */ 1363s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1363s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1363s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1363s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1363s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1363s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1363s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1363s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1363s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1363s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1363s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1363s # #endif /* !G_ENABLE_DEBUG */ 1363s # Error: 1363s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 1363s # glib-genmarshal: /usr/bin/glib-genmarshal 1363s # tmpdir: /tmp/tmp_voktsl4 1363s # /tmp/tmp_voktsl4/tmpcddv50c9.list: VOID:BOOLEAN,INT64 1363s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp_voktsl4/tmpcddv50c9.list', '--header', '--quiet'] 1363s # Return code: 0 1363s # Output: 1363s # /* 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. */ 1363s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1363s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1363s # 1363s # #include 1363s # 1363s # G_BEGIN_DECLS 1363s # 1363s # /* VOID:BOOLEAN,INT64 (/tmp/tmp_voktsl4/tmpcddv50c9.list:1) */ 1363s # extern 1363s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1363s # GValue *return_value, 1363s # guint n_param_values, 1363s # const GValue *param_values, 1363s # gpointer invocation_hint, 1363s # gpointer marshal_data); 1363s # 1363s # 1363s # G_END_DECLS 1363s # 1363s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1363s # Error: 1363s # 1363s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp_voktsl4/tmpcddv50c9.list', '--body', '--quiet'] 1363s # Return code: 0 1363s # Output: 1363s # /* 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. */ 1363s # #include 1363s # 1363s # #ifdef G_ENABLE_DEBUG 1363s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1363s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1363s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1363s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1363s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1363s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1363s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1363s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1363s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1363s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1363s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1363s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1363s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1363s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1363s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1363s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1363s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1363s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1363s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1363s # #else /* !G_ENABLE_DEBUG */ 1363s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1363s # * Do not access GValues directly in your code. Instead, use the 1363s # * g_value_get_*() functions 1363s # */ 1363s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1363s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1363s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1363s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1363s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1363s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1363s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1363s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1363s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1363s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1363s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1363s # #endif /* !G_ENABLE_DEBUG */ 1363s # 1363s # /* VOID:BOOLEAN,INT64 (/tmp/tmp_voktsl4/tmpcddv50c9.list:1) */ 1363s # void 1363s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1363s # GValue *return_value G_GNUC_UNUSED, 1363s # guint n_param_values, 1363s # const GValue *param_values, 1363s # gpointer invocation_hint G_GNUC_UNUSED, 1363s # gpointer marshal_data) 1363s # { 1363s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 1363s # gboolean arg1, 1363s # gint64 arg2, 1363s # gpointer data2); 1363s # GCClosure *cc = (GCClosure *) closure; 1363s # gpointer data1, data2; 1363s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 1363s # 1363s # g_return_if_fail (n_param_values == 3); 1363s # 1363s # if (G_CCLOSURE_SWAP_DATA (closure)) 1363s # { 1363s # data1 = closure->data; 1363s # data2 = g_value_peek_pointer (param_values + 0); 1363s # } 1363s # else 1363s # { 1363s # data1 = g_value_peek_pointer (param_values + 0); 1363s # data2 = closure->data; 1363s # } 1363s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 1363s # 1363s # callback (data1, 1363s # g_marshal_value_peek_boolean (param_values + 1), 1363s # g_marshal_value_peek_int64 (param_values + 2), 1363s # data2); 1363s # } 1363s # Error: 1363s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 1363s # glib-genmarshal: /usr/bin/glib-genmarshal 1363s # tmpdir: /tmp/tmpqvlz19v4 1363s # /tmp/tmpqvlz19v4/tmpnclf3sca.list: VOID:PARAM 1363s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpqvlz19v4/tmpnclf3sca.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1363s # Return code: 0 1363s # Output: 1363s # /* 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. */ 1363s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1363s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1363s # 1363s # G_BEGIN_DECLS 1363s # 1363s # /* VOID:PARAM (/tmp/tmpqvlz19v4/tmpnclf3sca.list:1) */ 1363s # extern 1363s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1363s # GValue *return_value, 1363s # guint n_param_values, 1363s # const GValue *param_values, 1363s # gpointer invocation_hint, 1363s # gpointer marshal_data); 1363s # extern 1363s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1363s # GValue *return_value, 1363s # gpointer instance, 1363s # va_list args, 1363s # gpointer marshal_data, 1363s # int n_params, 1363s # GType *param_types); 1363s # 1363s # 1363s # G_END_DECLS 1363s # 1363s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1363s # Error: 1363s # 1363s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpqvlz19v4/tmpnclf3sca.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1363s # Return code: 0 1363s # Output: 1363s # /* 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. */ 1363s # #ifdef G_ENABLE_DEBUG 1363s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1363s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1363s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1363s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1363s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1363s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1363s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1363s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1363s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1363s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1363s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1363s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1363s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1363s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1363s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1363s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1363s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1363s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1363s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1363s # #else /* !G_ENABLE_DEBUG */ 1363s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1363s # * Do not access GValues directly in your code. Instead, use the 1363s # * g_value_get_*() functions 1363s # */ 1363s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1363s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1363s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1363s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1363s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1363s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1363s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1363s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1363s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1363s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1363s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1363s # #endif /* !G_ENABLE_DEBUG */ 1363s # 1363s # /* VOID:PARAM (/tmp/tmpqvlz19v4/tmpnclf3sca.list:1) */ 1363s # void 1363s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1363s # GValue *return_value G_GNUC_UNUSED, 1363s # guint n_param_values, 1363s # const GValue *param_values, 1363s # gpointer invocation_hint G_GNUC_UNUSED, 1363s # gpointer marshal_data) 1363s # { 1363s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1363s # gpointer arg1, 1363s # gpointer data2); 1363s # GCClosure *cc = (GCClosure *) closure; 1363s # gpointer data1, data2; 1363s # GMarshalFunc_VOID__PARAM callback; 1363s # 1363s # g_return_if_fail (n_param_values == 2); 1363s # 1363s # if (G_CCLOSURE_SWAP_DATA (closure)) 1363s # { 1363s # data1 = closure->data; 1363s # data2 = g_value_peek_pointer (param_values + 0); 1363s # } 1363s # else 1363s # { 1363s # data1 = g_value_peek_pointer (param_values + 0); 1363s # data2 = closure->data; 1363s # } 1363s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1363s # 1363s # callback (data1, 1363s # g_marshal_value_peek_param (param_values + 1), 1363s # data2); 1363s # } 1363s # 1363s # void 1363s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1363s # GValue *return_value G_GNUC_UNUSED, 1363s # gpointer instance, 1363s # va_list args, 1363s # gpointer marshal_data, 1363s # int n_params, 1363s # GType *param_types) 1363s # { 1363s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1363s # gpointer arg1, 1363s # gpointer data2); 1363s # GCClosure *cc = (GCClosure *) closure; 1363s # gpointer data1, data2; 1363s # GMarshalFunc_VOID__PARAM callback; 1363s # gpointer arg0; 1363s # va_list args_copy; 1363s # 1363s # va_copy (args_copy, args); 1363s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1363s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1363s # arg0 = g_param_spec_ref (arg0); 1363s # va_end (args_copy); 1363s # 1363s # 1363s # if (G_CCLOSURE_SWAP_DATA (closure)) 1363s # { 1363s # data1 = closure->data; 1363s # data2 = instance; 1363s # } 1363s # else 1363s # { 1363s # data1 = instance; 1363s # data2 = closure->data; 1363s # } 1363s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1363s # 1363s # callback (data1, 1363s # arg0, 1363s # data2); 1363s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1363s # g_param_spec_unref (arg0); 1363s # } 1363s # Error: 1363s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 1363s # glib-genmarshal: /usr/bin/glib-genmarshal 1363s # tmpdir: /tmp/tmpgscj7jkt 1363s # /tmp/tmpgscj7jkt/tmp1stbx8pf.list: VOID:STRING 1363s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpgscj7jkt/tmp1stbx8pf.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1363s # Return code: 0 1363s # Output: 1363s # /* 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. */ 1363s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1363s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1363s # 1363s # G_BEGIN_DECLS 1363s # 1363s # /* VOID:STRING (/tmp/tmpgscj7jkt/tmp1stbx8pf.list:1) */ 1363s # extern 1363s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1363s # GValue *return_value, 1363s # guint n_param_values, 1363s # const GValue *param_values, 1363s # gpointer invocation_hint, 1363s # gpointer marshal_data); 1363s # extern 1363s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1363s # GValue *return_value, 1363s # gpointer instance, 1363s # va_list args, 1363s # gpointer marshal_data, 1363s # int n_params, 1363s # GType *param_types); 1363s # 1363s # 1363s # G_END_DECLS 1363s # 1363s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1363s # Error: 1363s # 1363s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpgscj7jkt/tmp1stbx8pf.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1363s # Return code: 0 1363s # Output: 1363s # /* 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. */ 1363s # #ifdef G_ENABLE_DEBUG 1363s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1363s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1363s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1363s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1363s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1363s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1363s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1363s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1363s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1363s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1363s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1363s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1363s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1363s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1363s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1363s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1363s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1363s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1363s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1363s # #else /* !G_ENABLE_DEBUG */ 1363s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1363s # * Do not access GValues directly in your code. Instead, use the 1363s # * g_value_get_*() functions 1363s # */ 1363s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1363s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1363s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1363s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1363s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1363s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1363s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1363s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1363s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1363s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1363s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1363s # #endif /* !G_ENABLE_DEBUG */ 1363s # 1363s # /* VOID:STRING (/tmp/tmpgscj7jkt/tmp1stbx8pf.list:1) */ 1363s # void 1363s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1363s # GValue *return_value G_GNUC_UNUSED, 1363s # guint n_param_values, 1363s # const GValue *param_values, 1363s # gpointer invocation_hint G_GNUC_UNUSED, 1363s # gpointer marshal_data) 1363s # { 1363s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1363s # gpointer arg1, 1363s # gpointer data2); 1363s # GCClosure *cc = (GCClosure *) closure; 1363s # gpointer data1, data2; 1363s # GMarshalFunc_VOID__STRING callback; 1363s # 1363s # g_return_if_fail (n_param_values == 2); 1363s # 1363s # if (G_CCLOSURE_SWAP_DATA (closure)) 1363s # { 1363s # data1 = closure->data; 1363s # data2 = g_value_peek_pointer (param_values + 0); 1363s # } 1363s # else 1363s # { 1363s # data1 = g_value_peek_pointer (param_values + 0); 1363s # data2 = closure->data; 1363s # } 1363s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1363s # 1363s # callback (data1, 1363s # g_marshal_value_peek_string (param_values + 1), 1363s # data2); 1363s # } 1363s # 1363s # void 1363s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1363s # GValue *return_value G_GNUC_UNUSED, 1363s # gpointer instance, 1363s # va_list args, 1363s # gpointer marshal_data, 1363s # int n_params, 1363s # GType *param_types) 1363s # { 1363s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1363s # gpointer arg1, 1363s # gpointer data2); 1363s # GCClosure *cc = (GCClosure *) closure; 1363s # gpointer data1, data2; 1363s # GMarshalFunc_VOID__STRING callback; 1363s # gpointer arg0; 1363s # va_list args_copy; 1363s # 1363s # va_copy (args_copy, args); 1363s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1363s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1363s # arg0 = g_strdup (arg0); 1363s # va_end (args_copy); 1363s # 1363s # 1363s # if (G_CCLOSURE_SWAP_DATA (closure)) 1363s # { 1363s # data1 = closure->data; 1363s # data2 = instance; 1363s # } 1363s # else 1363s # { 1363s # data1 = instance; 1363s # data2 = closure->data; 1363s # } 1363s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1363s # 1363s # callback (data1, 1363s # arg0, 1363s # data2); 1363s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1363s # g_free (arg0); 1363s # } 1363s # Error: 1363s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 1363s # glib-genmarshal: /usr/bin/glib-genmarshal 1363s # tmpdir: /tmp/tmp17zxtmby 1363s # /tmp/tmp17zxtmby/tmp427sqlg1.list: VOID:VARIANT 1363s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp17zxtmby/tmp427sqlg1.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1363s # Return code: 0 1363s # Output: 1363s # /* 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. */ 1363s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1363s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1363s # 1363s # G_BEGIN_DECLS 1363s # 1363s # /* VOID:VARIANT (/tmp/tmp17zxtmby/tmp427sqlg1.list:1) */ 1363s # extern 1363s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1363s # GValue *return_value, 1363s # guint n_param_values, 1363s # const GValue *param_values, 1363s # gpointer invocation_hint, 1363s # gpointer marshal_data); 1363s # extern 1363s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1363s # GValue *return_value, 1363s # gpointer instance, 1363s # va_list args, 1363s # gpointer marshal_data, 1363s # int n_params, 1363s # GType *param_types); 1363s # 1363s # 1363s # G_END_DECLS 1363s # 1363s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1363s # Error: 1363s # 1363s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp17zxtmby/tmp427sqlg1.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1363s # Return code: 0 1363s # Output: 1363s # /* 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. */ 1363s # #ifdef G_ENABLE_DEBUG 1363s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1363s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1363s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1363s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1363s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1363s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1363s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1363s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1363s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1363s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1363s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1363s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1363s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1363s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1363s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1363s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1363s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1363s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1363s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1363s # #else /* !G_ENABLE_DEBUG */ 1363s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1363s # * Do not access GValues directly in your code. Instead, use the 1363s # * g_value_get_*() functions 1363s # */ 1363s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1363s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1363s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1363s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1363s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1363s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1363s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1363s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1363s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1363s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1363s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1363s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1363s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1363s # #endif /* !G_ENABLE_DEBUG */ 1363s # 1363s # /* VOID:VARIANT (/tmp/tmp17zxtmby/tmp427sqlg1.list:1) */ 1363s # void 1363s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1363s # GValue *return_value G_GNUC_UNUSED, 1363s # guint n_param_values, 1363s # const GValue *param_values, 1363s # gpointer invocation_hint G_GNUC_UNUSED, 1363s # gpointer marshal_data) 1363s # { 1363s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1363s # gpointer arg1, 1363s # gpointer data2); 1363s # GCClosure *cc = (GCClosure *) closure; 1363s # gpointer data1, data2; 1363s # GMarshalFunc_VOID__VARIANT callback; 1363s # 1363s # g_return_if_fail (n_param_values == 2); 1363s # 1363s # if (G_CCLOSURE_SWAP_DATA (closure)) 1363s # { 1363s # data1 = closure->data; 1363s # data2 = g_value_peek_pointer (param_values + 0); 1363s # } 1363s # else 1363s # { 1363s # data1 = g_value_peek_pointer (param_values + 0); 1363s # data2 = closure->data; 1363s # } 1363s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1363s # 1363s # callback (data1, 1363s # g_marshal_value_peek_variant (param_values + 1), 1363s # data2); 1363s # } 1363s # 1363s # void 1363s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1363s # GValue *return_value G_GNUC_UNUSED, 1363s # gpointer instance, 1363s # va_list args, 1363s # gpointer marshal_data, 1363s # int n_params, 1363s # GType *param_types) 1363s # { 1363s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1363s # gpointer arg1, 1363s # gpointer data2); 1363s # GCClosure *cc = (GCClosure *) closure; 1363s # gpointer data1, data2; 1363s # GMarshalFunc_VOID__VARIANT callback; 1363s # gpointer arg0; 1363s # va_list args_copy; 1363s # 1363s # va_copy (args_copy, args); 1363s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1363s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1363s # arg0 = g_variant_ref_sink (arg0); 1363s # va_end (args_copy); 1363s # 1363s # 1363s # if (G_CCLOSURE_SWAP_DATA (closure)) 1363s # { 1363s # data1 = closure->data; 1363s # data2 = instance; 1363s # } 1363s # else 1363s # { 1363s # data1 = instance; 1363s # data2 = closure->data; 1363s # } 1363s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1363s # 1363s # callback (data1, 1363s # arg0, 1363s # data2); 1363s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1363s # g_variant_unref (arg0); 1363s # } 1363s # Error: 1363s 1..8 1363s ok - glib/genmarshal.py.test 1363s # Running test: glib/642026-ec.test 1363s TAP version 14 1363s # random seed: R02S85b04e0566c97bb1c254919317498eac 1363s 1..1 1363s # Start of glib tests 1363s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1363s ok 1 /glib/642026 1363s # End of glib tests 1363s ok - glib/642026-ec.test 1363s # Running test: glib/gdbus-peer.test 1363s TAP version 14 1363s # random seed: R02S85a22e2afee66700be5a62459597da29 1363s 1..12 1363s # Start of gdbus tests 1363s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/.dirs/home 1363s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/.dirs/cache 1363s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/.dirs/system-config2 1363s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/.dirs/config 1363s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/.dirs/system-data2 1363s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/.dirs/data 1363s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/.dirs/state 1363s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/.dirs/runtime 1363s # Testing with unix:dir address 1363s # Testing with unix:tmpdir address 1364s # Testing with unix:path address 1364s ok 1 /gdbus/peer-to-peer 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/delayed-message-processing/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/delayed-message-processing/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/delayed-message-processing/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/delayed-message-processing/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/delayed-message-processing/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/delayed-message-processing/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/delayed-message-processing/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9Q3GK3/gdbus/delayed-message-processing/.dirs/runtime 1364s # Testing with unix:dir address 1364s ok 2 /gdbus/delayed-message-processing 1364s # slow test /gdbus/delayed-message-processing executed in 0.51 secs 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/nonce-tcp/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/nonce-tcp/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/nonce-tcp/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/nonce-tcp/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/nonce-tcp/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/nonce-tcp/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/nonce-tcp/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9Q3GK3/gdbus/nonce-tcp/.dirs/runtime 1364s ok 3 /gdbus/nonce-tcp 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/tcp-anonymous/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/tcp-anonymous/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/tcp-anonymous/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/tcp-anonymous/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/tcp-anonymous/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/tcp-anonymous/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/tcp-anonymous/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9Q3GK3/gdbus/tcp-anonymous/.dirs/runtime 1364s ok 4 /gdbus/tcp-anonymous 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/credentials/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/credentials/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/credentials/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/credentials/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/credentials/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/credentials/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/credentials/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9Q3GK3/gdbus/credentials/.dirs/runtime 1364s ok 5 /gdbus/credentials 1364s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/codegen-peer-to-peer/.dirs/home 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/codegen-peer-to-peer/.dirs/cache 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/codegen-peer-to-peer/.dirs/system-config2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/codegen-peer-to-peer/.dirs/config 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/codegen-peer-to-peer/.dirs/system-data2 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/codegen-peer-to-peer/.dirs/data 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/codegen-peer-to-peer/.dirs/state 1364s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9Q3GK3/gdbus/codegen-peer-to-peer/.dirs/runtime 1364s # Testing with unix:dir address 1364s # Machine ID: ebe82ec15e9c416d86a80cb89bcbeab4 1365s ok 6 /gdbus/codegen-peer-to-peer 1365s # slow test /gdbus/codegen-peer-to-peer executed in 1.11 secs 1365s # Start of peer-to-peer tests 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/signals/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/signals/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/signals/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/signals/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/signals/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/signals/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/signals/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/signals/.dirs/runtime 1365s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 1365s # Testing with unix:dir address 1365s ok 7 /gdbus/peer-to-peer/signals 1365s # Start of invalid tests 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/server/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/server/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/server/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/server/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/server/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/server/.dirs/runtime 1365s ok 8 /gdbus/peer-to-peer/invalid/server 1365s # Start of conn tests 1365s # Start of stream tests 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 1365s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 1365s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 1365s # End of stream tests 1365s # Start of addr tests 1365s ok - glib/gdbus-peer.test 1365s # Running test: glib/deprecated-properties.test 1365s ok - glib/deprecated-properties.test 1365s # Running test: glib/file.test 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 1365s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9Q3GK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 1365s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 1365s # End of addr tests 1365s # End of conn tests 1365s # End of invalid tests 1365s # End of peer-to-peer tests 1365s # End of gdbus tests 1365s TAP version 14 1365s # random seed: R02S3167dad2822ec38379b45915d4c9da46 1365s 1..3 1365s # Start of deprecated-properties tests 1365s ok 1 /deprecated-properties/construct 1365s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1365s ok 2 /deprecated-properties/default-construct 1365s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1365s ok 3 /deprecated-properties/set 1365s # End of deprecated-properties tests 1365s TAP version 14 1365s # random seed: R02S789aa61ab6a59d2c32d738ed5ebe3fe0 1365s 1..55 1365s # Start of file tests 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/basic/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/basic/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/basic/.dirs/system-config1:/tmp/test_file_O1QMK3/file/basic/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/basic/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/basic/.dirs/system-data1:/tmp/test_file_O1QMK3/file/basic/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/basic/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/basic/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/basic/.dirs/runtime 1365s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1365s ok 1 /file/basic 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/build-filename/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/build-filename/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/build-filename/.dirs/system-config1:/tmp/test_file_O1QMK3/file/build-filename/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/build-filename/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/build-filename/.dirs/system-data1:/tmp/test_file_O1QMK3/file/build-filename/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/build-filename/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/build-filename/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/build-filename/.dirs/runtime 1365s ok 2 /file/build-filename 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/build-filenamev/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/build-filenamev/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/build-filenamev/.dirs/system-config1:/tmp/test_file_O1QMK3/file/build-filenamev/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/build-filenamev/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/build-filenamev/.dirs/system-data1:/tmp/test_file_O1QMK3/file/build-filenamev/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/build-filenamev/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/build-filenamev/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/build-filenamev/.dirs/runtime 1365s ok 3 /file/build-filenamev 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/parent/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/parent/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/parent/.dirs/system-config1:/tmp/test_file_O1QMK3/file/parent/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/parent/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/parent/.dirs/system-data1:/tmp/test_file_O1QMK3/file/parent/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/parent/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/parent/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/parent/.dirs/runtime 1365s ok 4 /file/parent 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/child/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/child/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/child/.dirs/system-config1:/tmp/test_file_O1QMK3/file/child/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/child/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/child/.dirs/system-data1:/tmp/test_file_O1QMK3/file/child/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/child/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/child/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/child/.dirs/runtime 1365s ok 5 /file/child 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/empty-path/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/empty-path/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/empty-path/.dirs/system-config1:/tmp/test_file_O1QMK3/file/empty-path/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/empty-path/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/empty-path/.dirs/system-data1:/tmp/test_file_O1QMK3/file/empty-path/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/empty-path/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/empty-path/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/empty-path/.dirs/runtime 1365s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 1365s # /file/empty-path summary: Check that creating a file with an empty path results in errors 1365s ok 6 /file/empty-path 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/type/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/type/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/type/.dirs/system-config1:/tmp/test_file_O1QMK3/file/type/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/type/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/type/.dirs/system-data1:/tmp/test_file_O1QMK3/file/type/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/type/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/type/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/type/.dirs/runtime 1365s ok 7 /file/type 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/parse-name/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/parse-name/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/parse-name/.dirs/system-config1:/tmp/test_file_O1QMK3/file/parse-name/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/parse-name/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/parse-name/.dirs/system-data1:/tmp/test_file_O1QMK3/file/parse-name/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/parse-name/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/parse-name/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/parse-name/.dirs/runtime 1365s ok 8 /file/parse-name 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/replace-load/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/replace-load/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/replace-load/.dirs/system-config1:/tmp/test_file_O1QMK3/file/replace-load/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/replace-load/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/replace-load/.dirs/system-data1:/tmp/test_file_O1QMK3/file/replace-load/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/replace-load/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/replace-load/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/replace-load/.dirs/runtime 1365s ok 9 /file/replace-load 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/replace-cancel/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/replace-cancel/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/replace-cancel/.dirs/system-config1:/tmp/test_file_O1QMK3/file/replace-cancel/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/replace-cancel/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/replace-cancel/.dirs/system-data1:/tmp/test_file_O1QMK3/file/replace-cancel/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/replace-cancel/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/replace-cancel/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/replace-cancel/.dirs/runtime 1365s # Bug Reference: https://bugzilla.gnome.org/629301 1365s ok 10 /file/replace-cancel 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/replace-symlink/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/replace-symlink/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/replace-symlink/.dirs/system-config1:/tmp/test_file_O1QMK3/file/replace-symlink/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/replace-symlink/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/replace-symlink/.dirs/system-data1:/tmp/test_file_O1QMK3/file/replace-symlink/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/replace-symlink/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/replace-symlink/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/replace-symlink/.dirs/runtime 1365s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 1365s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 1365s # Using temporary directory /tmp/test_file_O1QMK3/g_file_replace_symlink_H41MK3 1365s ok 11 /file/replace-symlink 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/async-new-tmp/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/async-new-tmp/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_O1QMK3/file/async-new-tmp/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/async-new-tmp/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_O1QMK3/file/async-new-tmp/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/async-new-tmp/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/async-new-tmp/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/async-new-tmp/.dirs/runtime 1365s ok 12 /file/async-new-tmp 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/async-new-tmp-dir/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/async-new-tmp-dir/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_O1QMK3/file/async-new-tmp-dir/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/async-new-tmp-dir/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_O1QMK3/file/async-new-tmp-dir/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/async-new-tmp-dir/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/async-new-tmp-dir/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/async-new-tmp-dir/.dirs/runtime 1365s ok 13 /file/async-new-tmp-dir 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/async-delete/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/async-delete/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/async-delete/.dirs/system-config1:/tmp/test_file_O1QMK3/file/async-delete/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/async-delete/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/async-delete/.dirs/system-data1:/tmp/test_file_O1QMK3/file/async-delete/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/async-delete/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/async-delete/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/async-delete/.dirs/runtime 1365s ok 14 /file/async-delete 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/async-make-symlink/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/async-make-symlink/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_O1QMK3/file/async-make-symlink/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/async-make-symlink/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_O1QMK3/file/async-make-symlink/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/async-make-symlink/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/async-make-symlink/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/async-make-symlink/.dirs/runtime 1365s ok 15 /file/async-make-symlink 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/copy-preserve-mode/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/copy-preserve-mode/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_O1QMK3/file/copy-preserve-mode/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/copy-preserve-mode/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_O1QMK3/file/copy-preserve-mode/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/copy-preserve-mode/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/copy-preserve-mode/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/copy-preserve-mode/.dirs/runtime 1365s # Current umask: 2 1365s # Vector 0 1365s # Vector 1 1365s # Vector 2 1365s # Vector 3 1365s # Vector 4 1365s # Vector 5 1365s # Vector 6 1365s # Vector 7 1365s # Vector 8 1365s # Vector 9 1365s # Vector 10 1365s ok 16 /file/copy-preserve-mode 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/copy-async-with-closures/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/copy-async-with-closures/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_O1QMK3/file/copy-async-with-closures/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/copy-async-with-closures/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_O1QMK3/file/copy-async-with-closures/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/copy-async-with-closures/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/copy-async-with-closures/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/copy-async-with-closures/.dirs/runtime 1365s ok 17 /file/copy-async-with-closures 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/measure/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/measure/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/measure/.dirs/system-config1:/tmp/test_file_O1QMK3/file/measure/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/measure/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/measure/.dirs/system-data1:/tmp/test_file_O1QMK3/file/measure/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/measure/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/measure/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/measure/.dirs/runtime 1365s ok 18 /file/measure 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/measure-async/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/measure-async/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/measure-async/.dirs/system-config1:/tmp/test_file_O1QMK3/file/measure-async/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/measure-async/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/measure-async/.dirs/system-data1:/tmp/test_file_O1QMK3/file/measure-async/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/measure-async/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/measure-async/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/measure-async/.dirs/runtime 1365s ok 19 /file/measure-async 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/load-bytes/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/load-bytes/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/load-bytes/.dirs/system-config1:/tmp/test_file_O1QMK3/file/load-bytes/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/load-bytes/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/load-bytes/.dirs/system-data1:/tmp/test_file_O1QMK3/file/load-bytes/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/load-bytes/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/load-bytes/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/load-bytes/.dirs/runtime 1365s ok 20 /file/load-bytes 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/load-bytes-async/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/load-bytes-async/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_O1QMK3/file/load-bytes-async/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/load-bytes-async/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_O1QMK3/file/load-bytes-async/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/load-bytes-async/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/load-bytes-async/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/load-bytes-async/.dirs/runtime 1365s ok 21 /file/load-bytes-async 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/load-bytes-4gb/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/load-bytes-4gb/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_O1QMK3/file/load-bytes-4gb/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/load-bytes-4gb/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_O1QMK3/file/load-bytes-4gb/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/load-bytes-4gb/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/load-bytes-4gb/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/load-bytes-4gb/.dirs/runtime 1365s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/load-contents-4gb/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/load-contents-4gb/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_O1QMK3/file/load-contents-4gb/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/load-contents-4gb/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_O1QMK3/file/load-contents-4gb/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/load-contents-4gb/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/load-contents-4gb/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/load-contents-4gb/.dirs/runtime 1365s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/load-contents-4gb-async/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/load-contents-4gb-async/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_O1QMK3/file/load-contents-4gb-async/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/load-contents-4gb-async/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_O1QMK3/file/load-contents-4gb-async/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/load-contents-4gb-async/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/load-contents-4gb-async/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/load-contents-4gb-async/.dirs/runtime 1365s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/writev/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/writev/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/writev/.dirs/system-config1:/tmp/test_file_O1QMK3/file/writev/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/writev/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/writev/.dirs/system-data1:/tmp/test_file_O1QMK3/file/writev/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/writev/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/writev/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/writev/.dirs/runtime 1365s ok 25 /file/writev 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/build-attribute-list-for-copy/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/build-attribute-list-for-copy/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_O1QMK3/file/build-attribute-list-for-copy/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/build-attribute-list-for-copy/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_O1QMK3/file/build-attribute-list-for-copy/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/build-attribute-list-for-copy/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/build-attribute-list-for-copy/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/build-attribute-list-for-copy/.dirs/runtime 1365s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 1365s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 1365s # 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::* 1365s # 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::* 1365s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 1365s # Attributes for copy: standard::size,xattr::* 1365s # Attributes for copy: standard::size,unix::mode,xattr::* 1365s ok 26 /file/build-attribute-list-for-copy 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/move_async/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/move_async/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/move_async/.dirs/system-config1:/tmp/test_file_O1QMK3/file/move_async/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/move_async/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/move_async/.dirs/system-data1:/tmp/test_file_O1QMK3/file/move_async/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/move_async/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/move_async/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/move_async/.dirs/runtime 1365s ok 27 /file/move_async 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/move-async-with-closures/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/move-async-with-closures/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_O1QMK3/file/move-async-with-closures/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/move-async-with-closures/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_O1QMK3/file/move-async-with-closures/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/move-async-with-closures/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/move-async-with-closures/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/move-async-with-closures/.dirs/runtime 1365s ok 28 /file/move-async-with-closures 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/query-zero-length-content-type/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/query-zero-length-content-type/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_O1QMK3/file/query-zero-length-content-type/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/query-zero-length-content-type/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_O1QMK3/file/query-zero-length-content-type/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/query-zero-length-content-type/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/query-zero-length-content-type/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/query-zero-length-content-type/.dirs/runtime 1365s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 1365s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 1365s ok 29 /file/query-zero-length-content-type 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/runtime 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/data/applications 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/config 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/config 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/config 1365s ok 30 /file/query-default-handler-file 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/runtime 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/data/applications 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/config 1365s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_O1QMK3/file/query-default-handler-file/.dirs/config to /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/config 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/config 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/config 1365s ok 31 /file/query-default-handler-file-async 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/runtime 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/data/applications 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/config 1365s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_O1QMK3/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/config 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/config 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/config 1365s ok 32 /file/query-default-handler-uri 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/runtime 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/data/applications 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/config 1365s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_O1QMK3/file/query-default-handler-uri/.dirs/config to /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/config 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/config 1365s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_O1QMK3/file/query-default-handler-uri-async/.dirs/config 1365s ok 33 /file/query-default-handler-uri-async 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/enumerator-cancellation/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/enumerator-cancellation/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_O1QMK3/file/enumerator-cancellation/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/enumerator-cancellation/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_O1QMK3/file/enumerator-cancellation/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/enumerator-cancellation/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/enumerator-cancellation/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/enumerator-cancellation/.dirs/runtime 1365s ok 34 /file/enumerator-cancellation 1365s # Start of async-create-delete tests 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/async-create-delete/0/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/0/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_O1QMK3/file/async-create-delete/0/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/0/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_O1QMK3/file/async-create-delete/0/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/0/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/0/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/async-create-delete/0/.dirs/runtime 1365s ok 35 /file/async-create-delete/0 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/async-create-delete/1/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/1/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_O1QMK3/file/async-create-delete/1/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/1/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_O1QMK3/file/async-create-delete/1/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/1/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/1/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/async-create-delete/1/.dirs/runtime 1365s ok 36 /file/async-create-delete/1 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/async-create-delete/10/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/10/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_O1QMK3/file/async-create-delete/10/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/10/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_O1QMK3/file/async-create-delete/10/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/10/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/10/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/async-create-delete/10/.dirs/runtime 1365s ok 37 /file/async-create-delete/10 1365s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/async-create-delete/25/.dirs/home 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/25/.dirs/cache 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_O1QMK3/file/async-create-delete/25/.dirs/system-config2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/25/.dirs/config 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_O1QMK3/file/async-create-delete/25/.dirs/system-data2 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/25/.dirs/data 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/25/.dirs/state 1365s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/async-create-delete/25/.dirs/runtime 1366s ok 38 /file/async-create-delete/25 1366s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/async-create-delete/4096/.dirs/home 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/4096/.dirs/cache 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_O1QMK3/file/async-create-delete/4096/.dirs/system-config2 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/4096/.dirs/config 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_O1QMK3/file/async-create-delete/4096/.dirs/system-data2 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/4096/.dirs/data 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/async-create-delete/4096/.dirs/state 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/async-create-delete/4096/.dirs/runtime 1366s ok 39 /file/async-create-delete/4096 1366s # End of async-create-delete tests 1366s # Start of replace-symlink tests 1366s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/replace-symlink/using-etag/.dirs/home 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/replace-symlink/using-etag/.dirs/cache 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_O1QMK3/file/replace-symlink/using-etag/.dirs/system-config2 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/replace-symlink/using-etag/.dirs/config 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_O1QMK3/file/replace-symlink/using-etag/.dirs/system-data2 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/replace-symlink/using-etag/.dirs/data 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/replace-symlink/using-etag/.dirs/state 1366s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/replace-symlink/using-etag/.dirs/runtime 1366s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 1366s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 1366s # Using temporary directory /tmp/test_file_O1QMK3/g_file_replace_symlink_using_etag_G38BK3 1367s # Executing: glib/file.test 1368s ok 40 /file/replace-symlink/using-etag 1368s # slow test /file/replace-symlink/using-etag executed in 2.00 secs 1368s # End of replace-symlink tests 1368s # Start of replace tests 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/replace/write-only/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/replace/write-only/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/replace/write-only/.dirs/system-config1:/tmp/test_file_O1QMK3/file/replace/write-only/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/replace/write-only/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/replace/write-only/.dirs/system-data1:/tmp/test_file_O1QMK3/file/replace/write-only/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/replace/write-only/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/replace/write-only/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/replace/write-only/.dirs/runtime 1368s # /file/replace/write-only summary: Test various situations for g_file_replace() 1368s # Current umask: 2 1368s # Test 0, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_58HCK3 1368s # Test 1, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_OUICK3 1368s # Test 2, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_P4JCK3 1368s # Test 3, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_0IFCK3 1368s # Test 4, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_UYFCK3 1368s # Test 5, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_EIGCK3 1368s # Test 6, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_NDOCK3 1368s # Test 7, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_RPQCK3 1368s # Test 8, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_M3QCK3 1368s # Test 9, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_QVQCK3 1368s # Test 10, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_9PMCK3 1368s # Test 11, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_JQUCK3 1368s # Test 12, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_56UCK3 1368s # Test 13, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_2WUCK3 1368s # Test 14, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_FKWCK3 1368s # Test 15, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_JDSCK3 1368s # Test 16, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_MXTCK3 1368s # Test 17, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_V60CK3 1368s # Test 18, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_OQ2CK3 1368s # Test 19, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_26XCK3 1368s # Test 20, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_XTZCK3 1368s # Test 21, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_6P7CK3 1368s # Test 22, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_LQ9CK3 1368s # Test 23, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_RG9CK3 1368s # Test 24, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_MD5CK3 1368s # Test 25, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_8S6CK3 1368s # Test 26, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_3GKAK3 1368s # Test 27, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_RXKAK3 1368s # Test 28, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_7GMAK3 1368s # Test 29, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_7MHAK3 1368s # Test 30, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_72HAK3 1368s # Test 31, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_COIAK3 1368s # Test 32, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_IRJAK3 1368s # Test 33, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_2PRAK3 1368s # Test 34, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_S5RAK3 1368s # Test 35, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_YWRAK3 1368s # Test 36, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_XITAK3 1368s # Test 37, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_65OAK3 1368s # Test 38, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_J0WAK3 1368s # Test 39, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_EKYAK3 1368s # Test 40, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_PWTAK3 1368s # Test 41, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_2KVAK3 1368s # Test 42, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_8F3AK3 1368s # Test 43, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_174AK3 1368s # Test 44, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_265AK3 1368s # Test 45, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_KE0AK3 1368s # Test 46, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_P21AK3 1368s # Test 47, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_YT1AK3 1368s # Test 48, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_DZ9AK3 1368s # We do not have CAP_DAC_OVERRIDE or equivalent 1368s ok 41 /file/replace/write-only 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/replace/read-write/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/replace/read-write/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/replace/read-write/.dirs/system-config1:/tmp/test_file_O1QMK3/file/replace/read-write/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/replace/read-write/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/replace/read-write/.dirs/system-data1:/tmp/test_file_O1QMK3/file/replace/read-write/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/replace/read-write/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/replace/read-write/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/replace/read-write/.dirs/runtime 1368s # /file/replace/read-write summary: Test various situations for g_file_replace() 1368s # Current umask: 2 1368s # Test 0, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_7BABK3 1368s # Test 1, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_849AK3 1368s # Test 2, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_DZBBK3 1368s # Test 3, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_V86AK3 1368s # Test 4, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_FX6AK3 1368s # Test 5, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_LH7AK3 1368s # Test 6, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_X78AK3 1368s # Test 7, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_WDHBK3 1368s # Test 8, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_8SHBK3 1368s # Test 9, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_5LHBK3 1368s # Test 10, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_OYCBK3 1368s # Test 11, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_A5EBK3 1368s # Test 12, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_YVEBK3 1368s # Test 13, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_CEFBK3 1368s # Test 14, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_ATNBK3 1368s # Test 15, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_UEJBK3 1368s # Test 16, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_LXKBK3 1368s # Test 17, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_UXLBK3 1368s # Test 18, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_1DUBK3 1368s # Test 19, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_VHPBK3 1368s # Test 20, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_BRRBK3 1368s # Test 21, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_VJ68J3 1368s # Test 22, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_LB88J3 1368s # Test 23, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_DV88J3 1368s # Test 24, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_P438J3 1368s # Test 25, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_KI58J3 1368s # Test 26, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_ZBC9J3 1368s # Test 27, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_FVC9J3 1368s # Test 28, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_8TD9J3 1368s # Test 29, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_FK98J3 1368s # Test 30, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_CZ98J3 1368s # Test 31, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_JT98J3 1368s # Test 32, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_RIB9J3 1368s # Test 33, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_EGJ9J3 1368s # Test 34, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_QWJ9J3 1368s # Test 35, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_HFK9J3 1368s # Test 36, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_OFL9J3 1368s # Test 37, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_3SG9J3 1368s # Test 38, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_YDI9J3 1368s # Test 39, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_OCQ9J3 1368s # Test 40, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_YSR9J3 1368s # Test 41, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_5ZM9J3 1368s # Test 42, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_8LO9J3 1368s # Test 43, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_7OW9J3 1368s # Test 44, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_W4X9J3 1368s # Test 45, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_YCS9J3 1368s # Test 46, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_P6S9J3 1368s # Test 47, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_5OT9J3 1368s # Test 48, using temporary directory /tmp/test_file_O1QMK3/g_file_replace_TRU9J3 1368s # We do not have CAP_DAC_OVERRIDE or equivalent 1368s ok 42 /file/replace/read-write 1368s # End of replace tests 1368s # Start of copy tests 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/copy/progress/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/copy/progress/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/copy/progress/.dirs/system-config1:/tmp/test_file_O1QMK3/file/copy/progress/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/copy/progress/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/copy/progress/.dirs/system-data1:/tmp/test_file_O1QMK3/file/copy/progress/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/copy/progress/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/copy/progress/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/copy/progress/.dirs/runtime 1368s ok 43 /file/copy/progress 1368s # End of copy tests 1368s # Start of writev tests 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/writev/no-bytes-written/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/writev/no-bytes-written/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_O1QMK3/file/writev/no-bytes-written/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/writev/no-bytes-written/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_O1QMK3/file/writev/no-bytes-written/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/writev/no-bytes-written/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/writev/no-bytes-written/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/writev/no-bytes-written/.dirs/runtime 1368s ok 44 /file/writev/no-bytes-written 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/writev/no-vectors/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/writev/no-vectors/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_O1QMK3/file/writev/no-vectors/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/writev/no-vectors/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_O1QMK3/file/writev/no-vectors/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/writev/no-vectors/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/writev/no-vectors/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/writev/no-vectors/.dirs/runtime 1368s ok 45 /file/writev/no-vectors 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/writev/empty-vectors/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/writev/empty-vectors/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_O1QMK3/file/writev/empty-vectors/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/writev/empty-vectors/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_O1QMK3/file/writev/empty-vectors/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/writev/empty-vectors/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/writev/empty-vectors/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/writev/empty-vectors/.dirs/runtime 1368s ok 46 /file/writev/empty-vectors 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/writev/too-big-vectors/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/writev/too-big-vectors/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_O1QMK3/file/writev/too-big-vectors/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/writev/too-big-vectors/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_O1QMK3/file/writev/too-big-vectors/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/writev/too-big-vectors/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/writev/too-big-vectors/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/writev/too-big-vectors/.dirs/runtime 1368s ok 47 /file/writev/too-big-vectors 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/writev/async/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/writev/async/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/writev/async/.dirs/system-config1:/tmp/test_file_O1QMK3/file/writev/async/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/writev/async/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/writev/async/.dirs/system-data1:/tmp/test_file_O1QMK3/file/writev/async/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/writev/async/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/writev/async/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/writev/async/.dirs/runtime 1368s ok 48 /file/writev/async 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/writev/async_all/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/writev/async_all/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/writev/async_all/.dirs/system-config1:/tmp/test_file_O1QMK3/file/writev/async_all/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/writev/async_all/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/writev/async_all/.dirs/system-data1:/tmp/test_file_O1QMK3/file/writev/async_all/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/writev/async_all/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/writev/async_all/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/writev/async_all/.dirs/runtime 1368s ok 49 /file/writev/async_all 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/writev/async_all-empty-vectors/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-empty-vectors/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_O1QMK3/file/writev/async_all-empty-vectors/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-empty-vectors/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_O1QMK3/file/writev/async_all-empty-vectors/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-empty-vectors/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-empty-vectors/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/writev/async_all-empty-vectors/.dirs/runtime 1368s ok 50 /file/writev/async_all-empty-vectors 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/writev/async_all-no-vectors/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-no-vectors/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_O1QMK3/file/writev/async_all-no-vectors/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-no-vectors/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_O1QMK3/file/writev/async_all-no-vectors/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-no-vectors/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-no-vectors/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/writev/async_all-no-vectors/.dirs/runtime 1368s ok 51 /file/writev/async_all-no-vectors 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/writev/async_all-to-big-vectors/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-to-big-vectors/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_O1QMK3/file/writev/async_all-to-big-vectors/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-to-big-vectors/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_O1QMK3/file/writev/async_all-to-big-vectors/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-to-big-vectors/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-to-big-vectors/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/writev/async_all-to-big-vectors/.dirs/runtime 1368s ok - glib/file.test 1368s # Running test: glib/gdbus-auth.test 1368s ok - glib/gdbus-auth.test 1368s # Running test: glib/io-channel-basic.test 1368s ok 52 /file/writev/async_all-to-big-vectors 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/writev/async_all-cancellation/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-cancellation/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_O1QMK3/file/writev/async_all-cancellation/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-cancellation/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_O1QMK3/file/writev/async_all-cancellation/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-cancellation/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/writev/async_all-cancellation/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/writev/async_all-cancellation/.dirs/runtime 1368s ok 53 /file/writev/async_all-cancellation 1368s # End of writev tests 1368s # Start of from-uri tests 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/from-uri/ignores-query-string/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/from-uri/ignores-query-string/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_O1QMK3/file/from-uri/ignores-query-string/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/from-uri/ignores-query-string/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_O1QMK3/file/from-uri/ignores-query-string/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/from-uri/ignores-query-string/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/from-uri/ignores-query-string/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/from-uri/ignores-query-string/.dirs/runtime 1368s ok 54 /file/from-uri/ignores-query-string 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_O1QMK3/file/from-uri/ignores-fragment/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_O1QMK3/file/from-uri/ignores-fragment/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_O1QMK3/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_O1QMK3/file/from-uri/ignores-fragment/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_O1QMK3/file/from-uri/ignores-fragment/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_O1QMK3/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_O1QMK3/file/from-uri/ignores-fragment/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_O1QMK3/file/from-uri/ignores-fragment/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_O1QMK3/file/from-uri/ignores-fragment/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_O1QMK3/file/from-uri/ignores-fragment/.dirs/runtime 1368s ok 55 /file/from-uri/ignores-fragment 1368s # End of from-uri tests 1368s # End of file tests 1368s TAP version 14 1368s # random seed: R02Sbbf38bd9a4e13a6b8931c332a94527a8 1368s 1..5 1368s # Start of gdbus tests 1368s # Start of auth tests 1368s # Start of client tests 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/EXTERNAL/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/EXTERNAL/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/EXTERNAL/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/EXTERNAL/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/EXTERNAL/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/EXTERNAL/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/EXTERNAL/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/EXTERNAL/.dirs/runtime 1368s ok 1 /gdbus/auth/client/EXTERNAL 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 1368s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 1368s # End of client tests 1368s # Start of server tests 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/ANONYMOUS/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/ANONYMOUS/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/ANONYMOUS/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/ANONYMOUS/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/ANONYMOUS/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/ANONYMOUS/.dirs/runtime 1368s ok 3 /gdbus/auth/server/ANONYMOUS 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/EXTERNAL/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/EXTERNAL/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/EXTERNAL/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/EXTERNAL/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/EXTERNAL/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/EXTERNAL/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/EXTERNAL/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/EXTERNAL/.dirs/runtime 1368s ok 4 /gdbus/auth/server/EXTERNAL 1368s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 1368s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_O5DAK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 1368s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 1368s # End of server tests 1368s # End of auth tests 1368s # End of gdbus tests 1368s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1368s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1368s TAP version 14 1368s # random seed: R02S9ba7314191cbde000df8364dfb167f22 1368s 1..1 1368s # Start of gio tests 1368s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1368s # random seed: R02S415f9e9d54c149cd99b4c0093aa03dd1 1368s # GLib-DEBUG: io-channel-basic: child writing 8+3453 bytes to 6 1368s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1368s # GLib-DEBUG: io-channel-basic: ...from 5: 3453 bytes 1368s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1368s # GLib-DEBUG: io-channel-basic: child writing 8+3794 bytes to 6 1368s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1368s # GLib-DEBUG: io-channel-basic: ...from 5: 3794 bytes 1368s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1369s # GLib-DEBUG: io-channel-basic: child writing 8+4270 bytes to 6 1369s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1369s # GLib-DEBUG: io-channel-basic: ...from 5: 4270 bytes 1369s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1369s # GLib-DEBUG: io-channel-basic: child writing 8+3152 bytes to 6 1369s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1369s # GLib-DEBUG: io-channel-basic: ...from 5: 3152 bytes 1369s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1369s # GLib-DEBUG: io-channel-basic: child writing 8+831 bytes to 6 1369s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1369s # GLib-DEBUG: io-channel-basic: ...from 5: 831 bytes 1369s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1369s # GLib-DEBUG: io-channel-basic: child writing 8+2108 bytes to 6 1369s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1369s # GLib-DEBUG: io-channel-basic: ...from 5: 2108 bytes 1369s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1370s # GLib-DEBUG: io-channel-basic: child writing 8+4133 bytes to 6 1370s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1370s # GLib-DEBUG: io-channel-basic: ...from 5: 4133 bytes 1370s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1370s # GLib-DEBUG: io-channel-basic: child writing 8+2924 bytes to 6 1370s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1370s # GLib-DEBUG: io-channel-basic: ...from 5: 2924 bytes 1370s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1370s # GLib-DEBUG: io-channel-basic: child writing 8+2030 bytes to 6 1370s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1370s # GLib-DEBUG: io-channel-basic: ...from 5: 2030 bytes 1370s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1370s # GLib-DEBUG: io-channel-basic: child writing 8+1387 bytes to 6 1370s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1370s # GLib-DEBUG: io-channel-basic: ...from 5: 1387 bytes 1370s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1371s # GLib-DEBUG: io-channel-basic: child writing 8+2092 bytes to 6 1371s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1371s # GLib-DEBUG: io-channel-basic: ...from 5: 2092 bytes 1371s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1371s # GLib-DEBUG: io-channel-basic: child writing 8+3309 bytes to 6 1371s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1371s # GLib-DEBUG: io-channel-basic: ...from 5: 3309 bytes 1371s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1371s # GLib-DEBUG: io-channel-basic: child writing 8+685 bytes to 6 1371s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1371s # GLib-DEBUG: io-channel-basic: ...from 5: 685 bytes 1371s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1371s # GLib-DEBUG: io-channel-basic: child writing 8+3907 bytes to 6 1371s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1371s # GLib-DEBUG: io-channel-basic: ...from 5: 3907 bytes 1371s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1372s # GLib-DEBUG: io-channel-basic: child writing 8+4390 bytes to 6 1372s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1372s # GLib-DEBUG: io-channel-basic: ...from 5: 4390 bytes 1372s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1372s # GLib-DEBUG: io-channel-basic: child writing 8+1801 bytes to 6 1372s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1372s # GLib-DEBUG: io-channel-basic: ...from 5: 1801 bytes 1372s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1372s # GLib-DEBUG: io-channel-basic: child writing 8+1108 bytes to 6 1372s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1372s # GLib-DEBUG: io-channel-basic: ...from 5: 1108 bytes 1372s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1372s # Executing: glib/io-channel-basic.test 1373s # GLib-DEBUG: io-channel-basic: child writing 8+1850 bytes to 6 1373s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1373s # GLib-DEBUG: io-channel-basic: ...from 5: 1850 bytes 1373s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1373s # GLib-DEBUG: io-channel-basic: child writing 8+1698 bytes to 6 1373s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1373s # GLib-DEBUG: io-channel-basic: ...from 5: 1698 bytes 1373s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1373s # GLib-DEBUG: io-channel-basic: child writing 8+221 bytes to 6 1373s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1373s # GLib-DEBUG: io-channel-basic: ...from 5: 221 bytes 1373s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1373s # GLib-DEBUG: io-channel-basic: child writing 8+1970 bytes to 6 1373s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 1373s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 1373s # GLib-DEBUG: io-channel-basic: ...from 5: 1970 bytes 1373s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1373s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1373s # random seed: R02Sd16ace5d320576d6c9c286962625a6b5 1373s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1373s # random seed: R02S9526a729c960d310309657e982719783 1373s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1373s # random seed: R02Sf59dc51fc4801b468cf5e304f699795a 1373s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1373s # random seed: R02S60ef58bbedd04c97941a755f792de3fb 1373s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1373s # random seed: R02S8768fc728b65c43b15986695ce19dd0a 1374s # GLib-DEBUG: io-channel-basic: child writing 8+783 bytes to 9 1374s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 8: 783 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+328 bytes to 15 1374s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 14: 328 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+4452 bytes to 11 1374s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 10: 4452 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+1699 bytes to 13 1374s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 12: 1699 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+2988 bytes to 17 1374s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 16: 2988 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+3837 bytes to 9 1374s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 8: 3837 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+1239 bytes to 15 1374s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 14: 1239 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+3347 bytes to 13 1374s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 12: 3347 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+362 bytes to 17 1374s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 16: 362 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+4396 bytes to 11 1374s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 10: 4396 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+2038 bytes to 9 1374s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 8: 2038 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+1690 bytes to 15 1374s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 14: 1690 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+1104 bytes to 17 1374s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 16: 1104 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+1968 bytes to 13 1374s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 12: 1968 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+4074 bytes to 11 1374s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 10: 4074 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+714 bytes to 9 1374s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 8: 714 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+31 bytes to 17 1374s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 16: 31 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+2893 bytes to 13 1374s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 12: 2893 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+1109 bytes to 15 1374s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 14: 1109 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1374s # GLib-DEBUG: io-channel-basic: child writing 8+3951 bytes to 11 1374s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1374s # GLib-DEBUG: io-channel-basic: ...from 10: 3951 bytes 1374s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+4882 bytes to 9 1375s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 8: 4882 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+4232 bytes to 17 1375s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 16: 4232 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+2409 bytes to 15 1375s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 14: 2409 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+1233 bytes to 13 1375s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 12: 1233 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+3041 bytes to 11 1375s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 10: 3041 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+2873 bytes to 9 1375s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 8: 2873 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+1070 bytes to 17 1375s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 16: 1070 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+4745 bytes to 11 1375s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 10: 4745 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+4830 bytes to 15 1375s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 14: 4830 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+4732 bytes to 13 1375s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 12: 4732 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+1358 bytes to 9 1375s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 8: 1358 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+2965 bytes to 17 1375s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 16: 2965 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+1434 bytes to 13 1375s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 12: 1434 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+4247 bytes to 11 1375s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 10: 4247 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+768 bytes to 15 1375s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 14: 768 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+3078 bytes to 9 1375s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 8: 3078 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+3313 bytes to 17 1375s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 16: 3313 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+3448 bytes to 13 1375s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 12: 3448 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+2782 bytes to 15 1375s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 14: 2782 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1375s # GLib-DEBUG: io-channel-basic: child writing 8+2026 bytes to 11 1375s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1375s # GLib-DEBUG: io-channel-basic: ...from 10: 2026 bytes 1375s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+4317 bytes to 9 1376s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 8: 4317 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+141 bytes to 17 1376s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 16: 141 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+513 bytes to 13 1376s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 12: 513 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+2293 bytes to 11 1376s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 10: 2293 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+2630 bytes to 15 1376s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 14: 2630 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+1911 bytes to 9 1376s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 8: 1911 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+918 bytes to 17 1376s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 16: 918 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+2915 bytes to 15 1376s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 14: 2915 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+2234 bytes to 13 1376s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 12: 2234 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+4054 bytes to 11 1376s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 10: 4054 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+2437 bytes to 9 1376s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 8: 2437 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+750 bytes to 17 1376s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 16: 750 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+2114 bytes to 13 1376s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 12: 2114 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+2669 bytes to 15 1376s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 14: 2669 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+2051 bytes to 11 1376s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 10: 2051 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+3460 bytes to 9 1376s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 8: 3460 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+2573 bytes to 17 1376s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 16: 2573 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+4459 bytes to 13 1376s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 12: 4459 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+1034 bytes to 15 1376s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 14: 1034 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1376s # GLib-DEBUG: io-channel-basic: child writing 8+3600 bytes to 11 1376s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1376s # GLib-DEBUG: io-channel-basic: ...from 10: 3600 bytes 1376s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+2725 bytes to 9 1377s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 8: 2725 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+2188 bytes to 17 1377s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 16: 2188 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+4826 bytes to 13 1377s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 12: 4826 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+643 bytes to 15 1377s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 14: 643 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+291 bytes to 11 1377s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 10: 291 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+1031 bytes to 9 1377s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 8: 1031 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+3987 bytes to 13 1377s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 12: 3987 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+1311 bytes to 15 1377s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 14: 1311 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+1279 bytes to 17 1377s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 16: 1279 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+984 bytes to 11 1377s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 10: 984 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+137 bytes to 9 1377s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 8: 137 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+1863 bytes to 15 1377s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 14: 1863 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+4453 bytes to 13 1377s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 12: 4453 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+3173 bytes to 17 1377s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 16: 3173 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1377s # GLib-DEBUG: io-channel-basic: child writing 8+4134 bytes to 11 1377s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 10: 4134 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1377s # Executing: glib/io-channel-basic.test 1377s # GLib-DEBUG: io-channel-basic: child writing 8+4450 bytes to 9 1377s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1377s # GLib-DEBUG: io-channel-basic: ...from 8: 4450 bytes 1377s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+177 bytes to 17 1378s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 16: 177 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+1260 bytes to 13 1378s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 12: 1260 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+3151 bytes to 15 1378s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 14: 3151 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+3096 bytes to 11 1378s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 10: 3096 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+2821 bytes to 9 1378s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 8: 2821 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+3922 bytes to 13 1378s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 12: 3922 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+2410 bytes to 15 1378s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 14: 2410 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+2894 bytes to 17 1378s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 16: 2894 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+366 bytes to 11 1378s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 10: 366 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+752 bytes to 9 1378s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 8: 752 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+2074 bytes to 15 1378s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 14: 2074 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+1652 bytes to 13 1378s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 12: 1652 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+1184 bytes to 17 1378s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 16: 1184 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+4755 bytes to 11 1378s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 10: 4755 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+4667 bytes to 9 1378s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 8: 4667 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+2622 bytes to 15 1378s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 14: 2622 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+1309 bytes to 13 1378s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 12: 1309 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+3812 bytes to 11 1378s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 10: 3812 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1378s # GLib-DEBUG: io-channel-basic: child writing 8+2986 bytes to 17 1378s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1378s # GLib-DEBUG: io-channel-basic: ...from 16: 2986 bytes 1378s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+376 bytes to 9 1379s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 8: 376 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+1085 bytes to 13 1379s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 12: 1085 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+3816 bytes to 15 1379s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 14: 3816 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+3993 bytes to 11 1379s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 10: 3993 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+63 bytes to 17 1379s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 16: 63 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+4218 bytes to 9 1379s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 8: 4218 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+3728 bytes to 13 1379s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 12: 3728 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+660 bytes to 15 1379s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 14: 660 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+3481 bytes to 11 1379s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 10: 3481 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+1757 bytes to 17 1379s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 16: 1757 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+2842 bytes to 9 1379s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 8: 2842 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+1708 bytes to 13 1379s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 12: 1708 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+69 bytes to 15 1379s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 14: 69 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+3873 bytes to 11 1379s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 10: 3873 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+4134 bytes to 17 1379s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 16: 4134 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+3082 bytes to 9 1379s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 1379s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 1379s # GLib-DEBUG: io-channel-basic: ...from 8: 3082 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+2421 bytes to 13 1379s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 12: 2421 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+1341 bytes to 11 1379s # GLib-DEBUG: io-channel-basic: child writing 8+754 bytes to 15 1379s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 1379s # GLib-DEBUG: io-channel-basic: ...from 10: HUP IN 1379s # GLib-DEBUG: io-channel-basic: ...from 10: 1341 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1379s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 14: 754 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1379s # GLib-DEBUG: io-channel-basic: child writing 8+627 bytes to 17 1379s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1379s # GLib-DEBUG: io-channel-basic: ...from 16: 627 bytes 1379s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1380s # GLib-DEBUG: io-channel-basic: child writing 8+2835 bytes to 13 1380s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 1380s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 1380s # GLib-DEBUG: io-channel-basic: ...from 12: 2835 bytes 1380s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1380s # GLib-DEBUG: io-channel-basic: child writing 8+1248 bytes to 15 1380s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1380s # GLib-DEBUG: io-channel-basic: ...from 14: 1248 bytes 1380s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1380s # GLib-DEBUG: io-channel-basic: child writing 8+3839 bytes to 17 1380s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1380s # GLib-DEBUG: io-channel-basic: ...from 16: 3839 bytes 1380s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1380s # GLib-DEBUG: io-channel-basic: child writing 8+3129 bytes to 15 1380s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 1380s # GLib-DEBUG: io-channel-basic: ...from 14: HUP IN 1380s # GLib-DEBUG: io-channel-basic: ...from 14: 3129 bytes 1380s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1380s # GLib-DEBUG: io-channel-basic: child writing 8+1398 bytes to 17 1380s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 1380s # GLib-DEBUG: io-channel-basic: ...from 16: HUP IN 1380s # GLib-DEBUG: io-channel-basic: ...from 16: 1398 bytes 1380s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1380s ok 1 /gio/io-basics 1380s # slow test /gio/io-basics executed in 12.13 secs 1380s # End of gio tests 1380s ok - glib/io-channel-basic.test 1380s # Running test: glib/callable-info.test 1380s TAP version 14 1380s # random seed: R02S2861038cc74813ff45ec1095a28686ca 1380s 1..6 1380s # Start of callable-info tests 1380s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_NJ94J3/callable-info/sync-function/.dirs/home 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_NJ94J3/callable-info/sync-function/.dirs/cache 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_NJ94J3/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_NJ94J3/callable-info/sync-function/.dirs/system-config2 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_NJ94J3/callable-info/sync-function/.dirs/config 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_NJ94J3/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_NJ94J3/callable-info/sync-function/.dirs/system-data2 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_NJ94J3/callable-info/sync-function/.dirs/data 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_NJ94J3/callable-info/sync-function/.dirs/state 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_NJ94J3/callable-info/sync-function/.dirs/runtime 1380s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1380s ok 1 /callable-info/sync-function 1380s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_NJ94J3/callable-info/async-function/.dirs/home 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_NJ94J3/callable-info/async-function/.dirs/cache 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_NJ94J3/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_NJ94J3/callable-info/async-function/.dirs/system-config2 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_NJ94J3/callable-info/async-function/.dirs/config 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_NJ94J3/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_NJ94J3/callable-info/async-function/.dirs/system-data2 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_NJ94J3/callable-info/async-function/.dirs/data 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_NJ94J3/callable-info/async-function/.dirs/state 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_NJ94J3/callable-info/async-function/.dirs/runtime 1380s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1380s ok 2 /callable-info/async-function 1380s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_NJ94J3/callable-info/is-method/.dirs/home 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_NJ94J3/callable-info/is-method/.dirs/cache 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_NJ94J3/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_NJ94J3/callable-info/is-method/.dirs/system-config2 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_NJ94J3/callable-info/is-method/.dirs/config 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_NJ94J3/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_NJ94J3/callable-info/is-method/.dirs/system-data2 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_NJ94J3/callable-info/is-method/.dirs/data 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_NJ94J3/callable-info/is-method/.dirs/state 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_NJ94J3/callable-info/is-method/.dirs/runtime 1380s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1380s ok 3 /callable-info/is-method 1380s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_NJ94J3/callable-info/static-method/.dirs/home 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_NJ94J3/callable-info/static-method/.dirs/cache 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_NJ94J3/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_NJ94J3/callable-info/static-method/.dirs/system-config2 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_NJ94J3/callable-info/static-method/.dirs/config 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_NJ94J3/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_NJ94J3/callable-info/static-method/.dirs/system-data2 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_NJ94J3/callable-info/static-method/.dirs/data 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_NJ94J3/callable-info/static-method/.dirs/state 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_NJ94J3/callable-info/static-method/.dirs/runtime 1380s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1380s ok 4 /callable-info/static-method 1380s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_NJ94J3/callable-info/static-vfunc/.dirs/home 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_NJ94J3/callable-info/static-vfunc/.dirs/cache 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_NJ94J3/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_NJ94J3/callable-info/static-vfunc/.dirs/system-config2 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_NJ94J3/callable-info/static-vfunc/.dirs/config 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_NJ94J3/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_NJ94J3/callable-info/static-vfunc/.dirs/system-data2 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_NJ94J3/callable-info/static-vfunc/.dirs/data 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_NJ94J3/callable-info/static-vfunc/.dirs/state 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_NJ94J3/callable-info/static-vfunc/.dirs/runtime 1380s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1380s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 1380s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 1380s # Start of platform tests 1380s # Start of unix tests 1380s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_NJ94J3/callable-info/platform/unix/is-method/.dirs/home 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_NJ94J3/callable-info/platform/unix/is-method/.dirs/cache 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_NJ94J3/callable-info/platform/unix/is-method/.dirs/system-config1:/tmp/test_callable-info_NJ94J3/callable-info/platform/unix/is-method/.dirs/system-config2 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_NJ94J3/callable-info/platform/unix/is-method/.dirs/config 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_NJ94J3/callable-info/platform/unix/is-method/.dirs/system-data1:/tmp/test_callable-info_NJ94J3/callable-info/platform/unix/is-method/.dirs/system-data2 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_NJ94J3/callable-info/platform/unix/is-method/.dirs/data 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_NJ94J3/callable-info/platform/unix/is-method/.dirs/state 1380s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_NJ94J3/callable-info/platform/unix/is-method/.dirs/runtime 1380s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1380s # Checking DesktopAppInfo in Gio 1380s # Checking DesktopAppInfo in GioUnix 1380s ok - glib/callable-info.test 1380s # Running test: glib/performance-threaded.test 1380s ok 6 /callable-info/platform/unix/is-method 1380s # End of unix tests 1380s # End of platform tests 1380s # End of callable-info tests 1380s Running test "liststore-is-a" 1381s 6943 runs, min/avg/max = 0.141/0.143/0.281 ms 1381s Running test "liststore-interface-peek" 1382s 8992 runs, min/avg/max = 0.108/0.110/0.213 ms 1382s Running test "liststore-interface-peek-same" 1382s # Executing: glib/performance-threaded.test 1383s 8982 runs, min/avg/max = 0.108/0.111/0.239 ms 1383s ok - glib/performance-threaded.test 1383s # Running test: glib/type.test 1383s TAP version 14 1383s # random seed: R02Sd5238073ce52b4a54201d225c451bf67 1383s 1..6 1383s # Start of type tests 1383s ok 1 /type/registration-serial 1383s ok 2 /type/interface-prerequisite 1383s ok 3 /type/interface-check 1383s ok 4 /type/next-base 1383s ok 5 /type/is-a 1383s # Invalid types can’t be queried. 1383s # Unclassed types can’t be queried. 1383s ok 6 /type/query 1383s # End of type tests 1383s ok - glib/type.test 1383s # Running test: glib/base64.test 1383s TAP version 14 1383s # random seed: R02Sa12d4656f55646e983a7ac4649e1c1ad 1383s 1..28 1383s # Start of base64 tests 1383s ok 1 /base64/encode 1383s ok 2 /base64/decode 1383s ok 3 /base64/decode-inplace 1383s ok 4 /base64/encode-decode 1383s # Start of full tests 1383s ok 5 /base64/full/1 1383s ok 6 /base64/full/2 1383s ok 7 /base64/full/3 1383s ok 8 /base64/full/4 1383s # End of full tests 1383s # Start of encode tests 1383s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1383s ok 9 /base64/encode/empty 1383s # Start of incremental tests 1383s # Start of small-block tests 1383s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1383s ok 10 /base64/encode/incremental/small-block/1 1383s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1383s ok 11 /base64/encode/incremental/small-block/2 1383s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1383s ok 12 /base64/encode/incremental/small-block/3 1383s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1383s ok 13 /base64/encode/incremental/small-block/4 1383s # End of small-block tests 1383s # End of incremental tests 1383s # End of encode tests 1383s # Start of incremental tests 1383s # Start of nobreak tests 1383s ok 14 /base64/incremental/nobreak/1 1383s ok 15 /base64/incremental/nobreak/2 1383s ok 16 /base64/incremental/nobreak/3 1383s ok 17 /base64/incremental/nobreak/4-a 1383s ok 18 /base64/incremental/nobreak/4-b 1383s ok 19 /base64/incremental/nobreak/4-c 1383s # End of nobreak tests 1383s # Start of break tests 1383s ok - glib/base64.test 1383s # Running test: glib/bytes.test 1383s ok - glib/bytes.test 1383s # Running test: glib/null-settings-backend.test 1383s ok - glib/null-settings-backend.test 1383s ok 20 /base64/incremental/break/1 1383s ok 21 /base64/incremental/break/2 1383s ok 22 /base64/incremental/break/3 1383s # End of break tests 1383s # Start of smallblock tests 1383s ok 23 /base64/incremental/smallblock/1 1383s ok 24 /base64/incremental/smallblock/2 1383s ok 25 /base64/incremental/smallblock/3 1383s ok 26 /base64/incremental/smallblock/4 1383s # End of smallblock tests 1383s # End of incremental tests 1383s # Start of decode tests 1383s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1383s ok 27 /base64/decode/empty 1383s # End of decode tests 1383s # Start of encode-decode tests 1383s # Vector 0: 1383s # Vector 1: f 1383s # Vector 2: fo 1383s # Vector 3: foo 1383s # Vector 4: foob 1383s # Vector 5: fooba 1383s # Vector 6: foobar 1383s ok 28 /base64/encode-decode/rfc4648 1383s # End of encode-decode tests 1383s # End of base64 tests 1383s TAP version 14 1383s # random seed: R02Sc138b7afc746ec26aeeb29d917dc2737 1383s 1..21 1383s # Start of bytes tests 1383s ok 1 /bytes/new 1383s ok 2 /bytes/new-take 1383s ok 3 /bytes/new-static 1383s ok 4 /bytes/new-with-free-func 1383s ok 5 /bytes/new-from-bytes 1383s ok 6 /bytes/new-from-bytes-slice 1383s ok 7 /bytes/new-from-bytes-shared-ref 1383s ok 8 /bytes/hash 1383s ok 9 /bytes/equal 1383s ok 10 /bytes/compare 1383s ok 11 /bytes/null 1383s ok 12 /bytes/get-region 1383s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 1383s ok 13 /bytes/unref-null 1383s # Start of to-data tests 1383s ok 14 /bytes/to-data/transferred 1383s ok 15 /bytes/to-data/two-refs 1383s ok 16 /bytes/to-data/non-malloc 1383s ok 17 /bytes/to-data/different-free-func 1383s # End of to-data tests 1383s # Start of to-array tests 1383s ok 18 /bytes/to-array/transferred 1383s ok 19 /bytes/to-array/two-refs 1383s ok 20 /bytes/to-array/non-malloc 1383s # Start of transferred tests 1383s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 1383s ok 21 /bytes/to-array/transferred/oversize # SKIP Skipping test as guint is not smaller than gsize 1383s # End of transferred tests 1383s # End of to-array tests 1383s # End of bytes tests 1383s TAP version 14 1383s # random seed: R02S3537d9f891235afc0bfb4037cee73c17 1383s 1..1 1383s # Start of null-settings-backend tests 1383s ok 1 /null-settings-backend/extension-point-registered 1383s # End of null-settings-backend tests 1383s TAP version 14 1383s # random seed: R02S0fc17edad02cee315cfa057238868bf2 1383s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1383s 1..3 1383s # Start of volumemonitor tests 1383s # Running test: glib/volumemonitor.test 1383s ok - glib/volumemonitor.test 1383s # Running test: glib/gi-compile-repository.py.test 1383s ok 1 /volumemonitor/connected_drives 1383s ok 2 /volumemonitor/volumes 1383s ok 3 /volumemonitor/mounts 1383s # End of volumemonitor tests 1383s TAP version 13 1383s ok 1 __main__.TestGICompileRepository.test_open_failure 1383s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1383s # gi-compile-repository: /usr/bin/gi-compile-repository 1383s # tmpdir: /tmp/tmp893u5vfe 1383s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmp893u5vfe/invalid.typelib'] 1383s # Return code: 1 1383s # Output: 1383s # 1383s # Error: 1383s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.gir”: No such file or directory 1383s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 1383s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1383s # gi-compile-repository: /usr/bin/gi-compile-repository 1383s # tmpdir: /tmp/tmpexcx0osy 1383s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmpexcx0osy/GLib-2.typelib'] 1383s # Return code: 0 1383s # Output: 1383s # 1383s # Error: 1383s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 1383s # gi-compile-repository: /usr/bin/gi-compile-repository 1383s # tmpdir: /tmp/tmpmm_oy5tm 1383s # 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'] 1383s # Return code: 1 1383s # Output: 1383s # 1383s # Error: 1383s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1383s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 1383s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1383s # gi-compile-repository: /usr/bin/gi-compile-repository 1383s # tmpdir: /tmp/tmp6x7recx_ 1383s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmp6x7recx_/GObject-2.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1383s # Return code: 0 1383s # Output: 1383s # 1383s # Error: 1384s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 1384s # gi-compile-repository: /usr/bin/gi-compile-repository 1384s # tmpdir: /tmp/tmpfbra26pd 1384s # 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'] 1384s # Return code: 1 1384s # Output: 1384s # 1384s # Error: 1384s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1384s ok 6 __main__.TestGICompileRepositoryForGio.test_compile 1384s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1384s # gi-compile-repository: /usr/bin/gi-compile-repository 1384s # tmpdir: /tmp/tmp_nnr2nal 1384s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmp_nnr2nal/Gio-2.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1384s # Return code: 0 1384s # Output: 1384s # 1384s # Error: 1385s ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 1385s # gi-compile-repository: /usr/bin/gi-compile-repository 1385s # tmpdir: /tmp/tmpzm9pv_uj 1385s # 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'] 1385s # Return code: 1 1385s # Output: 1385s # 1385s # Error: 1385s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1385s 1..7 1385s ok - glib/gi-compile-repository.py.test 1385s # Running test: glib/testfilemonitor.test 1385s TAP version 14 1385s # random seed: R02Sf446ec63ae71be1bb3a0cf233bcc7e92 1385s 1..8 1385s # Start of monitor tests 1385s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1385s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1385s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1385s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1385s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1385s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1385s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1385s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1385s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1385s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1385s # Start of file tests 1385s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1385s # End of file tests 1385s # End of monitor tests 1385s ok - glib/testfilemonitor.test 1385s # Running test: glib/gnotification.test 1385s TAP version 14 1385s # random seed: R02Sb073491dcbbe88acced717fdd969254f 1385s 1..2 1385s # Start of gnotification tests 1385s ok 1 /gnotification/basic 1385s ok 2 /gnotification/properties 1385s # End of gnotification tests 1385s ok - glib/gnotification.test 1385s # Running test: glib/string.test 1385s TAP version 14 1385s # random seed: R02S6ce9208934ecb70ea90df38975b9ebf2 1385s 1..25 1385s # Start of string tests 1385s ok 1 /string/chunks 1385s ok 2 /string/chunk-insert 1385s ok 3 /string/new 1385s ok 4 /string/printf 1385s ok 5 /string/assign 1385s ok 6 /string/append-c 1385s ok 7 /string/append 1385s ok 8 /string/append-vprintf 1385s ok 9 /string/prepend-c 1385s ok - glib/string.test 1385s # Running test: glib/gdbus-sasl.test 1385s ok - glib/gdbus-sasl.test 1385s # Running test: glib/utf8-validate.test 1385s ok - glib/utf8-validate.test 1385s ok 10 /string/prepend 1385s ok 11 /string/insert 1385s ok 12 /string/insert-unichar 1385s ok 13 /string/equal 1385s ok 14 /string/truncate 1385s ok 15 /string/overwrite 1385s ok 16 /string/nul-handling 1385s ok 17 /string/up-down 1385s ok 18 /string/set-size 1385s ok 19 /string/to-bytes 1385s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 1385s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 1385s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 1385s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 1385s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 1385s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 1385s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 1385s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 1385s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 1385s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 1385s # 5: Replacing "o" with "" (limit 0) in "food for foals" 1385s # -> 4 replacements, "fd fr fals" 1385s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 1385s # -> 3 replacements, "aaaaaaaaa" 1385s # 7: Replacing "a" with "" (limit 0) in "aaa" 1385s # -> 3 replacements, "" 1385s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 1385s # -> 1 replacements, "bba" 1385s # 9: Replacing "" with "bar" (limit 0) in "foo" 1385s # -> 4 replacements, "barfbarobarobar" 1385s # 10: Replacing "" with "bar" (limit 1) in "foo" 1385s # -> 1 replacements, "barfoo" 1385s # 11: Replacing "" with "bar" (limit 2) in "foo" 1385s # -> 2 replacements, "barfbaroo" 1385s # 12: Replacing "" with "bar" (limit 3) in "foo" 1385s # -> 3 replacements, "barfbarobaro" 1385s # 13: Replacing "" with "bar" (limit 4) in "foo" 1385s # -> 4 replacements, "barfbarobarobar" 1385s # 14: Replacing "" with "bar" (limit 5) in "foo" 1385s # -> 4 replacements, "barfbarobarobar" 1385s # 15: Replacing "" with "x" (limit 0) in "" 1385s # -> 1 replacements, "x" 1385s # 16: Replacing "" with "" (limit 0) in "" 1385s # -> 1 replacements, "" 1385s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 1385s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 1385s ok 20 /string/replace 1385s ok 21 /string/steal 1385s ok 22 /string/new-take 1385s ok 23 /string/copy 1385s ok 24 /string/sized-new 1385s # Start of new-take tests 1385s ok 25 /string/new-take/null 1385s # End of new-take tests 1385s # End of string tests 1385s TAP version 14 1385s # random seed: R02S114cc2cededc39c7171f19b1851efc6a 1385s 1..1 1385s # Start of gdbus tests 1385s # Start of sasl tests 1385s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_28DCK3/gdbus/sasl/server/.dirs/home 1385s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_28DCK3/gdbus/sasl/server/.dirs/cache 1385s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_28DCK3/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_28DCK3/gdbus/sasl/server/.dirs/system-config2 1385s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_28DCK3/gdbus/sasl/server/.dirs/config 1385s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_28DCK3/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_28DCK3/gdbus/sasl/server/.dirs/system-data2 1385s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_28DCK3/gdbus/sasl/server/.dirs/data 1385s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_28DCK3/gdbus/sasl/server/.dirs/state 1385s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_28DCK3/gdbus/sasl/server/.dirs/runtime 1385s # New handshake: EXTERNAL with incorrect initial response 1385s # C:“AUTH EXTERNAL 30” 1385s # Expect: /^REJECTED.*$/ 1385s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1385s # New handshake: EXTERNAL without initial response, failing to authenticate 1385s # C:“AUTH EXTERNAL” 1385s # Expect: /^DATA$/ 1385s # S:“DATA” 1385s # C:“DATA 30” 1385s # Expect: /^REJECTED.*$/ 1385s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1385s # New handshake: EXTERNAL with initial response 1385s # C:“AUTH EXTERNAL 31303030” 1385s # Expect: /^OK [0-9a-f]+$/ 1385s # S:“OK 64f5131a99e4dbfecf7c8efc698711fd” 1385s # New handshake: EXTERNAL without initial response 1385s # C:“AUTH EXTERNAL” 1385s # Expect: /^DATA$/ 1385s # S:“DATA” 1385s # C:“DATA 31303030” 1385s # Expect: /^OK [0-9a-f]+$/ 1385s # S:“OK 64f5131a99e4dbfecf7c8efc698711fd” 1385s # New handshake: EXTERNAL with empty authorization identity 1385s # C:“AUTH EXTERNAL” 1385s # Expect: /^DATA$/ 1385s # S:“DATA” 1385s # C:“DATA” 1385s # Expect: /^OK [0-9a-f]+$/ 1385s # S:“OK 64f5131a99e4dbfecf7c8efc698711fd” 1385s # New handshake: EXTERNAL with empty authorization identity and whitespace 1385s # C:“AUTH EXTERNAL” 1385s # Expect: /^DATA$/ 1385s # S:“DATA” 1385s # C:“DATA ” 1385s # Expect: /^OK [0-9a-f]+$/ 1385s # S:“OK 64f5131a99e4dbfecf7c8efc698711fd” 1385s ok 1 /gdbus/sasl/server 1385s # End of sasl tests 1385s # End of gdbus tests 1385s TAP version 14 1385s # random seed: R02Sc30d961927a21453953a67401dfbdf9d 1385s 1..238 1385s # Start of utf8 tests 1385s # Vector 0 1385s # Vector 1 1385s # Vector 2 1385s # Vector 3 1385s # Vector 4 1385s # Vector 5 1385s # Vector 6 1385s # Vector 7 1385s # Vector 8 1385s # Vector 9 1385s # Vector 10 1385s # Vector 11 1385s # Vector 12 1385s # Vector 13 1385s # Vector 14 1385s # Vector 15 1385s # Vector 16 1385s # Vector 17 1385s # Vector 18 1385s # Vector 19 1385s # Vector 20 1385s # Vector 21 1385s # Vector 22 1385s # Vector 23 1385s # Vector 24 1385s # Vector 25 1385s # Vector 26 1385s # Vector 27 1385s ok 1 /utf8/get-char-validated 1385s # Start of validate tests 1385s ok 2 /utf8/validate/0 1385s ok 3 /utf8/validate/1 1385s ok 4 /utf8/validate/2 1385s ok 5 /utf8/validate/3 1385s ok 6 /utf8/validate/4 1385s ok 7 /utf8/validate/5 1385s ok 8 /utf8/validate/6 1385s ok 9 /utf8/validate/7 1385s ok 10 /utf8/validate/8 1385s ok 11 /utf8/validate/9 1385s ok 12 /utf8/validate/10 1385s ok 13 /utf8/validate/11 1385s ok 14 /utf8/validate/12 1385s ok 15 /utf8/validate/13 1385s ok 16 /utf8/validate/14 1385s ok 17 /utf8/validate/15 1385s ok 18 /utf8/validate/16 1385s ok 19 /utf8/validate/17 1385s ok 20 /utf8/validate/18 1385s ok 21 /utf8/validate/19 1385s ok 22 /utf8/validate/20 1385s ok 23 /utf8/validate/21 1385s ok 24 /utf8/validate/22 1385s ok 25 /utf8/validate/23 1385s ok 26 /utf8/validate/24 1385s ok 27 /utf8/validate/25 1385s ok 28 /utf8/validate/26 1385s ok 29 /utf8/validate/27 1385s ok 30 /utf8/validate/28 1385s ok 31 /utf8/validate/29 1385s ok 32 /utf8/validate/30 1385s ok 33 /utf8/validate/31 1385s ok 34 /utf8/validate/32 1385s ok 35 /utf8/validate/33 1385s ok 36 /utf8/validate/34 1385s ok 37 /utf8/validate/35 1385s ok 38 /utf8/validate/36 1385s ok 39 /utf8/validate/37 1385s ok 40 /utf8/validate/38 1385s ok 41 /utf8/validate/39 1385s ok 42 /utf8/validate/40 1385s ok 43 /utf8/validate/41 1385s ok 44 /utf8/validate/42 1385s ok 45 /utf8/validate/43 1385s ok 46 /utf8/validate/44 1385s ok 47 /utf8/validate/45 1385s ok 48 /utf8/validate/46 1385s ok 49 /utf8/validate/47 1385s ok 50 /utf8/validate/48 1385s ok 51 /utf8/validate/49 1385s ok 52 /utf8/validate/50 1385s ok 53 /utf8/validate/51 1385s ok 54 /utf8/validate/52 1385s ok 55 /utf8/validate/53 1385s ok 56 /utf8/validate/54 1385s ok 57 /utf8/validate/55 1385s ok 58 /utf8/validate/56 1385s ok 59 /utf8/validate/57 1385s ok 60 /utf8/validate/58 1385s ok 61 /utf8/validate/59 1385s ok 62 /utf8/validate/60 1385s ok 63 /utf8/validate/61 1385s ok 64 /utf8/validate/62 1385s ok 65 /utf8/validate/63 1385s ok 66 /utf8/validate/64 1385s ok 67 /utf8/validate/65 1385s ok 68 /utf8/validate/66 1385s # Running test: glib/ir-parser.test 1385s ok 69 /utf8/validate/67 1385s ok 70 /utf8/validate/68 1385s ok 71 /utf8/validate/69 1385s ok 72 /utf8/validate/70 1385s ok 73 /utf8/validate/71 1385s ok 74 /utf8/validate/72 1385s ok 75 /utf8/validate/73 1385s ok 76 /utf8/validate/74 1385s ok 77 /utf8/validate/75 1385s ok 78 /utf8/validate/76 1385s ok 79 /utf8/validate/77 1385s ok 80 /utf8/validate/78 1385s ok 81 /utf8/validate/79 1385s ok 82 /utf8/validate/80 1385s ok 83 /utf8/validate/81 1385s ok 84 /utf8/validate/82 1385s ok 85 /utf8/validate/83 1385s ok 86 /utf8/validate/84 1385s ok 87 /utf8/validate/85 1385s ok 88 /utf8/validate/86 1385s ok 89 /utf8/validate/87 1385s ok 90 /utf8/validate/88 1385s ok 91 /utf8/validate/89 1385s ok 92 /utf8/validate/90 1385s ok 93 /utf8/validate/91 1385s ok 94 /utf8/validate/92 1385s ok 95 /utf8/validate/93 1385s ok 96 /utf8/validate/94 1385s ok 97 /utf8/validate/95 1385s ok 98 /utf8/validate/96 1385s ok 99 /utf8/validate/97 1385s ok 100 /utf8/validate/98 1385s ok 101 /utf8/validate/99 1385s ok 102 /utf8/validate/100 1385s ok 103 /utf8/validate/101 1385s ok 104 /utf8/validate/102 1385s ok 105 /utf8/validate/103 1385s ok 106 /utf8/validate/104 1385s ok 107 /utf8/validate/105 1385s ok 108 /utf8/validate/106 1385s ok 109 /utf8/validate/107 1385s ok 110 /utf8/validate/108 1385s ok 111 /utf8/validate/109 1385s ok 112 /utf8/validate/110 1385s ok 113 /utf8/validate/111 1385s ok 114 /utf8/validate/112 1385s ok 115 /utf8/validate/113 1385s ok 116 /utf8/validate/114 1385s ok 117 /utf8/validate/115 1385s ok 118 /utf8/validate/116 1385s ok 119 /utf8/validate/117 1385s ok 120 /utf8/validate/118 1385s ok 121 /utf8/validate/119 1385s ok 122 /utf8/validate/120 1385s ok 123 /utf8/validate/121 1385s ok 124 /utf8/validate/122 1385s ok 125 /utf8/validate/123 1385s ok 126 /utf8/validate/124 1385s ok 127 /utf8/validate/125 1385s ok 128 /utf8/validate/126 1385s ok 129 /utf8/validate/127 1385s ok 130 /utf8/validate/128 1385s ok 131 /utf8/validate/129 1385s ok 132 /utf8/validate/130 1385s ok 133 /utf8/validate/131 1385s ok 134 /utf8/validate/132 1385s ok 135 /utf8/validate/133 1385s ok 136 /utf8/validate/134 1385s ok 137 /utf8/validate/135 1385s ok 138 /utf8/validate/136 1385s ok 139 /utf8/validate/137 1385s ok 140 /utf8/validate/138 1385s ok 141 /utf8/validate/139 1385s ok 142 /utf8/validate/140 1385s ok 143 /utf8/validate/141 1385s ok 144 /utf8/validate/142 1385s ok 145 /utf8/validate/143 1385s ok 146 /utf8/validate/144 1385s ok 147 /utf8/validate/145 1385s ok 148 /utf8/validate/146 1385s ok 149 /utf8/validate/147 1385s ok 150 /utf8/validate/148 1385s ok 151 /utf8/validate/149 1385s ok 152 /utf8/validate/150 1385s ok - glib/ir-parser.test 1385s ok 153 /utf8/validate/151 1385s ok 154 /utf8/validate/152 1385s ok 155 /utf8/validate/153 1385s ok 156 /utf8/validate/154 1385s ok 157 /utf8/validate/155 1385s ok 158 /utf8/validate/156 1385s ok 159 /utf8/validate/157 1385s ok 160 /utf8/validate/158 1385s ok 161 /utf8/validate/159 1385s ok 162 /utf8/validate/160 1385s ok 163 /utf8/validate/161 1385s ok 164 /utf8/validate/162 1385s ok 165 /utf8/validate/163 1385s ok 166 /utf8/validate/164 1385s ok 167 /utf8/validate/165 1385s ok 168 /utf8/validate/166 1385s ok 169 /utf8/validate/167 1385s ok 170 /utf8/validate/168 1385s ok 171 /utf8/validate/169 1385s ok 172 /utf8/validate/170 1385s ok 173 /utf8/validate/171 1385s ok 174 /utf8/validate/172 1385s ok 175 /utf8/validate/173 1385s ok 176 /utf8/validate/174 1385s ok 177 /utf8/validate/175 1385s ok 178 /utf8/validate/176 1385s ok 179 /utf8/validate/177 1385s ok 180 /utf8/validate/178 1385s ok 181 /utf8/validate/179 1385s ok 182 /utf8/validate/180 1385s ok 183 /utf8/validate/181 1385s ok 184 /utf8/validate/182 1385s ok 185 /utf8/validate/183 1385s ok 186 /utf8/validate/184 1385s ok 187 /utf8/validate/185 1385s ok 188 /utf8/validate/186 1385s ok 189 /utf8/validate/187 1385s ok 190 /utf8/validate/188 1385s ok 191 /utf8/validate/189 1385s ok 192 /utf8/validate/190 1385s ok 193 /utf8/validate/191 1385s ok 194 /utf8/validate/192 1385s ok 195 /utf8/validate/193 1385s ok 196 /utf8/validate/194 1385s ok 197 /utf8/validate/195 1385s ok 198 /utf8/validate/196 1385s ok 199 /utf8/validate/197 1385s ok 200 /utf8/validate/198 1385s ok 201 /utf8/validate/199 1385s ok 202 /utf8/validate/200 1385s ok 203 /utf8/validate/201 1385s ok 204 /utf8/validate/202 1385s ok 205 /utf8/validate/203 1385s ok 206 /utf8/validate/204 1385s ok 207 /utf8/validate/205 1385s ok 208 /utf8/validate/206 1385s ok 209 /utf8/validate/207 1385s ok 210 /utf8/validate/208 1385s ok 211 /utf8/validate/209 1385s ok 212 /utf8/validate/210 1385s ok 213 /utf8/validate/211 1385s ok 214 /utf8/validate/212 1385s ok 215 /utf8/validate/213 1385s ok 216 /utf8/validate/214 1385s ok 217 /utf8/validate/215 1385s ok 218 /utf8/validate/216 1385s ok 219 /utf8/validate/217 1385s ok 220 /utf8/validate/218 1385s ok 221 /utf8/validate/219 1385s ok 222 /utf8/validate/220 1385s ok 223 /utf8/validate/221 1385s ok 224 /utf8/validate/222 1385s ok 225 /utf8/validate/223 1385s ok 226 /utf8/validate/224 1385s ok 227 /utf8/validate/225 1385s ok 228 /utf8/validate/226 1385s ok 229 /utf8/validate/227 1385s ok 230 /utf8/validate/228 1385s ok 231 /utf8/validate/229 1385s ok 232 /utf8/validate/230 1385s ok 233 /utf8/validate/231 1385s # Running test: glib/gdbus-threading.test 1385s ok - glib/gdbus-threading.test 1385s # Running test: glib/test-printf.test 1385s ok 234 /utf8/validate/232 1385s ok 235 /utf8/validate/233 1385s ok 236 /utf8/validate/234 1385s ok 237 /utf8/validate/235 1385s ok 238 /utf8/validate/236 1385s # End of validate tests 1385s # End of utf8 tests 1385s TAP version 14 1385s # random seed: R02Sacb91904837fd95faf58bfccd92b8a36 1385s 1..1 1385s # Start of ir-parser tests 1385s # /ir-parser/type-parsing summary: Test parsing different valid and invalid types 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1385s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: popping node 1 dummy 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1385s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: popping node 1 dummy 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: 1385s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1385s # GLib-GIRepository-DEBUG: Failed to parse type: 'GLib.Error [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 1434s # -r specify root type 1434s # -n don't descend type tree 1434s # -h show help 1434s # -b specify indent string 1434s # -i specify incremental indent string 1434s # -s specify line spacing 1434s # qualifiers: 1434s # froots iterate over fundamental roots 1434s # tree print type tree 1434s # Error: 1434s ok 3 __main__.TestGobjectQuery.test_tree 1434s # gobject-query: /usr/bin/gobject-query 1434s # tmpdir: /tmp/tmp0_rh1m31 1434s # Running: ['/usr/bin/gobject-query', 'tree'] 1434s # Return code: 0 1434s # Output: 1434s # GObject 1434s # Error: 1434s ok 4 __main__.TestGobjectQuery.test_version 1434s # gobject-query: /usr/bin/gobject-query 1434s # tmpdir: /tmp/tmpewb8xigq 1434s # Running: ['/usr/bin/gobject-query', '--version'] 1434s # Return code: 0 1434s # Output: 1434s # 2.86.3 1434s # Error: 1434s 1..4 1434s ok - glib/gobject-query.py.test 1434s # SUMMARY: total=332; passed=331; skipped=1; failed=0; user=331.1s; system=140.7s; maxrss=139264 1435s autopkgtest [10:21:35]: test installed-tests: -----------------------] 1439s installed-tests PASS 1439s autopkgtest [10:21:39]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 1443s autopkgtest [10:21:43]: test closure-refcount: preparing testbed 1445s Reading package lists... 1446s Building dependency tree... 1446s Reading state information... 1446s Solving dependencies... 1447s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1454s autopkgtest [10:21:54]: test closure-refcount: [----------------------- 1456s Running test: glib/closure-refcount.test 1456s TAP version 14 1456s # random seed: R02S30c23284a56cc1d6aea3ef0fec447f45 1456s 1..1 1456s # Start of closure tests 1456s ok 1 /closure/refcount # SKIP Known to be flaky on arm* (#880883, #917983) 1456s # End of closure tests 1456s PASS: glib/closure-refcount.test 1456s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2432 1457s autopkgtest [10:21:57]: test closure-refcount: -----------------------] 1460s closure-refcount PASS 1460s autopkgtest [10:22:00]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 1464s autopkgtest [10:22:04]: test debugcontroller: preparing testbed 1466s Reading package lists... 1467s Building dependency tree... 1467s Reading state information... 1467s Solving dependencies... 1468s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1476s autopkgtest [10:22:16]: test debugcontroller: [----------------------- 1478s Running test: glib/debugcontroller.test 1478s TAP version 14 1478s # random seed: R02S7d6cc0d2791fc88363c0be72cfd8e78c 1478s 1..3 1478s # Start of debug-controller tests 1478s # Start of dbus tests 1478s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1478s # GLib-GIO-DEBUG: Debug output enabled 1478s # GLib-GIO-DEBUG: Debug output disabled 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s ok 1 /debug-controller/dbus/basic 1478s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s ok 2 /debug-controller/dbus/duplicate 1478s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1478s # GLib-GIO-DEBUG: Debug output enabled 1478s # GLib-GIO-DEBUG: Debug output disabled 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1478s ok 3 /debug-controller/dbus/properties 1478s # End of dbus tests 1478s # End of debug-controller tests 1478s PASS: glib/debugcontroller.test 1478s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=4608 1478s autopkgtest [10:22:18]: test debugcontroller: -----------------------] 1482s debugcontroller PASS 1482s autopkgtest [10:22:22]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 1485s autopkgtest [10:22:25]: test gdbus-server-auth: preparing testbed 1487s Reading package lists... 1487s Building dependency tree... 1487s Reading state information... 1488s Solving dependencies... 1489s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1496s autopkgtest [10:22:36]: test gdbus-server-auth: [----------------------- 1498s Running test: glib/gdbus-server-auth.test 1498s TAP version 14 1498s # random seed: R02Sdbbed30767a9bd94168d16158c0cd079 1498s 1..9 1498s # Start of gdbus tests 1498s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/.dirs/home 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/.dirs/cache 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/.dirs/system-config2 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/.dirs/config 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/.dirs/system-data2 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/.dirs/data 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/.dirs/state 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/.dirs/runtime 1498s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_J313J3/gdbus-server-auth-ML13J3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1498s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_J313J3/gdbus-server-auth-ML13J3/dbus-rwY8QG63 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39681 1498s ok 1 /gdbus/server-auth 1498s # Start of server-auth tests 1498s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/abstract/.dirs/home 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/abstract/.dirs/cache 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/abstract/.dirs/system-config2 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/abstract/.dirs/config 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/abstract/.dirs/system-data2 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/abstract/.dirs/data 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/abstract/.dirs/state 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/abstract/.dirs/runtime 1498s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_J313J3/gdbus-server-auth-B5N4J3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1498s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_J313J3/gdbus-server-auth-B5N4J3/dbus-3uiwBmqn 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39681 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1498s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39681 1498s ok 2 /gdbus/server-auth/abstract 1498s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/tcp/.dirs/home 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/tcp/.dirs/cache 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/tcp/.dirs/system-config2 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/tcp/.dirs/config 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/tcp/.dirs/system-data2 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/tcp/.dirs/data 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/tcp/.dirs/state 1498s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/tcp/.dirs/runtime 1498s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1498s # Connectable address: tcp:host=127.0.0.1,port=34347 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1498s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1498s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1498s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1498s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1498s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1498s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1499s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1499s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1499s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1499s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1499s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1499s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1499s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1499s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1499s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1499s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1499s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1499s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1499s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1499s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1499s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1499s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1499s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1499s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1499s ok 3 /gdbus/server-auth/tcp 1499s # slow test /gdbus/server-auth/tcp executed in 0.87 secs 1499s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/.dirs/home 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/.dirs/cache 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/.dirs/system-config2 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/.dirs/config 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/.dirs/system-data2 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/.dirs/data 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/.dirs/state 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/.dirs/runtime 1499s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_J313J3/gdbus-server-auth-ZVU4J3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1499s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_J313J3/gdbus-server-auth-ZVU4J3/dbus-2odyGH4M 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39681 1499s ok 4 /gdbus/server-auth/anonymous 1499s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/.dirs/home 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/.dirs/cache 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/.dirs/system-config2 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/.dirs/config 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/.dirs/system-data2 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/.dirs/data 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/.dirs/state 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/.dirs/runtime 1499s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_J313J3/gdbus-server-auth-5C84J3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1499s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_J313J3/gdbus-server-auth-5C84J3/dbus-7Ajgya2m 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1499s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39681 1499s ok 5 /gdbus/server-auth/external 1499s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/.dirs/home 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/.dirs/cache 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/.dirs/system-config2 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/.dirs/config 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/.dirs/system-data2 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/.dirs/data 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/.dirs/state 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/.dirs/runtime 1499s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_J313J3/gdbus-server-auth-MQP5J3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1499s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_J313J3/gdbus-server-auth-MQP5J3/dbus-mkVQRomT 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39681 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1499s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39681 1499s ok 6 /gdbus/server-auth/sha1 1499s # Start of anonymous tests 1499s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/tcp/.dirs/home 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/tcp/.dirs/cache 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/tcp/.dirs/config 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/tcp/.dirs/data 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/tcp/.dirs/state 1499s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1499s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1499s # Connectable address: tcp:host=127.0.0.1,port=45207 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1499s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1499s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1499s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1499s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1499s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1500s ok 7 /gdbus/server-auth/anonymous/tcp 1500s # slow test /gdbus/server-auth/anonymous/tcp executed in 0.86 secs 1500s # End of anonymous tests 1500s # Start of external tests 1500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/require-same-user/.dirs/home 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/require-same-user/.dirs/cache 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/require-same-user/.dirs/config 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/require-same-user/.dirs/data 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/require-same-user/.dirs/state 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/external/require-same-user/.dirs/runtime 1500s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_J313J3/gdbus-server-auth-0VA6J3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1500s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_J313J3/gdbus-server-auth-0VA6J3/dbus-JT6TqOg6 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39681 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1500s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39681,uid=1000,gid=1000 1500s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39681 1500s ok 8 /gdbus/server-auth/external/require-same-user 1500s # End of external tests 1500s # Start of sha1 tests 1500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/tcp/.dirs/home 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/tcp/.dirs/cache 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/tcp/.dirs/config 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/tcp/.dirs/data 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/tcp/.dirs/state 1500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_J313J3/gdbus/server-auth/sha1/tcp/.dirs/runtime 1500s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1500s # Connectable address: tcp:host=127.0.0.1,port=35687 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1500s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1500s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1500s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1500s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1500s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1501s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1501s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1501s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1501s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1501s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1501s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1501s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1501s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1501s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1501s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1501s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1501s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1501s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1501s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1501s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1501s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1501s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1501s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1501s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1501s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1501s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1501s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1501s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1501s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1501s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1501s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1501s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1501s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1501s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1501s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1501s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1501s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1501s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1501s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1501s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1501s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1501s ok 9 /gdbus/server-auth/sha1/tcp 1501s # slow test /gdbus/server-auth/sha1/tcp executed in 0.87 secs 1501s # End of sha1 tests 1501s # End of server-auth tests 1501s # End of gdbus tests 1501s PASS: glib/gdbus-server-auth.test 1501s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.2s; maxrss=5888 1501s autopkgtest [10:22:41]: test gdbus-server-auth: -----------------------] 1505s autopkgtest [10:22:45]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 1505s gdbus-server-auth PASS 1508s autopkgtest [10:22:48]: test gdbus-threading: preparing testbed 1511s Reading package lists... 1511s Building dependency tree... 1511s Reading state information... 1511s Solving dependencies... 1512s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1520s autopkgtest [10:23:00]: test gdbus-threading: [----------------------- 1522s Running test: glib/gdbus-threading.test 1522s TAP version 14 1522s # random seed: R02S27986d7ff82a2946df57d0e4980e1982 1522s 1..3 1522s # Start of gdbus tests 1522s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/delivery-in-thread/.dirs/home 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/delivery-in-thread/.dirs/cache 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_OEPPK3/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_OEPPK3/gdbus/delivery-in-thread/.dirs/system-config2 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/delivery-in-thread/.dirs/config 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_OEPPK3/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_OEPPK3/gdbus/delivery-in-thread/.dirs/system-data2 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/delivery-in-thread/.dirs/data 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/delivery-in-thread/.dirs/state 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_OEPPK3/gdbus/delivery-in-thread/.dirs/runtime 1522s ok 1 /gdbus/delivery-in-thread 1522s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/method-calls-in-thread/.dirs/home 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/method-calls-in-thread/.dirs/cache 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_OEPPK3/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_OEPPK3/gdbus/method-calls-in-thread/.dirs/system-config2 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/method-calls-in-thread/.dirs/config 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_OEPPK3/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_OEPPK3/gdbus/method-calls-in-thread/.dirs/system-data2 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/method-calls-in-thread/.dirs/data 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/method-calls-in-thread/.dirs/state 1522s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_OEPPK3/gdbus/method-calls-in-thread/.dirs/runtime 1523s ok 2 /gdbus/method-calls-in-thread 1523s # slow test /gdbus/method-calls-in-thread executed in 0.84 secs 1523s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/threaded-singleton/.dirs/home 1523s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/threaded-singleton/.dirs/cache 1523s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_OEPPK3/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_OEPPK3/gdbus/threaded-singleton/.dirs/system-config2 1523s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/threaded-singleton/.dirs/config 1523s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_OEPPK3/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_OEPPK3/gdbus/threaded-singleton/.dirs/system-data2 1523s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/threaded-singleton/.dirs/data 1523s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_OEPPK3/gdbus/threaded-singleton/.dirs/state 1523s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_OEPPK3/gdbus/threaded-singleton/.dirs/runtime 1524s ok 3 /gdbus/threaded-singleton 1524s # slow test /gdbus/threaded-singleton executed in 1.50 secs 1524s # End of gdbus tests 1524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1524s PASS: glib/gdbus-threading.test 1524s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.7s; system=0.6s; maxrss=4224 1525s autopkgtest [10:23:05]: test gdbus-threading: -----------------------] 1529s autopkgtest [10:23:09]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 1529s gdbus-threading PASS 1533s autopkgtest [10:23:13]: test gmenumodel: preparing testbed 1535s Reading package lists... 1536s Building dependency tree... 1536s Reading state information... 1536s Solving dependencies... 1537s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1544s autopkgtest [10:23:24]: test gmenumodel: [----------------------- 1546s Running test: glib/gmenumodel.test 1546s TAP version 14 1546s # random seed: R02Sc888f05cc836f0d649e250a705ad6678 1546s 1..15 1546s # Start of gmenu tests 1547s ok 1 /gmenu/equality 1547s # slow test /gmenu/equality executed in 0.74 secs 1548s ok 2 /gmenu/random 1548s # slow test /gmenu/random executed in 1.03 secs 1548s ok 3 /gmenu/attributes 1548s ok 4 /gmenu/links 1548s ok 5 /gmenu/mutable 1548s ok 6 /gmenu/convenience 1548s ok 7 /gmenu/menuitem 1548s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1548s ok 8 /gmenu/input-validation 1548s # Start of dbus tests 1549s ok 9 /gmenu/dbus/roundtrip 1549s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1549s ok 10 /gmenu/dbus/subscriptions 1551s ok 11 /gmenu/dbus/threaded 1551s # slow test /gmenu/dbus/threaded executed in 1.58 secs 1551s # Start of peer tests 1551s Executing: glib/gmenumodel.test 1552s ok 12 /gmenu/dbus/peer/roundtrip 1552s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1552s ok 13 /gmenu/dbus/peer/subscriptions 1552s # End of peer tests 1552s # Start of export tests 1552s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1552s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1552s ok 14 /gmenu/dbus/export/error-handling 1552s # End of export tests 1552s # End of dbus tests 1552s # Start of attributes tests 1552s ok 15 /gmenu/attributes/iterate 1552s # End of attributes tests 1552s # End of gmenu tests 1552s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1552s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1552s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1552s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1552s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1552s PASS: glib/gmenumodel.test 1552s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=6.1s; system=1.4s; maxrss=10752 1553s autopkgtest [10:23:33]: test gmenumodel: -----------------------] 1557s gmenumodel PASS 1557s autopkgtest [10:23:37]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 1561s autopkgtest [10:23:41]: test mainloop: preparing testbed 1562s Reading package lists... 1563s Building dependency tree... 1563s Reading state information... 1563s Solving dependencies... 1564s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1571s autopkgtest [10:23:51]: test mainloop: [----------------------- 1573s Running test: glib/mainloop.test 1573s TAP version 14 1573s # random seed: R02Sccb483337ceb8dc940070789cb9d3bcd 1573s 1..47 1573s # Start of maincontext tests 1573s ok 1 /maincontext/basic 1573s # Add same-priority sources: 39 1573s # Find each source: 7 1573s # Remove in random order: 70 1573s ok 2 /maincontext/nsources_same_priority 1573s # Add different-priority sources: 46 1573s # Find each source: 7 1573s # Remove in random order: 77 1573s ok 3 /maincontext/nsources_different_priority 1574s # Add sources from threads: 550 1574s # Remove sources from threads: 239 1574s ok 4 /maincontext/nsources_threadpool 1574s # slow test /maincontext/nsources_threadpool executed in 0.80 secs 1574s ok 5 /maincontext/source_finalization 1574s # /maincontext/idle-once summary: Test g_idle_add_once() works 1574s ok 6 /maincontext/idle-once 1574s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1574s ok 7 /maincontext/timeout-once 1574s # /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. 1574s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 1574s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 1574s # Start of source_finalization_from_source tests 1574s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1574s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1574s ok 9 /maincontext/source_finalization_from_source/0 1574s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1574s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1574s ok 10 /maincontext/source_finalization_from_source/1 1574s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1574s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1574s ok 11 /maincontext/source_finalization_from_source/2 1574s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1574s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1574s ok 12 /maincontext/source_finalization_from_source/3 1574s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1574s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1574s ok 13 /maincontext/source_finalization_from_source/4 1574s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1574s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1574s ok 14 /maincontext/source_finalization_from_source/5 1574s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1574s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1574s ok 15 /maincontext/source_finalization_from_source/6 1574s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1574s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1574s ok 16 /maincontext/source_finalization_from_source/7 1574s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1574s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1574s ok 17 /maincontext/source_finalization_from_source/8 1574s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1574s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1574s ok 18 /maincontext/source_finalization_from_source/9 1574s # End of source_finalization_from_source tests 1574s # Start of source_finalization_from_dispatch tests 1574s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1574s ok 19 /maincontext/source_finalization_from_dispatch/0 1574s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1574s ok 20 /maincontext/source_finalization_from_dispatch/1 1574s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1574s ok 21 /maincontext/source_finalization_from_dispatch/2 1574s # End of source_finalization_from_dispatch tests 1574s # End of maincontext tests 1574s # Start of mainloop tests 1574s ok 22 /mainloop/basic 1574s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 1574s ok 24 /mainloop/priorities 1575s ok 25 /mainloop/invoke 1575s # slow test /mainloop/invoke executed in 0.50 secs 1576s ok 26 /mainloop/child_sources 1576s # slow test /mainloop/child_sources executed in 1.20 secs 1578s ok 27 /mainloop/recursive_child_sources 1578s # slow test /mainloop/recursive_child_sources executed in 2.19 secs 1578s ok 28 /mainloop/recursive_loop_child_sources 1578s Executing: glib/mainloop.test 1578s ok 29 /mainloop/swapping_child_sources 1578s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1578s ok 30 /mainloop/blocked_child_sources 1579s ok 31 /mainloop/source_time 1579s # slow test /mainloop/source_time executed in 1.00 secs 1579s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1579s ok 32 /mainloop/overflow 1580s ok 33 /mainloop/ready-time 1580s # slow test /mainloop/ready-time executed in 0.50 secs 1580s ok 34 /mainloop/wakeup 1580s ok 35 /mainloop/remove-invalid 1580s ok 36 /mainloop/unref-while-pending 1581s ok 37 /mainloop/unix-fd 1581s # slow test /mainloop/unix-fd executed in 0.90 secs 1581s ok 38 /mainloop/unix-fd-source 1581s ok 39 /mainloop/source-unix-fd-api 1581s ok 40 /mainloop/wait 1581s ok 41 /mainloop/unix-file-poll 1581s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1581s ok 42 /mainloop/unix-fd-priority 1581s ok 43 /mainloop/nfds 1581s ok 44 /mainloop/steal-fd 1583s Executing: glib/mainloop.test 1583s ok 45 /mainloop/simultaneous-source-context-destruction 1583s # slow test /mainloop/simultaneous-source-context-destruction executed in 2.53 secs 1583s # Start of ownerless-polling tests 1583s ok 46 /mainloop/ownerless-polling/attach-first 1583s ok 47 /mainloop/ownerless-polling/pop-first 1583s # End of ownerless-polling tests 1583s # End of mainloop tests 1583s PASS: glib/mainloop.test 1583s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=2.4s; system=8.8s; maxrss=10420 1584s autopkgtest [10:24:04]: test mainloop: -----------------------] 1588s mainloop PASS 1588s autopkgtest [10:24:08]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 1591s autopkgtest [10:24:11]: test memory-monitor-dbus: preparing testbed 1593s Reading package lists... 1594s Building dependency tree... 1594s Reading state information... 1594s Solving dependencies... 1595s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1603s autopkgtest [10:24:23]: test memory-monitor-dbus: [----------------------- 1605s Running test: glib/memory-monitor-dbus.test 1606s TAP version 13 1606s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 1606s # Received memory warning signal, level 0 1606s # Received memory warning signal, level 100 1606s # Received memory warning signal, level 255 1606s 1..1 1606s PASS: glib/memory-monitor-dbus.test 1606s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.4s; system=0.1s; maxrss=21432 1606s autopkgtest [10:24:26]: test memory-monitor-dbus: -----------------------] 1610s memory-monitor-dbus PASS 1610s autopkgtest [10:24:30]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 1613s autopkgtest [10:24:33]: test socket: preparing testbed 1615s Reading package lists... 1616s Building dependency tree... 1616s Reading state information... 1616s Solving dependencies... 1617s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1625s autopkgtest [10:24:45]: test socket: [----------------------- 1627s Running test: glib/socket.test 1627s TAP version 14 1627s # random seed: R02Sa57bc2cf6bb2cf61783e42eecae03d70 1627s 1..30 1627s # Start of socket tests 1628s ok 1 /socket/ipv4_sync 1628s # slow test /socket/ipv4_sync executed in 1.00 secs 1629s ok 2 /socket/ipv4_async 1629s # slow test /socket/ipv4_async executed in 1.00 secs 1629s ok 3 /socket/ipv6_sync 1629s ok 4 /socket/ipv6_async 1629s ok 5 /socket/ipv6_v4mapped 1630s ok 6 /socket/close_graceful 1630s # slow test /socket/close_graceful executed in 1.00 secs 1630s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1630s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1630s ok 8 /socket/fd_reuse 1630s ok 9 /socket/address 1630s ok 10 /socket/unix-from-fd 1630s ok 11 /socket/unix-connection 1630s ok 12 /socket/unix-connection-ancillary-data 1630s ok 13 /socket/source-postmortem 1630s ok 14 /socket/read_write 1630s ok 15 /socket/read_writev 1630s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1630s ok 16 /socket/receive_bytes 1630s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1630s ok 17 /socket/receive_bytes_from 1630s # Start of ipv4_sync tests 1630s ok 18 /socket/ipv4_sync/datagram 1630s # Start of datagram tests 1631s ok 19 /socket/ipv4_sync/datagram/timeouts 1631s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1631s # End of datagram tests 1631s # End of ipv4_sync tests 1631s # Start of ipv6_sync tests 1631s ok 20 /socket/ipv6_sync/datagram 1631s # Start of datagram tests 1632s Executing: glib/socket.test 1632s ok 21 /socket/ipv6_sync/datagram/timeouts 1632s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1632s # End of datagram tests 1632s # End of ipv6_sync tests 1632s # Start of reuse tests 1632s ok 22 /socket/reuse/tcp 1632s ok 23 /socket/reuse/udp 1632s # End of reuse tests 1632s # Start of get_available tests 1632s ok 24 /socket/get_available/datagram 1632s ok 25 /socket/get_available/stream 1632s # End of get_available tests 1632s # Start of credentials tests 1632s # Supported on this OS: GCredentials:linux-ucred:pid=0 1632s ok 26 /socket/credentials/tcp_client 1632s # Supported on this OS: GCredentials:linux-ucred:pid=0 1632s ok 27 /socket/credentials/tcp_server 1632s # Supported on this OS: GCredentials:linux-ucred:pid=65869,uid=1000,gid=1000 1632s ok 28 /socket/credentials/unix_socketpair 1632s # End of credentials tests 1632s # Start of accept tests 1632s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1632s ok 29 /socket/accept/cancelled 1632s # End of accept tests 1632s # Start of connect tests 1632s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1632s ok 30 /socket/connect/cancelled 1632s # End of connect tests 1632s # End of socket tests 1632s PASS: glib/socket.test 1632s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=4096 1633s autopkgtest [10:24:53]: test socket: -----------------------] 1637s autopkgtest [10:24:57]: test socket: - - - - - - - - - - results - - - - - - - - - - 1637s socket PASS 1640s autopkgtest [10:25:00]: test testfilemonitor: preparing testbed 1642s Reading package lists... 1643s Building dependency tree... 1643s Reading state information... 1643s Solving dependencies... 1644s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1652s autopkgtest [10:25:12]: test testfilemonitor: [----------------------- 1654s Running test: glib/testfilemonitor.test 1654s TAP version 14 1654s # random seed: R02S6c7febccb119e9c82c8fc31239d7a255 1654s 1..8 1654s # Start of monitor tests 1654s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1654s # Using temporary directory: /tmp/gio-test-testfilemonitor_14ZIK3 1654s # Using GFileMonitor GInotifyFileMonitor 1656s ok 1 /monitor/atomic-replace 1656s # slow test /monitor/atomic-replace executed in 2.00 secs 1656s # Using temporary directory: /tmp/gio-test-testfilemonitor_3TXIK3 1656s # Using GFileMonitor GInotifyFileMonitor 1659s ok 2 /monitor/file-changes 1659s # slow test /monitor/file-changes executed in 2.50 secs 1659s # Using temporary directory: /tmp/gio-test-testfilemonitor_2NG8J3 1659s # Using GFileMonitor GInotifyFileMonitor 1659s Executing: glib/testfilemonitor.test 1662s ok 3 /monitor/dir-monitor 1662s # slow test /monitor/dir-monitor executed in 3.51 secs 1662s # Using temporary directory: /tmp/gio-test-testfilemonitor_OR4IK3 1662s # Using GFileMonitor GInotifyFileMonitor 1664s Executing: glib/testfilemonitor.test 1669s Executing: glib/testfilemonitor.test 1674s Executing: glib/testfilemonitor.test 1679s Executing: glib/testfilemonitor.test 1684s Executing: glib/testfilemonitor.test 1687s ok 4 /monitor/dir-not-existent 1687s # slow test /monitor/dir-not-existent executed in 25.02 secs 1687s # Using temporary directory: /tmp/gio-test-testfilemonitor_ALMJK3 1687s # Using GFileMonitor 0 GInotifyFileMonitor 1687s # Using GFileMonitor 1 GInotifyFileMonitor 1689s Executing: glib/testfilemonitor.test 1689s ok 5 /monitor/cross-dir-moves 1689s # slow test /monitor/cross-dir-moves executed in 2.00 secs 1689s # Using temporary directory: /tmp/gio-test-testfilemonitor_J6VJK3 1689s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn’t cause a deadlock. 1689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 1689s ok 6 /monitor/finalize-in-callback 1689s # Using temporary directory: /tmp/gio-test-testfilemonitor_Q34JK3 1689s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1689s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1689s ok 7 /monitor/root 1689s # Start of file tests 1689s # Using temporary directory: /tmp/gio-test-testfilemonitor_M04JK3 1689s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 1689s # Running with hard link tests 1689s # Using GFileMonitor GInotifyFileMonitor 1693s # Event 0 at expected index 7 skipped because it is marked as optional 1693s # Event 2 at expected index 11 skipped because it is marked as optional 1693s ok 8 /monitor/file/hard-links 1693s # slow test /monitor/file/hard-links executed in 3.51 secs 1693s # End of file tests 1693s # End of monitor tests 1693s PASS: glib/testfilemonitor.test 1693s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.1s; maxrss=4224 1693s autopkgtest [10:25:53]: test testfilemonitor: -----------------------] 1697s autopkgtest [10:25:57]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 1697s testfilemonitor PASS 1701s autopkgtest [10:26:01]: test thread-pool-slow: preparing testbed 1703s Reading package lists... 1704s Building dependency tree... 1704s Reading state information... 1704s Solving dependencies... 1705s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1712s autopkgtest [10:26:12]: test thread-pool-slow: [----------------------- 1714s Running test: glib/thread-pool-slow.test 1714s TAP version 14 1714s # random seed: R02S0fa3e1ac4c70beb1cd0455ec4d17f75b 1714s 1..7 1714s # Start of threadpool tests 1714s ok 1 /threadpool/functions 1715s ok 2 /threadpool/stop-unused 1715s # slow test /threadpool/stop-unused executed in 0.52 secs 1715s ok 3 /threadpool/pools 1715s # [unsorted] ===> pushed new thread with id:16, number of threads:1, unprocessed:1 1715s # [unsorted] ===> pushed new thread with id:52, number of threads:2, unprocessed:2 1715s # [unsorted] ===> pushed new thread with id:29, number of threads:3, unprocessed:2 1715s # [unsorted] ===> pushed new thread with id:11, number of threads:4, unprocessed:3 1715s # [unsorted] ===> pushed new thread with id:52, number of threads:5, unprocessed:4 1715s # [unsorted] ===> pushed new thread with id:53, number of threads:6, unprocessed:5 1715s # [unsorted] ===> pushed new thread with id:6, number of threads:7, unprocessed:6 1715s # [unsorted] ===> pushed new thread with id:7, number of threads:8, unprocessed:7 1715s # [unsorted] ===> pushed new thread with id:92, number of threads:9, unprocessed:8 1715s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:9 1715s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:10 1715s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:11 1715s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:4 1715s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:5 1715s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:6 1715s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:7 1715s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:8 1715s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:9 1715s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:10 1715s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:11 1715s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:12 1715s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:13 1715s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:14 1715s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:15 1715s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:16 1715s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:17 1715s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:18 1715s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:19 1715s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:20 1715s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:20 1715s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:21 1715s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:22 1715s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:23 1715s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:24 1715s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:25 1715s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:26 1715s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:27 1715s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:28 1715s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:29 1715s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:30 1715s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:31 1715s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:32 1715s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:33 1715s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:34 1715s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:35 1715s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:36 1715s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:37 1715s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:38 1715s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:39 1715s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:40 1715s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:41 1715s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:42 1715s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:43 1715s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:44 1715s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:45 1715s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:46 1715s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:47 1715s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:48 1715s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:49 1715s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:50 1715s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:51 1715s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:52 1715s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:53 1715s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:54 1715s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:55 1715s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:56 1715s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:57 1715s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:58 1715s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:59 1715s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:60 1715s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:61 1715s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:62 1715s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:63 1715s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:64 1715s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:65 1715s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:66 1715s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:67 1715s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:68 1715s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:69 1715s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:70 1715s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:71 1715s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:72 1715s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:73 1715s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:74 1715s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:75 1715s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:76 1715s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:77 1715s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:78 1715s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:79 1715s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:80 1715s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:81 1715s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:82 1715s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:83 1715s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:84 1715s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:85 1715s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:86 1715s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:87 1715s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:88 1715s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:89 1715s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:90 1715s ok 4 /threadpool/no-sort 1715s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:1 1715s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:2 1715s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:3 1715s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:4 1715s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:5 1715s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:6 1715s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:7 1715s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:8 1715s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:9 1715s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:10 1715s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:11 1715s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:12 1715s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:13 1715s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:14 1715s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:15 1715s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:16 1715s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:17 1715s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:18 1715s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:19 1715s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:20 1715s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:21 1715s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:22 1715s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:23 1715s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:24 1715s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:25 1715s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:26 1715s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:27 1715s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:28 1715s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:29 1715s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:30 1715s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:31 1715s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:32 1715s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:33 1715s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:34 1715s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:35 1715s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:36 1715s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:37 1715s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:38 1715s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:39 1715s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:40 1715s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:41 1715s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:42 1715s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:43 1715s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:44 1715s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:45 1715s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:46 1715s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:47 1715s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:48 1715s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:49 1715s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:50 1715s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:51 1715s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:52 1715s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:53 1715s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:54 1715s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:55 1715s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:56 1715s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:57 1715s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:58 1715s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:59 1715s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:60 1715s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:61 1715s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:62 1715s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:63 1715s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:64 1715s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:65 1715s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:66 1715s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:67 1715s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:68 1715s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:69 1715s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:70 1715s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:71 1715s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:72 1715s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:73 1715s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:74 1715s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:75 1715s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:76 1715s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:77 1715s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:78 1715s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:79 1715s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:80 1715s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:81 1715s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:82 1715s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:83 1715s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:84 1715s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:85 1715s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:86 1715s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:87 1715s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:88 1715s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:89 1715s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:90 1715s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:91 1715s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:92 1715s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:93 1715s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:94 1715s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:95 1715s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:96 1715s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:97 1715s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:98 1715s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:99 1715s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:100 1715s # Starting thread pool processing 1715s ok 5 /threadpool/sort 1715s ok 6 /threadpool/stop-unused-multiple 1715s # slow test /threadpool/stop-unused-multiple executed in 0.53 secs 1715s # Pool idle thread count: 0, unprocessed jobs: 40 1716s # Pool idle thread count: 0, unprocessed jobs: 0 1716s # Pool idle thread count: 0, unprocessed jobs: 0 1716s # Pool idle thread count: 10, unprocessed jobs: 0 1716s # Pool idle thread count: 10, unprocessed jobs: 0 1717s # Pool idle thread count: 10, unprocessed jobs: 0 1717s # Pool idle thread count: 10, unprocessed jobs: 0 1717s # Pool idle thread count: 10, unprocessed jobs: 0 1717s # Pool idle thread count: 10, unprocessed jobs: 0 1718s # Pool idle thread count: 10, unprocessed jobs: 0 1718s # Pool idle thread count: 10, unprocessed jobs: 0 1718s # Pool idle thread count: 10, unprocessed jobs: 0 1718s # Pool idle thread count: 10, unprocessed jobs: 0 1719s # Pool idle thread count: 10, unprocessed jobs: 0 1719s # Pool idle thread count: 10, unprocessed jobs: 0 1719s Executing: glib/thread-pool-slow.test 1719s # Pool idle thread count: 10, unprocessed jobs: 0 1719s # Pool idle thread count: 10, unprocessed jobs: 0 1720s # Pool idle thread count: 10, unprocessed jobs: 0 1720s # Pool idle thread count: 10, unprocessed jobs: 0 1720s # Pool idle thread count: 10, unprocessed jobs: 0 1720s # Pool idle thread count: 10, unprocessed jobs: 0 1721s # Pool idle thread count: 10, unprocessed jobs: 0 1721s # Pool idle thread count: 10, unprocessed jobs: 0 1721s # Pool idle thread count: 10, unprocessed jobs: 0 1721s # Pool idle thread count: 10, unprocessed jobs: 0 1722s # Pool idle thread count: 10, unprocessed jobs: 0 1722s # Pool idle thread count: 10, unprocessed jobs: 0 1722s # Pool idle thread count: 10, unprocessed jobs: 0 1722s # Pool idle thread count: 10, unprocessed jobs: 0 1723s # Pool idle thread count: 10, unprocessed jobs: 0 1723s # Pool idle thread count: 10, unprocessed jobs: 0 1723s # Pool idle thread count: 10, unprocessed jobs: 0 1723s # Pool idle thread count: 10, unprocessed jobs: 0 1724s # Pool idle thread count: 10, unprocessed jobs: 0 1724s # Pool idle thread count: 10, unprocessed jobs: 0 1724s Executing: glib/thread-pool-slow.test 1724s # Pool idle thread count: 10, unprocessed jobs: 2 1724s # Pool idle thread count: 10, unprocessed jobs: 2 1724s # Pool idle thread count: 8, unprocessed jobs: 0 1724s # Pool idle thread count: 8, unprocessed jobs: 0 1725s # Pool idle thread count: 10, unprocessed jobs: 0 1725s # Pool idle thread count: 10, unprocessed jobs: 0 1725s # Pool idle thread count: 10, unprocessed jobs: 0 1725s # Pool idle thread count: 10, unprocessed jobs: 0 1726s # Pool idle thread count: 10, unprocessed jobs: 0 1726s # Pool idle thread count: 10, unprocessed jobs: 0 1726s # Pool idle thread count: 2, unprocessed jobs: 0 1726s # Pool idle thread count: 2, unprocessed jobs: 0 1727s # Pool idle thread count: 2, unprocessed jobs: 0 1727s # Pool idle thread count: 2, unprocessed jobs: 0 1727s # Pool idle thread count: 2, unprocessed jobs: 0 1727s # Pool idle thread count: 2, unprocessed jobs: 0 1728s # Pool idle thread count: 2, unprocessed jobs: 0 1728s # Pool idle thread count: 2, unprocessed jobs: 0 1728s # Pool idle thread count: 2, unprocessed jobs: 0 1728s # Pool idle thread count: 2, unprocessed jobs: 0 1729s # Pool idle thread count: 2, unprocessed jobs: 0 1729s # Pool idle thread count: 2, unprocessed jobs: 0 1729s Executing: glib/thread-pool-slow.test 1729s # Pool idle thread count: 2, unprocessed jobs: 0 1729s # Pool idle thread count: 2, unprocessed jobs: 0 1730s # Pool idle thread count: 2, unprocessed jobs: 0 1730s # Pool idle thread count: 2, unprocessed jobs: 0 1730s # Pool idle thread count: 2, unprocessed jobs: 0 1730s # Pool idle thread count: 2, unprocessed jobs: 0 1731s # Pool idle thread count: 2, unprocessed jobs: 0 1731s # Pool idle thread count: 2, unprocessed jobs: 0 1731s # Pool idle thread count: 2, unprocessed jobs: 0 1731s # Pool idle thread count: 2, unprocessed jobs: 0 1732s # Pool idle thread count: 2, unprocessed jobs: 0 1732s # Pool idle thread count: 2, unprocessed jobs: 0 1733s # Pool idle thread count: 2, unprocessed jobs: 0 1733s # Pool idle thread count: 2, unprocessed jobs: 0 1733s # Pool idle thread count: 2, unprocessed jobs: 0 1733s # Pool idle thread count: 2, unprocessed jobs: 0 1734s # Pool idle thread count: 2, unprocessed jobs: 0 1734s # Pool idle thread count: 2, unprocessed jobs: 0 1734s # Pool idle thread count: 2, unprocessed jobs: 0 1734s # Pool idle thread count: 2, unprocessed jobs: 0 1734s Executing: glib/thread-pool-slow.test 1735s # Pool idle thread count: 2, unprocessed jobs: 0 1735s # Pool idle thread count: 2, unprocessed jobs: 0 1735s ok 7 /threadpool/idle-time 1735s # slow test /threadpool/idle-time executed in 19.53 secs 1735s # End of threadpool tests 1735s PASS: glib/thread-pool-slow.test 1735s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.1s; maxrss=2688 1735s autopkgtest [10:26:35]: test thread-pool-slow: -----------------------] 1739s autopkgtest [10:26:39]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 1739s thread-pool-slow PASS 1743s autopkgtest [10:26:43]: test threadtests: preparing testbed 1745s Reading package lists... 1745s Building dependency tree... 1745s Reading state information... 1746s Solving dependencies... 1747s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1755s autopkgtest [10:26:55]: test threadtests: [----------------------- 1758s Running test: glib/threadtests.test 1758s TAP version 14 1758s # random seed: R02S55c0f2d722f3ef8f9b1740d62f6cb0db 1758s 1..5 1758s # Start of GObject tests 1758s ok 1 /GObject/threaded-object-init 1759s ok 2 /GObject/threaded-weak-ref 1759s # slow test /GObject/threaded-weak-ref executed in 1.16 secs 1759s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1759s # /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 1763s Executing: glib/threadtests.test 1768s Executing: glib/threadtests.test 1773s Executing: glib/threadtests.test 1778s Executing: glib/threadtests.test 1783s Executing: glib/threadtests.test 1788s Executing: glib/threadtests.test 1793s Executing: glib/threadtests.test 1798s Executing: glib/threadtests.test 1803s Executing: glib/threadtests.test 1808s Executing: glib/threadtests.test 1813s Executing: glib/threadtests.test 1818s Executing: glib/threadtests.test 1823s Executing: glib/threadtests.test 1828s Executing: glib/threadtests.test 1833s Executing: glib/threadtests.test 1838s Executing: glib/threadtests.test 1843s Executing: glib/threadtests.test 1848s Executing: glib/threadtests.test 1852s ok 3 /GObject/threaded-toggle-notify 1852s # slow test /GObject/threaded-toggle-notify executed in 93.04 secs 1852s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1852s # Start of threaded-weak-ref tests 1852s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1852s # /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. 1852s ok 5 /GObject/threaded-weak-ref/on-finalization 1852s # End of threaded-weak-ref tests 1852s # End of GObject tests 1852s PASS: glib/threadtests.test 1852s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=368.2s; system=1.0s; maxrss=2560 1853s autopkgtest [10:28:33]: test threadtests: -----------------------] 1856s threadtests PASS 1856s autopkgtest [10:28:36]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 1860s autopkgtest [10:28:40]: test timeout: preparing testbed 1862s Reading package lists... 1863s Building dependency tree... 1863s Reading state information... 1863s Solving dependencies... 1864s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1871s autopkgtest [10:28:51]: test timeout: [----------------------- 1873s Running test: glib/timeout.test 1873s TAP version 14 1873s # random seed: R02S74152304aac6a97b77cbd567fc98a9c2 1873s 1..5 1873s # Start of timeout tests 1873s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1875s ok 1 /timeout/seconds 1875s # slow test /timeout/seconds executed in 2.10 secs 1877s ok 2 /timeout/seconds-once 1877s # slow test /timeout/seconds-once executed in 2.10 secs 1877s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1878s Executing: glib/timeout.test 1880s ok 3 /timeout/weeks-overflow 1880s # slow test /timeout/weeks-overflow executed in 2.10 secs 1880s ok 4 /timeout/far-future-ready-time 1883s Executing: glib/timeout.test 1888s Executing: glib/timeout.test 1890s ok 5 /timeout/rounding 1890s # slow test /timeout/rounding executed in 10.77 secs 1890s # End of timeout tests 1890s PASS: glib/timeout.test 1890s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2048 1891s autopkgtest [10:29:11]: test timeout: -----------------------] 1895s timeout PASS 1895s autopkgtest [10:29:15]: test timeout: - - - - - - - - - - results - - - - - - - - - - 1898s autopkgtest [10:29:18]: test timer: preparing testbed 1900s Reading package lists... 1900s Building dependency tree... 1900s Reading state information... 1901s Solving dependencies... 1901s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1909s autopkgtest [10:29:29]: test timer: [----------------------- 1911s Running test: glib/timer.test 1911s TAP version 14 1911s # random seed: R02Se92cff5fa3c8409633a2128a74aac892 1911s 1..10 1911s # Start of timer tests 1911s ok 1 /timer/basic 1911s ok 2 /timer/stop 1911s ok 3 /timer/continue 1911s ok 4 /timer/reset 1911s ok 5 /timer/is_active 1911s # End of timer tests 1911s # Start of timeval tests 1911s ok 6 /timeval/add 1911s ok 7 /timeval/from-iso8601 1911s ok 8 /timeval/to-iso8601 1911s # Start of to-iso8601 tests 1911s ok 9 /timeval/to-iso8601/overflow # SKIP G_MAXINT == G_MAXLONG - we can't make g_time_val_to_iso8601() overflow. 1911s # End of to-iso8601 tests 1911s # End of timeval tests 1911s # Start of usleep tests 1911s ok 10 /usleep/with-zero-wait 1911s # End of usleep tests 1911s PASS: glib/timer.test 1911s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2176 1912s autopkgtest [10:29:32]: test timer: -----------------------] 1915s timer PASS 1915s autopkgtest [10:29:35]: test timer: - - - - - - - - - - results - - - - - - - - - - 1919s autopkgtest [10:29:39]: test 1065022-futureproofing: preparing testbed 1948s autopkgtest [10:30:08]: testbed dpkg architecture: armhf 1949s autopkgtest [10:30:09]: testbed apt version: 3.1.15 1953s autopkgtest [10:30:13]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1955s autopkgtest [10:30:15]: testbed release detected to be: resolute 1963s autopkgtest [10:30:23]: updating testbed package index (apt update) 1965s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 1965s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 1965s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 1965s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 1965s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 1965s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 1965s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 1965s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 1965s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [231 kB] 1965s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1358 kB] 1965s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9992 B] 1965s Get:12 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [311 kB] 1965s Get:13 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.3 MB] 1967s Get:14 http://ftpmaster.internal/ubuntu resolute/main Sources [1412 kB] 1967s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1374 kB] 1967s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [14.9 MB] 1967s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [177 kB] 1971s Fetched 43.4 MB in 6s (7093 kB/s) 1972s Reading package lists... 1977s autopkgtest [10:30:37]: upgrading testbed (apt dist-upgrade and autopurge) 1979s Reading package lists... 1979s Building dependency tree... 1979s Reading state information... 1980s Calculating upgrade... 1981s The following packages will be upgraded: 1981s 3cpio distro-info libc-bin libc-gconv-modules-extra libc6 1981s libevent-core-2.1-7t64 libpcap0.8t64 locales 1981s 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1981s Need to get 8365 kB of archives. 1981s After this operation, 0 B of additional disk space will be used. 1981s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-gconv-modules-extra armhf 2.42-2ubuntu5 [1417 kB] 1982s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc6 armhf 2.42-2ubuntu5 [1632 kB] 1982s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libc-bin armhf 2.42-2ubuntu5 [545 kB] 1982s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf distro-info armhf 1.14build1 [19.3 kB] 1982s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf locales all 2.42-2ubuntu5 [4255 kB] 1982s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libpcap0.8t64 armhf 1.10.5-2ubuntu3 [140 kB] 1982s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf 3cpio armhf 0.14.0-1ubuntu1 [271 kB] 1982s Get:8 http://ftpmaster.internal/ubuntu resolute/main armhf libevent-core-2.1-7t64 armhf 2.1.12-stable-10build2 [84.9 kB] 1982s Preconfiguring packages ... 1983s Fetched 8365 kB in 1s (9141 kB/s) 1983s (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.) 1983s Preparing to unpack .../libc-gconv-modules-extra_2.42-2ubuntu5_armhf.deb ... 1983s Unpacking libc-gconv-modules-extra:armhf (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 1983s Setting up libc-gconv-modules-extra:armhf (2.42-2ubuntu5) ... 1983s (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.) 1983s Preparing to unpack .../libc6_2.42-2ubuntu5_armhf.deb ... 1983s readlink: /usr/lib/libeatmydata: No such file or directory 1983s Unpacking libc6:armhf (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 1983s Setting up libc6:armhf (2.42-2ubuntu5) ... 1984s (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.) 1984s Preparing to unpack .../libc-bin_2.42-2ubuntu5_armhf.deb ... 1984s Unpacking libc-bin (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 1984s Setting up libc-bin (2.42-2ubuntu5) ... 1984s (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.) 1984s Preparing to unpack .../distro-info_1.14build1_armhf.deb ... 1984s Unpacking distro-info (1.14build1) over (1.14) ... 1984s Preparing to unpack .../locales_2.42-2ubuntu5_all.deb ... 1984s Unpacking locales (2.42-2ubuntu5) over (2.42-2ubuntu4) ... 1984s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_armhf.deb ... 1984s Unpacking libpcap0.8t64:armhf (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 1985s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_armhf.deb ... 1985s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 1985s Preparing to unpack .../libevent-core-2.1-7t64_2.1.12-stable-10build2_armhf.deb ... 1985s Unpacking libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) over (2.1.12-stable-10build1) ... 1985s Setting up distro-info (1.14build1) ... 1985s Setting up 3cpio (0.14.0-1ubuntu1) ... 1985s Setting up locales (2.42-2ubuntu5) ... 1986s Generating locales (this might take a while)... 1989s en_US.UTF-8... done 1989s Generation complete. 1989s Setting up libpcap0.8t64:armhf (1.10.5-2ubuntu3) ... 1989s Setting up libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) ... 1989s Processing triggers for systemd (259-1ubuntu3) ... 1989s Processing triggers for man-db (2.13.1-1) ... 1991s Processing triggers for libc-bin (2.42-2ubuntu5) ... 1994s Reading package lists... 1994s Building dependency tree... 1994s Reading state information... 1994s Solving dependencies... 1994s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1997s autopkgtest [10:30:57]: rebooting testbed after setup commands that affected boot 2064s Reading package lists... 2064s Building dependency tree... 2064s Reading state information... 2065s Solving dependencies... 2065s The following NEW packages will be installed: 2065s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 2065s libdconf1 2066s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 2066s Need to get 145 kB of archives. 2066s After this operation, 635 kB of additional disk space will be used. 2066s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libdconf1 armhf 0.49.0-4 [40.5 kB] 2066s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf dconf-service armhf 0.49.0-4 [28.8 kB] 2066s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf dconf-gsettings-backend armhf 0.49.0-4 [25.1 kB] 2066s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf dpkg-repack all 1.54build1 [11.2 kB] 2066s Get:5 http://ftpmaster.internal/ubuntu resolute/main armhf gsettings-desktop-schemas all 50~alpha-1ubuntu1 [38.9 kB] 2066s Fetched 145 kB in 0s (370 kB/s) 2066s Selecting previously unselected package libdconf1:armhf. 2066s (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.) 2066s Preparing to unpack .../libdconf1_0.49.0-4_armhf.deb ... 2066s Unpacking libdconf1:armhf (0.49.0-4) ... 2066s Selecting previously unselected package dconf-service. 2066s Preparing to unpack .../dconf-service_0.49.0-4_armhf.deb ... 2066s Unpacking dconf-service (0.49.0-4) ... 2066s Selecting previously unselected package dconf-gsettings-backend:armhf. 2066s Preparing to unpack .../dconf-gsettings-backend_0.49.0-4_armhf.deb ... 2066s Unpacking dconf-gsettings-backend:armhf (0.49.0-4) ... 2067s Selecting previously unselected package dpkg-repack. 2067s Preparing to unpack .../dpkg-repack_1.54build1_all.deb ... 2067s Unpacking dpkg-repack (1.54build1) ... 2067s Selecting previously unselected package gsettings-desktop-schemas. 2067s Preparing to unpack .../gsettings-desktop-schemas_50~alpha-1ubuntu1_all.deb ... 2067s Unpacking gsettings-desktop-schemas (50~alpha-1ubuntu1) ... 2067s Setting up dpkg-repack (1.54build1) ... 2067s Setting up libdconf1:armhf (0.49.0-4) ... 2067s Setting up dconf-service (0.49.0-4) ... 2067s Setting up dconf-gsettings-backend:armhf (0.49.0-4) ... 2067s Setting up gsettings-desktop-schemas (50~alpha-1ubuntu1) ... 2067s Processing triggers for man-db (2.13.1-1) ... 2067s Processing triggers for libglib2.0-0t64:armhf (2.86.3-4) ... 2067s Processing triggers for libc-bin (2.42-2ubuntu5) ... 2083s autopkgtest [10:32:23]: test 1065022-futureproofing: [----------------------- 2085s + export DEBIAN_FRONTEND=noninteractive 2085s + n=0 2085s + failed=0 2085s + binary_package=libglib2.0-0t64 2085s + future_binary_package=libglib2.0-0xyz 2085s + pwd 2085s + srcdir=/tmp/autopkgtest.ow0kS0/build.ehs/src 2085s + mktemp -d 2085s + tmpdir=/tmp/tmp.lm1vgCSOHr 2085s + cd /tmp/tmp.lm1vgCSOHr 2085s + exec 2085s + [ -e /tmp/autopkgtest.ow0kS0/build.ehs/src/debian/tests/manual/local-1065022.sources ] 2085s + dpkg-query -W dpkg-repack 2085s dpkg-repack 1.54build1 2085s + dpkg-query -s libglib2.0-0t64 2085s Package: libglib2.0-0t64 2085s Status: install ok installed 2085s Priority: important 2085s Section: libs 2085s Installed-Size: 3451 2085s Maintainer: Ubuntu Developers 2085s Architecture: armhf 2085s Multi-Arch: same 2085s Source: glib2.0 2085s Version: 2.86.3-4 2085s Replaces: libglib2.0-0 (<< 2.80.0-7~) 2085s 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) 2085s 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) 2085s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 2085s Suggests: low-memory-monitor 2085s Breaks: gnome-shell (<< 44.9-2~), libglib2.0-0 (<< 2.80.0-7~) 2085s Description: GLib library of C routines 2085s GLib is a library containing many useful C routines for things such 2085s as trees, hashes, lists, and strings. It is a useful general-purpose 2085s C library used by projects such as GTK+, GIMP, and GNOME. 2085s . 2085s This package contains the shared libraries. 2085s Original-Maintainer: Debian GNOME Maintainers 2085s Homepage: https://gitlab.gnome.org/GNOME/glib 2085s + dpkg-query -W -f ${Version} libglib2.0-0t64 2085s + binary_version=2.86.3-4 2085s + dpkg-repack --generate libglib2.0-0t64 2085s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 2085s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.kYOLwN for libglib2.0-0t64 2085s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.kYOLwN ." 2085s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.kYOLwN/DEBIAN/control 2085s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.kYOLwN/DEBIAN/control 2085s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.kYOLwN/DEBIAN/control 2085s + 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.kYOLwN/DEBIAN/control 2085s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.kYOLwN libglib2.0-0xyz.deb 2085s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 2087s + dpkg-deb --info libglib2.0-0xyz.deb 2087s new Debian package, version 2.0. 2087s size 1483522 bytes: control archive=25783 bytes. 2087s 1191 bytes, 24 lines control 2087s 1168 bytes, 14 lines md5sums 2087s 1312 bytes, 44 lines * postinst #!/bin/sh 2087s 2580 bytes, 87 lines * postrm #!/bin/sh 2087s 2408 bytes, 53 lines * preinst #!/bin/sh 2087s 466 bytes, 10 lines shlibs 2087s 172677 bytes, 4529 lines symbols 2087s 174 bytes, 4 lines triggers 2087s Package: libglib2.0-0xyz 2087s Source: glib2.0 2087s Version: 2.86.3-4 2087s Architecture: armhf 2087s Maintainer: Ubuntu Developers 2087s Installed-Size: 3451 2087s 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) 2087s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 2087s Suggests: low-memory-monitor 2087s Breaks: gnome-shell (<< 44.9-2~), libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 2087s Replaces: libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 2087s 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) 2087s Section: libs 2087s Priority: important 2087s Multi-Arch: same 2087s Homepage: https://gitlab.gnome.org/GNOME/glib 2087s Description: GLib library of C routines 2087s GLib is a library containing many useful C routines for things such 2087s as trees, hashes, lists, and strings. It is a useful general-purpose 2087s C library used by projects such as GTK+, GIMP, and GNOME. 2087s . 2087s This package contains the shared libraries. 2087s . 2087s (Repackaged on Sat, 07 Feb 2026 10:32:25 +0000 by dpkg-repack.) 2087s + dpkg-deb --contents libglib2.0-0xyz.deb 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./ 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/ 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/lib/ 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/lib/arm-linux-gnueabihf/ 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/lib/arm-linux-gnueabihf/gio/ 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/lib/arm-linux-gnueabihf/gio/modules/ 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/lib/arm-linux-gnueabihf/glib-2.0/ 2087s -rwxr-xr-x root/root 67176 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/glib-2.0/gio-launch-desktop 2087s -rwxr-xr-x root/root 67176 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/glib-2.0/gio-querymodules 2087s -rwxr-xr-x root/root 67196 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/glib-2.0/glib-compile-schemas 2087s -rw-r--r-- root/root 1312984 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0.8600.3 2087s -rw-r--r-- root/root 1051024 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0.8600.3 2087s -rw-r--r-- root/root 67048 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libgmodule-2.0.so.0.8600.3 2087s -rw-r--r-- root/root 264408 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0.8600.3 2087s -rw-r--r-- root/root 67016 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libgthread-2.0.so.0.8600.3 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/share/ 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/share/doc/ 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/share/doc/libglib2.0-0t64/ 2087s -rw-r--r-- root/root 258310 2025-12-08 15:46 ./usr/share/doc/libglib2.0-0t64/NEWS.gz 2087s -rw-r--r-- root/root 1703 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/README.Debian 2087s -rw-r--r-- root/root 3248 2025-12-08 15:46 ./usr/share/doc/libglib2.0-0t64/README.md 2087s -rw-r--r-- root/root 39086 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/changelog.Debian.gz 2087s -rw-r--r-- root/root 55103 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/copyright 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/share/glib-2.0/ 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/share/glib-2.0/schemas/ 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/share/lintian/ 2087s drwxr-xr-x root/root 0 2026-02-07 10:32 ./usr/share/lintian/overrides/ 2087s -rw-r--r-- root/root 520 2026-01-01 12:59 ./usr/share/lintian/overrides/libglib2.0-0t64 2087s 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 2087s 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 2087s 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 2087s 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 2087s 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 2087s + apt-get -y install ./libglib2.0-0xyz.deb dconf-gsettings-backend gsettings-desktop-schemas 2087s Reading package lists... 2087s Building dependency tree... 2087s Reading state information... 2088s dconf-gsettings-backend is already the newest version (0.49.0-4). 2088s gsettings-desktop-schemas is already the newest version (50~alpha-1ubuntu1). 2088s Solving dependencies... 2089s The following additional packages will be installed: 2089s xdg-user-dirs 2089s Suggested packages: 2089s low-memory-monitor 2089s The following packages will be REMOVED: 2089s libglib2.0-0t64 2089s The following NEW packages will be installed: 2089s libglib2.0-0xyz xdg-user-dirs 2089s 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. 2089s Need to get 18.1 kB/1502 kB of archives. 2089s After this operation, 213 kB of additional disk space will be used. 2089s Get:1 /tmp/tmp.lm1vgCSOHr/libglib2.0-0xyz.deb libglib2.0-0xyz armhf 2.86.3-4 [1484 kB] 2090s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf xdg-user-dirs armhf 0.19-1 [18.1 kB] 2090s Fetched 18.1 kB in 0s (68.1 kB/s) 2090s dpkg: libglib2.0-0t64:armhf: dependency problems, but removing anyway as you requested: 2090s udisks2 depends on libglib2.0-0t64 (>= 2.80.0). 2090s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0). 2090s python3-gi depends on libglib2.0-0t64 (>= 2.86.0-7~). 2090s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0). 2090s netplan.io depends on libglib2.0-0t64 (>= 2.70.0). 2090s netplan-generator depends on libglib2.0-0t64 (>= 2.16.0). 2090s libxmlb2:armhf depends on libglib2.0-0t64 (>= 2.54.0). 2090s libvolume-key1:armhf depends on libglib2.0-0t64 (>= 2.18.0). 2090s libudisks2-0:armhf depends on libglib2.0-0t64 (>= 2.83.0). 2090s libqrtr-glib0:armhf depends on libglib2.0-0t64 (>= 2.56). 2090s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0). 2090s libqmi-glib5:armhf depends on libglib2.0-0t64 (>= 2.54.0). 2090s libpolkit-gobject-1-0:armhf depends on libglib2.0-0t64 (>= 2.38.0). 2090s libpolkit-agent-1-0:armhf depends on libglib2.0-0t64 (>= 2.38.0). 2090s libnetplan1:armhf depends on libglib2.0-0t64 (>= 2.76.0). 2090s libmm-glib0:armhf depends on libglib2.0-0t64 (>= 2.62.0). 2090s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56). 2090s libmbim-glib4:armhf depends on libglib2.0-0t64 (>= 2.56). 2090s libjson-glib-1.0-0:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2090s libjcat1:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2090s libgudev-1.0-0:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2090s libgirepository-2.0-0:armhf depends on libglib2.0-0t64 (= 2.86.3-4). 2090s libfwupd3:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2090s libdconf1:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2090s libblockdev3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2090s libblockdev-utils3:armhf depends on libglib2.0-0t64 (>= 2.76.0). 2090s libblockdev-swap3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2090s libblockdev-smart3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2090s libblockdev-part3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2090s libblockdev-nvme3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2090s libblockdev-mdraid3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2090s libblockdev-loop3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2090s libblockdev-fs3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2090s libblockdev-crypto3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2090s gir1.2-glib-2.0:armhf depends on libglib2.0-0t64 (= 2.86.3-4). 2090s fwupd depends on libglib2.0-0t64 (>= 2.80.0). 2090s dconf-service depends on libglib2.0-0t64 (>= 2.83.0). 2090s dconf-gsettings-backend:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2090s bolt depends on libglib2.0-0t64 (>= 2.80.0). 2090s 2090s (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.) 2090s Removing libglib2.0-0t64:armhf (2.86.3-4) ... 2090s Selecting previously unselected package libglib2.0-0xyz:armhf. 2091s (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.) 2091s Preparing to unpack .../libglib2.0-0xyz.deb ... 2091s Unpacking libglib2.0-0xyz:armhf (2.86.3-4) ... 2091s Selecting previously unselected package xdg-user-dirs. 2091s Preparing to unpack .../xdg-user-dirs_0.19-1_armhf.deb ... 2091s Unpacking xdg-user-dirs (0.19-1) ... 2091s Setting up xdg-user-dirs (0.19-1) ... 2091s Created symlink '/etc/systemd/user/graphical-session-pre.target.wants/xdg-user-dirs.service' → '/usr/lib/systemd/user/xdg-user-dirs.service'. 2091s Setting up libglib2.0-0xyz:armhf (2.86.3-4) ... 2091s Processing triggers for libc-bin (2.42-2ubuntu5) ... 2091s Processing triggers for man-db (2.13.1-1) ... 2092s ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2092s ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2092s ok 3 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2092s ok 4 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2092s ok 5 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2092s ok 6 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2092s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2092s + n=1 2092s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2092s + echo ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2092s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2092s + n=2 2092s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2092s + echo ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2092s + assert test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2092s + n=3 2092s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2092s + echo ok 3 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2092s + assert test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2092s + n=4 2092s + test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2092s + echo ok 4 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2092s + assert test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2092s + n=5 2092s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2092s + echo ok 5 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2092s + assert test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2092s + n=6 2092s + test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2092s + echo ok 6 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2092s + apt-get -y purge libglib2.0-0t64 2092s Reading package lists... 2092s Building dependency tree... 2092s Reading state information... 2093s Solving dependencies... 2094s The following packages will be REMOVED: 2094s libglib2.0-0t64* 2094s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 2095s After this operation, 0 B of additional disk space will be used. 2095s (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.) 2095s Purging configuration files for libglib2.0-0t64:armhf (2.86.3-4) ... 2095s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2095s + n=7 2095s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2095s + echo ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2095s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2095s + n=8 2095s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2095s + echo ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2095s + assert test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2095s + n=9 2095s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2095s + echo ok 9 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2095s + assert test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2095s + n=10 2095s + test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2095s + echo ok 10 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2095s + assert test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2095s + n=11 2095s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2095s + echo ok 11 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2095s + assert test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2095s + n=12 2095s + test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2095s + echo ok 12 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2095s + apt-get -y purge libglib2.0-0xyz 2095s ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2095s ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2095s ok 9 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2095s ok 10 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2095s ok 11 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2095s ok 12 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2095s Reading package lists... 2095s Building dependency tree... 2095s Reading state information... 2096s Solving dependencies... 2096s The following additional packages will be installed: 2096s libglib2.0-0t64 2096s Suggested packages: 2096s low-memory-monitor 2096s The following packages will be REMOVED: 2096s libglib2.0-0xyz* 2097s The following NEW packages will be installed: 2097s libglib2.0-0t64 2097s 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. 2097s Need to get 1484 kB of archives. 2097s After this operation, 0 B of additional disk space will be used. 2097s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libglib2.0-0t64 armhf 2.86.3-4 [1484 kB] 2098s Fetched 1484 kB in 1s (2205 kB/s) 2098s dpkg: libglib2.0-0xyz:armhf: dependency problems, but removing anyway as you requested: 2098s udisks2 depends on libglib2.0-0t64 (>= 2.80.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s python3-gi depends on libglib2.0-0t64 (>= 2.86.0-7~); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s netplan.io depends on libglib2.0-0t64 (>= 2.70.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s netplan-generator depends on libglib2.0-0t64 (>= 2.16.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libxmlb2:armhf depends on libglib2.0-0t64 (>= 2.54.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libvolume-key1:armhf depends on libglib2.0-0t64 (>= 2.18.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libudisks2-0:armhf depends on libglib2.0-0t64 (>= 2.83.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libqrtr-glib0:armhf depends on libglib2.0-0t64 (>= 2.56); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libqmi-glib5:armhf depends on libglib2.0-0t64 (>= 2.54.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libpolkit-gobject-1-0:armhf depends on libglib2.0-0t64 (>= 2.38.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libpolkit-agent-1-0:armhf depends on libglib2.0-0t64 (>= 2.38.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libnetplan1:armhf depends on libglib2.0-0t64 (>= 2.76.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libmm-glib0:armhf depends on libglib2.0-0t64 (>= 2.62.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libmbim-glib4:armhf depends on libglib2.0-0t64 (>= 2.56); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libjson-glib-1.0-0:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libjcat1:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libgudev-1.0-0:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libgirepository-2.0-0:armhf depends on libglib2.0-0t64 (= 2.86.3-4); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libfwupd3:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libdconf1:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libblockdev3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libblockdev-utils3:armhf depends on libglib2.0-0t64 (>= 2.76.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libblockdev-swap3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libblockdev-smart3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libblockdev-part3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libblockdev-nvme3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libblockdev-mdraid3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libblockdev-loop3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libblockdev-fs3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s libblockdev-crypto3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s gir1.2-glib-2.0:armhf depends on libglib2.0-0t64 (= 2.86.3-4); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s fwupd depends on libglib2.0-0t64 (>= 2.80.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s dconf-service depends on libglib2.0-0t64 (>= 2.83.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s dconf-gsettings-backend:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s bolt depends on libglib2.0-0t64 (>= 2.80.0); however: 2098s Package libglib2.0-0t64 is not installed. 2098s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2098s 2098s (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.) 2098s Removing libglib2.0-0xyz:armhf (2.86.3-4) ... 2098s Selecting previously unselected package libglib2.0-0t64:armhf. 2098s (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.) 2098s Preparing to unpack .../libglib2.0-0t64_2.86.3-4_armhf.deb ... 2098s Unpacking libglib2.0-0t64:armhf (2.86.3-4) ... 2098s Setting up libglib2.0-0t64:armhf (2.86.3-4) ... 2098s Processing triggers for libc-bin (2.42-2ubuntu5) ... 2098s (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.) 2098s Purging configuration files for libglib2.0-0xyz:armhf (2.86.3-4) ... 2099s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2099s + n=13 2099s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2099s + echo not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2099s + failed=1 2099s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 2099s + n=14 2099s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 2099s + echo not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 2099s + failed=1 2099s + assert_not test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2099s + n=15 2099s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2099s + echo not ok 15 - should not have succeeded: test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2099s + failed=1 2099s + assert_not test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2099s + n=16 2099s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2099s + echo not ok 16 - should not have succeeded: test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2099s + failed=1 2099s + echo 1..16 2099s + exit 1 2099s not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2099s not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 2099s not ok 15 - should not have succeeded: test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2099s not ok 16 - should not have succeeded: test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2099s 1..16 2099s autopkgtest [10:32:39]: test 1065022-futureproofing: -----------------------] 2103s autopkgtest [10:32:43]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 2103s 1065022-futureproofing FLAKY non-zero exit status 1 2107s autopkgtest [10:32:47]: @@@@@@@@@@@@@@@@@@@@ summary 2107s build PASS (superficial) 2107s build-static PASS (superficial) 2107s girepository-tools PASS (superficial) 2107s libgio-2.0-dev-bin PASS (superficial) 2107s libglib2.0-dev PASS (superficial) 2107s installed-tests PASS 2107s closure-refcount PASS 2107s debugcontroller PASS 2107s gdbus-server-auth PASS 2107s gdbus-threading PASS 2107s gmenumodel PASS 2107s mainloop PASS 2107s memory-monitor-dbus PASS 2107s socket PASS 2107s testfilemonitor PASS 2107s thread-pool-slow PASS 2107s threadtests PASS 2107s timeout PASS 2107s timer PASS 2107s 1065022-futureproofing FLAKY non-zero exit status 1